#2 new
Yurii Rashkovskii

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

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

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

Shared Ticket Bins

People watching this ticket

Tags