Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Consequences of Jira SERVER-4332
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Guillaume Forget  
View profile  
 More options Nov 15 2012, 6:13 pm
From: Guillaume Forget <gfor...@gmail.com>
Date: Thu, 15 Nov 2012 15:13:18 -0800 (PST)
Local: Thurs, Nov 15 2012 6:13 pm
Subject: Consequences of Jira SERVER-4332

Hello,

I wished I had come across that bug
(https://jira.mongodb.org/browse/SERVER-4332) before I initiated the rename
but unfortunately this isn't the case and I'm a bit puzzled as to the state
of my replica set. I have a simple replica set with 2 nodes and an
arbitrer. On the master I attempted to move a collection from one db to
another using renameCollection:
db.runCommand({renameCollection:"db1.products",to:"db2.products"});

After a few minutes (the collection was about 12GB in size) it came back
with the error
{
"errmsg" : "exception: no index name specified",
"code" : 12523,
"ok" : 0

}

Meanwhile this node stopped being the primary (it probably stopped
responding while I was doing that rename). So things are working fine so
far but I'm curious as to the state of the node I ran the renameCollection
on. Because now the products collection is present in both DBs. Replication
seems to still work fine. So to me it seems that the only difference is
that duplicated collection on what used to be my primary but is now a
secondary. Can I just drop it? Will it let me do it since it's a secondary?

And as a secondary question, how do you move a collection to another DB in
a replica set running with mongo 2.0.7? My collection has 5 million rows
(12GB) and is currently not being used by anything but it's part of a mongo
instance which is used for other things.

Thanks for any insight you can provide.

Gui


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions