× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
ranarohitp(*) reported 2015-12-10T07:51:15Z  · tariqrahiman last modified 2016-12-10T07:51:47Z

Cursor waits for infinite time, when we use cursor.addOption() method.


Dev
Jenny Nishimura
JennyNishimura
QA
Emil Goicovici
emil.goicovici
Priority Low
Complexity Unknown
Component MongoJS
Version 18.0
Product: Aqua Data Studio
Version: 17.0.0-rc-60
Build #: 47650
Build Date: 2015-Dec-09 05:36:12 PM
 
Operating Environment: Linux (3.13.0-71-generic, amd64) / UTF-8 / en / IN / Oracle Corporation 1.8.0_40-b26
Memory: Max=3,501,195,264;  Total=801,636,352;  Free=462,330,264;  CPUs=8
 
Steps to reproduce:
 
Connect to MongoDB 3.0
Create a capped collection using below script.
 
CREATE CAPPED COLLECTION "capped
 SIZE 1000
 
Now insert a record into this collection using below script.
db.capped.insert({_id: 1, cust_id: "abc1", ord_date: ISODate("2012-11-02T17:04:11.102Z"), status: "A", amount: 50})
 
Now open an new MongoJS window and execute below script. (example link)
 
var t = db.capped;
var cursor = t.find().addOption(DBQuery.Option.tailable).addOption(DBQuery.Option.awaitData)
cursor
 
You will observe that cursor will keep on waiting and no result will be returned.
 
Now open a new MongShell Window and execute above script again.
 
Here you will observe that a record will be returned but cursor will keep on waiting 
 
Actual Result:
Cursor keeps on waiting and we have to manually cancel execution process.

 

Expected Result:
Cursor should not wait for so long and should return result.

Observations:
When we perform same use case in MongoCLI result is returned and cursor only wait for few seconds.

1 attachment

Issue #13952

Closed
Won't Fix
Resolved 2016-02-22T20:00:56Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017