[JAVA-212] java driver hung when primary is killed Created: 05/Nov/10 Updated: 25/Jun/13 Resolved: 24/Oct/11 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Cluster Management |
| Affects Version/s: | 2.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Joseph Wang | Assignee: | Antoine Girbal |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
1.7.2 servers. Code: try { try { dbObject = db } else { System.out .println("Info DbInsertListWorker: empty collection"); } db.requestDone(); } else { System.out.println("Info DbInsertListWorker: empty mongo"); }} catch (Exception ex) { System.out.println("DbInsertListWorker: exception " + ex); ex.printStackTrace(); }if (enable_debug) { System.err.println("Info DbInsertListWorker: Insertion end"); }} catch (Exception ex) { System.err.println("Error DbInsertListWorker:" + ex.toString()); }} Have 1 primary, 1 slave, and 1 arbiter. Killed primary while running insertion test. The secondary Nov 4, 2010 11:48:15 PM com.mongodb.ReplicaSetStatus$Node update |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 24/Oct/11 ] |
|
With the latest driver, soon to be 2.7, we cannot reproduce this. Please let us know if you can. |
| Comment by Joseph Wang [ 11/Feb/11 ] |
|
1) we've not switched to 2.4 java driver. |
| Comment by Antoine Girbal [ 11/Feb/11 ] |
|
output from sample test |
| Comment by Antoine Girbal [ 11/Feb/11 ] |
|
Looking into this issue. I tried to reproduce this issue with driver 2.5. Questions:
|
| Comment by Joseph Wang [ 05/Nov/10 ] |
|
It seems the only way to get around this is to close mongo instance and reestablish connection. |
| Comment by Joseph Wang [ 05/Nov/10 ] |
|
Killed the primary while running the insert. Even though the primary switched mongo.debugString() showed: mongo.getConnectPoint() showed: |
| Comment by Joseph Wang [ 05/Nov/10 ] |
|
insert test script no=10000000 date > insert.log |