[JAVA-326] Sharding assertion strategy_shard.cpp Created: 16/Apr/11  Updated: 19/Oct/16  Resolved: 24/Oct/11

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 2.5.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Gaetan Voyer-Perrault Assignee: Antoine Girbal
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Server 1.8.1
Java 2.5.3
Configuration: basic sharding (3-nodes, 1 config DB, no replication)


Attachments: Text File sample_insert.java    
Issue Links:
Depends
Related

 Description   

Assertion:
"assertion s/strategy_shard.cpp:175"

Basic premise:

  • Testing multi-threaded inserts into a single collection
  • Running 50 insert threads against a single mongoS
  • Testing runs fine for several hundred thousand inserts
  • Testing then start throwing this exception

Shard key: a simple _id.

Exception:

  • does not occur with { java : 2.5.3, server : 1.6.5 }
  • does not occur with { java : 2.3, server : 1.8.1 }
  • does not occur with { java : 2.3, server : 1.6.5 }
  • is returned from a "GetLastError" call. (see attached for code)
  • seems to occur at about 11 or 12 chunks (9:1:1)

(note: this may be a server bug, but given that older java drivers do not have the error, it should start here)


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