[SERVER-1583] AwaitData flag causes abnormal high delay Created: 06/Aug/10  Updated: 30/Mar/12  Resolved: 02/Sep/11

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 1.6.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: gf Assignee: Eliot Horowitz (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux 64-bit


Operating System: Linux
Participants:

 Description   

I send OP_QUERY with TailableCursors and AwaitData flags. Plain hex flags = 22 00 00 00.
New data arrives with high delay (about 30-40 secs). If I remove AwaitData and re-send getQuery(), it works fast as usually.

Is it excepted? I thought that AwaitData should send new objects without delay.

I may give you root access to my testing machine.



 Comments   
Comment by gf [ 06/Aug/10 ]

Yes, of course. But the code is quite non-trivial (you can't run it without compiling php, pecl-libevent, etc). I'm using phpDaemon (http://phpdaemon.net/). Standard example chat (http://github.com/kakserpom/phpdaemon-muchat).
After I updated mongodb to 1.6, it still works fine as usually.
But when I remove the line 109 from app-clients/MongoClient.php (it turns on the AwaitData bit), high delay appears.

Comment by Eliot Horowitz (Inactive) [ 06/Aug/10 ]

Can you send the code you're using?

Generated at Thu Feb 08 02:57:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.