[SERVER-15366] Balancer tries to move chunks for non existing ns Created: 24/Sep/14  Updated: 29/Oct/14  Resolved: 29/Oct/14

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

Type: Bug Priority: Major - P3
Reporter: Simone Sciarrati Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

In our cluster the balancer spends a fair amount of time trying to move around chunks for a database that doesn't exist any longer.

The database name is "aggregate":

exception: Dropping collection failed on the following hosts:
set1/mongo1.domain.net:27019: { errmsg: \"ns not found\", ok: 0.0 },
set2/mongo2.domain.net:27019: { errmsg: \"ns not found\", ok: 0.0 }

in the config DB:

mongos> db.databases.find({"_id": /aggregate/})
{ "_id" : "aggregate_2", "partitioned" : false, "primary" : "shard0001" }

Note that aggregate_2 is a different database - the point is that the database "aggregate" is not present

mongos> db.chunks.find({"ns": /aggregate\./}).count()
2271

Just to be sure, no chunks associated with aggregate_2:

mongos> db.chunks.find({"ns": /aggregate_2/}).count()
0

I am not sure how we could end up in this situation but I would like to find a way out, is it safe to just delete all chunks in config.chunks associated with the "aggregate" ns?

mongoDB version 2.2.2



 Comments   
Comment by Ramon Fernandez Marina [ 29/Oct/14 ]

MongoDB 2.2.2 is really old at this stage. If this is a bug in 2.2.2 it's unlikely it will get fixed, so I'd recommend upgrading to 2.4.12 or 2.6.5 at this stage.

If you need support for 2.2.2 please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group.

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