2017-03-23 106 views
0

我正在升級到Neo4j.rb版本8的過程中。按照upgrade guide中的說明進行操作後,以前傳遞的規範現在失敗。Neo4j.rb 8.0.x中的記錄持久性

具體而言,countpersisted?alllastfind似乎來錯亂彼此。我可以創建一個帳戶,查看是否存在,如果我計算帳戶,請查看該帳戶,但如果查找最後一個帳戶或所有帳戶,或者嘗試從其ID中找到該帳戶,則無法查看該帳戶。

下面的控制檯會話輸出。我瘋了嗎?

[1] pry> account = Account.create(company_name: "Acme Corporation, LLC", street_address: "1234 Fake Lane", city: "Pleasantville", state: "CA", zip: "12345", country: "United States", phone: "555-555-5555", contact_name: "Some Guy", contact_phone: "123-456-7890", contact_email: "[email protected]")

=> #<Account uuid: "30c44118-ac45-4559-b63b-8e82fafb16cd", city: "Pleasantville", company_name: "Acme Corporation, LLC", contact_email: "[email protected]", contact_name: "Some Guy", contact_phone: "123-456-7890", country: "United States", created_at: Thu, 23 Mar 2017 19:13:52 +0000, phone: "555-555-5555", remote_id: nil, state: "CA", street_address: "1234 Fake Lane", updated_at: Thu, 23 Mar 2017 19:13:52 +0000, zip: "12345">

[2] pry> account.persisted? => true

[3] pry> Account.count => 1

[4] pry> Account.last => nil

[5] pry> Account.find(account.id) Neo4j::ActiveNode::Labels::RecordNotFound: Couldn't find Account with 'uuid'=30c44118-ac45-4559-b63b-8e82fafb16cd

回答

1

答案是.......重新啓動計算機和所有工作!!! 111

實際上,問題在於,在某處我刪除了數據庫而不是停止它,然後安裝了一個新的副本。