We just added a new priority 0 machine to our main replica set (EC2
instance for EBS snapshots). To start it up, I shut down one of our
existing secondaries, copied the entire data directory and started
with --fastsync, as usual. However, I'm seeing a large number of
entries like his in the log on the new member:
Tue May 17 21:04:30 [replica set sync] info: creating collection
site_data.tmp.mr.foo_tmp_854_inc on add index
Tue May 17 21:04:30 [replica set sync] building new index on { 0: 1 }
for site_data.tmp.mr.foo_tmp_854_inc
Tue May 17 21:04:30 [replica set sync] done for 0 records 0secs
Tue May 17 21:04:30 [replica set sync] building new index on { _id:
1 } for site_data.tmp.mr.audioitems_foo_tmp_854
Tue May 17 21:04:30 [replica set sync] done for 0 records 0secs
The sync is taking rather long, as well. This stack overflow post:
http://stackoverflow.com/questions/4163157/mongodb-remove-mapreduce-collection
suggests I iterate through collections and remove any =~ /
tmp.mr/, but
in my case they do not actually appear in db.getCollectionNames()
output.
I haven't seen this behavior while adding other secondaries, though we
did not use as much MR before.
Is this normal behavior? How can I remove these collections? Am I at
risk of running out of namespaces if they pile up?