Details
-
Bug
-
Resolution: Fixed
-
Test Blocker
-
3.0
-
Security Level: Public
-
None
-
Untriaged
-
Unknown
Description
Sometimes I am receiving two response messages for a stream request with status as 0 and 34
EP-Engine log:
Jun 18 13:49:03.360729 UTC 3: (default) UPR (Producer) eq_uprq:mapreduce_view: default _design/dev_test (prod/main) - (vb 778) stream created with start seqno 7 and end seqno 20
Wed Jun 18 13:49:03.367437 UTC 3: (default) UPR (Producer) eq_uprq:mapreduce_view: default _design/dev_test (prod/main) - (vb 778) Sending disk snapshot with start seqno 7 and end seqno 42
Wed Jun 18 13:49:03.367732 UTC 3: (default) UPR (Producer) eq_uprq:mapreduce_view: default _design/dev_test (prod/main) - (vb 778) Backfill complete, 35 items read from disk, last seqno read: 42
Wed Jun 18 13:49:03.368616 UTC 3: (default) UPR (Producer) eq_uprq:mapreduce_view: default _design/dev_test (prod/main) - (vb 778) Stream closing, 35 items sent from disk, 0 items sent from memory, 42 was last seqno sent
Wed Jun 18 13:49:05.371994 UTC 3: (default) UPR (Producer) eq_uprq:mapreduce_view: default _design/dev_test (prod/main) - (vb 778) Stream request failed because the snap start seqno (0) <= start seqno (7) <= snap end seqno (0) is required
View engine log with debug message to print response:
chdb:info,2014-06-18T13:49:03.358,n_0@127.0.0.1:<0.960.0>:couch_log:info:39]set view `default`, main (prod) group `_design/dev_test`: received a snapshot marker (on-disk) for partition 777 from sequence 6 to 38
[couchdb:info,2014-06-18T13:49:03.361,n_0@127.0.0.1:<0.870.0>:couch_log:info:39]Stream created for request id 20081 with status 0
[couchdb:info,2014-06-18T13:49:05.372,n_0@127.0.0.1:<0.1019.0>:couch_log:info:39]Stream created for request id 20081 with status 34
Started noticing this after trying a test with this patch:
http://review.couchbase.org/#/c/38402/
Test:
1. Start couchbase
2. Create a simple view
3. Insert 1000 items and wait for indexing
4. Start inserting another 1M items
One of the upr streams that is created will have this problem
I can provide a live server with this problem upon request for debugging.
Attachments
Issue Links
For Gerrit Dashboard: MB-11458 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
38421,2 | MB-11458 Fix parsing of noop message from server | master | couchdb | Status: MERGED | +2 | +1 |
38470,3 | MB-11458 upr client should crash if any fatal errors happen | master | couchdb | Status: MERGED | +2 | +1 |