[SERVER-14674] Shard dies during chunk migration if running repairDatabase and Compact Created: 24/Jul/14  Updated: 22/Feb/19  Resolved: 22/Feb/19

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

Type: Bug Priority: Major - P3
Reporter: Alex Lerner Assignee: Kaloian Manassiev
Resolution: Done Votes: 1
Labels: repairDatabase
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-15647 Extent Manager must be Thread-safe Closed
depends on SERVER-15633 ShardingState::doRefreshMetadata shou... Closed
Duplicate
Related
Operating System: ALL
Steps To Reproduce:

Not sure if this is 100% reproducable

Sprint: Sharding 2019-02-25
Participants:
Case:

 Description   

Shard dies with a stack trace pointing to DummyRunner class destructor.
During chunk migration, if running repairDatabase and compact, it will cause the old collection pointer to be invalid. You will get a different pointer when you call the getCollection method. The current workaround for this is to stop the balancer whenever user runs these commands.



 Comments   
Comment by Kaloian Manassiev [ 22/Feb/19 ]

With the rewrite of the migration logic in 3.4, we no longer store a pointer to the collection across calls on the donor shard.

Comment by Randolph Tan [ 12/Feb/19 ]

Should verify if this is still a problem

Comment by Githook User [ 29/Oct/14 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: Revert "SERVER-14674 Shard dies during chunk migration if running repairDatabase and Compact"

This reverts commit 0fde30ad2f873e7f835aa224e83a97ae6d4a171e.

Conflicts:
src/mongo/s/d_migrate.cpp
Branch: master
https://github.com/mongodb/mongo/commit/46126da010f8d7803814e21b7de04d512e92b8ee

Comment by Randolph Tan [ 29/Oct/14 ]

Will be reverting last commit since it can cause a deadlock.

Comment by Githook User [ 27/Oct/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-14674 Shard dies during chunk migration if running repairDatabase and Compact
Branch: master
https://github.com/mongodb/mongo/commit/0fde30ad2f873e7f835aa224e83a97ae6d4a171e

Comment by Randolph Tan [ 07/Aug/14 ]

Note: this only affects v2.6 mongod. There are no more runners in the master branch.

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