[JAVA-549] DBCursor.getServerAddress returns null for a query with 0 results Created: 03/Apr/12  Updated: 18/Jun/12  Resolved: 07/May/12

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 2.7
Fix Version/s: 2.8.0

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Comments   
Comment by Jeffrey Yemin [ 18/Jun/12 ]

Closing for 2.8.0 release.

Comment by auto [ 26/Apr/12 ]

Author:

{u'login': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-549: Removed unnecessary fake iterator for queries with 0 results. Simplifies the code, and also fixes this bug, because now every DBCursor will have a server address, even one with no results. Note that you still have to call hasNext() or next() at least once to get a non-null server address, since queries are done lazily
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/1497db1bc0e708fa34bfd93e8b19693308388f87

Generated at Thu Feb 08 08:52:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.