[JAVA-397] authentication for replica set fails frequently because 'getnonce' and 'authenticate' command is issued to different server Created: 20/Jul/11 Updated: 29/Aug/12 Resolved: 20/Aug/12 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Cluster Management |
| Affects Version/s: | 2.6.3 |
| Fix Version/s: | 2.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Hitoshi Asai | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | driver, replication, slaveOk | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OS: Ubuntu 11.04 64bit, Mongod: 1.8.2, JDK: Oracle JDK 1.6.0u26, mongo-java-driver: 2.6.3 |
||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Description |
|
following code returns false.
'getnonce' and 'authenticate' command seems to be issued to different server. and logged following message on the server which received 'authenticate' command.
'getnonce' and 'authenticate' should be issued to same server whether 'slaveOk' or not. |
| Comments |
| Comment by Jeffrey Yemin [ 29/Aug/12 ] |
|
Closing as part of 2.9.0 release process. |
| Comment by Jeffrey Yemin [ 20/Aug/12 ] |
|
This was fixed in scope of |
| Comment by Jeffrey Yemin [ 20/Aug/12 ] |
|
This was still broken, but now fixed in 2.9.0. |
| Comment by Jeffrey Yemin [ 20/Aug/12 ] |
|
Can you try with 2.9.0-RC1. I changed the code in that release to work like this:
See https://github.com/mongodb/mongo-java-driver/commit/0cac416c24073e27733df9bee3e7e2418a3b59c2 |
| Comment by Kay Agahd [ 20/Aug/12 ] |
|
Just to let you know that the bug still persists in MongoDB v2.2.0-rc1. I added a comment to this issue, since it might be a server and not a driver bug: |
| Comment by auto [ 04/Aug/11 ] |
|
Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}Message: |
| Comment by Antoine Girbal [ 04/Aug/11 ] |
|
thanks for the report.
|