[SERVER-5922] Write test for SERVER-5844 Created: 24/May/12  Updated: 22/Feb/18  Resolved: 22/Feb/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.1.1
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File cluster_setup.js     File pytest.py    
Participants:

 Description   

The current test framework does not have a good way of testing the bug for SERVER-5844



 Comments   
Comment by Gregory McKeon (Inactive) [ 22/Feb/18 ]

renctan does this still exist? If not, can you close?

Comment by Randolph Tan [ 24/May/12 ]

Since the spider monkey binding for the cursor only exposes next, objsLeftInBatch and hasNext, there is no way to test SERVER-5844 in our mongo shell test framework.

The attached cluster_setup.js and pytest.py are ad hoc test scripts that can be used to test the bug. To run the test, execute cluster_setup.js first then pytest.py after the moveChunk cmd result prints out. The pytest.py should not throw an exception.

Generated at Thu Feb 08 03:10:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.