store_sync_spec fails sometimes
Reported by Yurii Rashkovskii | April 27th, 2008 @ 10:46 AM
1)
NoMethodError in 'Store that syncs documents in should fast-forward document if applicable'
undefined method `[]' for nil:NilClass
/Users/yrashk/Development/strokedb/lib/volumes/skiplist_volume.rb:95:in `read_node'
/Users/yrashk/Development/strokedb/lib/volumes/skiplist_volume.rb:39:in `node_next'
/Users/yrashk/Development/strokedb/lib/data_structures/simple_skiplist.rb:98:in `find_nearest_node'
/Users/yrashk/Development/strokedb/lib/data_structures/simple_skiplist.rb:202:in `find'
/Users/yrashk/Development/strokedb/lib/stores/file_storage.rb:16:in `find'
/Users/yrashk/Development/strokedb/lib/stores/memory_storage.rb:16:in `find'
/Users/yrashk/Development/strokedb/lib/stores/store.rb:20:in `find'
/Users/yrashk/Development/strokedb/lib/document/meta.rb:229:in `find_meta_doc'
/Users/yrashk/Development/strokedb/lib/document/meta.rb:213:in `make_document'
/Users/yrashk/Development/strokedb/lib/document/meta.rb:198:in `document'
/Users/yrashk/Development/strokedb/lib/document/meta.rb:196:in `map'
/Users/yrashk/Development/strokedb/lib/document/meta.rb:196:in `document'
/Users/yrashk/Development/strokedb/lib/document/document.rb:110:in `add_meta'
/Users/yrashk/Development/strokedb/lib/document/document.rb:614:in `initialize_slots'
/Users/yrashk/Development/strokedb/lib/document/document.rb:614:in `each'
/Users/yrashk/Development/strokedb/lib/document/document.rb:614:in `initialize_slots'
/Users/yrashk/Development/strokedb/lib/document/document.rb:598:in `do_initialize'
/Users/yrashk/Development/strokedb/lib/document/document.rb:167:in `initialize'
/Users/yrashk/Development/strokedb/lib/document/meta.rb:111:in `new'
/Users/yrashk/Development/strokedb/lib/document/meta.rb:111:in `new'
/Users/yrashk/Development/strokedb/lib/document/meta.rb:116:in `create!'
/Users/yrashk/Development/strokedb/lib/stores/store.rb:76:in `document'
/Users/yrashk/Development/strokedb/lib/sync/store_sync.rb:21:in `sync!'
./spec/sync/store_sync_spec.rb:44:
Comments and changes to this ticket
-
Yurii Rashkovskii April 27th, 2008 @ 10:47 AM
"That appears to be a spec bug (store was not synced, and autosync was trying to sync everything on files already engaged in the next subsequent example)"
It was fixed though it appears that it is still a problem
-
Yurii Rashkovskii April 27th, 2008 @ 11:02 AM
- → Title changed from Sometimes store_sync_spec fails (not every time) to store_sync_spec fails sometimes
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
StrokeDB is an embeddable distributed document database written in Ruby
