[RCBC-9] all_docs.count fails after a flush Created: 21/Oct/11  Updated: 13/Nov/12  Resolved: 31/May/12

Status: Closed
Project: Couchbase Ruby client library
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2.0.z.beta
Security Level: Public

Type: Bug Priority: Major
Reporter: Alan McKean (Inactive) Assignee: Sergey Avseyev
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Mac Snow Leopard, Couchbase Server Mac, after couchbase.flush

Issue Links:
depends on MB-4601 flush_all works, but does not block i... Resolved

Couchbase::ViewError: local: Database `default/1` doesn't exist.
from /usr/local/Cellar/gems/1.8/gems/couchbase-0.9.7/lib/couchbase/view.rb:140:in `block in fetch'
from /usr/local/Cellar/gems/1.8/gems/couchbase-0.9.7/lib/couchbase/view.rb:133:in `loop'
from /usr/local/Cellar/gems/1.8/gems/couchbase-0.9.7/lib/couchbase/view.rb:133:in `fetch'
from /usr/local/Cellar/gems/1.8/gems/couchbase-0.9.7/lib/couchbase/view.rb:68:in `each'
from (irb):18:in `count'
from (irb):18
from /usr/local/bin/irb:12:in `<main>'

Comment by Sergey Avseyev [ 29/Dec/11 ]
flush operation drops all databases and it needed some time for couchbase to recreate them. So currently you can sleep for a while.
Comment by Matt Ingenthron [ 29/Dec/11 ]
Filed MB-4601. This is a slight violation of protocol. I wouldn't mind if flush were slow, but it shouldn't break protocol.
Comment by Sergey Avseyev [ 31/May/12 ]
flush command is disabled by default
Generated at Wed Oct 22 16:49:37 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.