MongoDB - changing data directory name changes dataHow to index dynamic attributes in MongoDBDesign the big...
Fantasy series with a god hiding in plain sight as a manservant to a former king's brother and an undead pirate woman who runs a brothel
Linearity Assumption
How can I differentiate duration vs starting time
Neglect higher order derivatives in expression
Was Opportunity's last message to Earth "My battery is low and it's getting dark"?
Coworker asking me to not bring cakes due to self control issue. What should I do?
Isn't a semicolon (';') needed after a function declaration in C++?
How to write Muḥammad ibn Mūsā al-Khwārizmī?
Renting a 2CV in France
Is it possible to detect 100% of SQLi with a simple regex?
How can I give a Ranger advantage on a check due to Favored Enemy without spoiling the story for the player?
Minimum Viable Product for RTS game?
Tikz: Perpendicular FROM a line
Quick Way to Extrude Line to Make Ledges?
Are all power cords made equal?
Crack the bank account's password!
Including proofs of known theorems in master's thesis
Taking an academic pseudonym?
Is "accuse people to be racist" grammatical?
Players preemptively rolling, even though their rolls are useless or are checking the wrong skills
How long can the stop in a stop-and-go be?
Is there a celebrity culture in academia and should we discourage it?
What is an efficient way to digitize a family photo collection?
In the Lost in Space intro why was Dr. Smith actor listed as a special guest star?
MongoDB - changing data directory name changes data
How to index dynamic attributes in MongoDBDesign the big data with mongo dbWhy sharding does not show any improvement?Sizing a MongoDB shard?Database for store images(Ubuntu) Tried to move my MongoDB database to an external drive and now it throws errorsMongoDB sharded cluster chunks distributionHow to speed up MongoDB chunk moving between shardsQuery sharded collection returns all the results from the primary shard AND from the other shardsMongoexport halts when it reaches 101 records
I am witnessing a very bizzare behaviour of MongoDB.
I launch MongoD on a test system (Windows 10, 64bit) like this:
"C:Program FilesMongoDBServer3.6binmongod.exe" --dbpath "C:MongoData"
I then shut down the server and replace the MongoData directory with a data set from a production server. I start mongod again, but I get a collection with 4 documents, which is what I used to have before I replaced my test data set with a real one.
That's not right, because I would expect to see loads of documents in a real data set. I then try dozens of things, including pointing MongoD to the data folder in its original location, which gives me all the documents from the real collection. Phew, the data is safe. But what is happening in my test system?
I have noticed that if I rename the folder in my test system to MongoData2 and lanuch mongod pointing at it then I get my proper production data set. but if I rename it back to MongoData and launch mongod pointing at this folder I get 4 documents again.
What is causing this?
mongodb
add a comment |
I am witnessing a very bizzare behaviour of MongoDB.
I launch MongoD on a test system (Windows 10, 64bit) like this:
"C:Program FilesMongoDBServer3.6binmongod.exe" --dbpath "C:MongoData"
I then shut down the server and replace the MongoData directory with a data set from a production server. I start mongod again, but I get a collection with 4 documents, which is what I used to have before I replaced my test data set with a real one.
That's not right, because I would expect to see loads of documents in a real data set. I then try dozens of things, including pointing MongoD to the data folder in its original location, which gives me all the documents from the real collection. Phew, the data is safe. But what is happening in my test system?
I have noticed that if I rename the folder in my test system to MongoData2 and lanuch mongod pointing at it then I get my proper production data set. but if I rename it back to MongoData and launch mongod pointing at this folder I get 4 documents again.
What is causing this?
mongodb
add a comment |
I am witnessing a very bizzare behaviour of MongoDB.
I launch MongoD on a test system (Windows 10, 64bit) like this:
"C:Program FilesMongoDBServer3.6binmongod.exe" --dbpath "C:MongoData"
I then shut down the server and replace the MongoData directory with a data set from a production server. I start mongod again, but I get a collection with 4 documents, which is what I used to have before I replaced my test data set with a real one.
That's not right, because I would expect to see loads of documents in a real data set. I then try dozens of things, including pointing MongoD to the data folder in its original location, which gives me all the documents from the real collection. Phew, the data is safe. But what is happening in my test system?
I have noticed that if I rename the folder in my test system to MongoData2 and lanuch mongod pointing at it then I get my proper production data set. but if I rename it back to MongoData and launch mongod pointing at this folder I get 4 documents again.
What is causing this?
mongodb
I am witnessing a very bizzare behaviour of MongoDB.
I launch MongoD on a test system (Windows 10, 64bit) like this:
"C:Program FilesMongoDBServer3.6binmongod.exe" --dbpath "C:MongoData"
I then shut down the server and replace the MongoData directory with a data set from a production server. I start mongod again, but I get a collection with 4 documents, which is what I used to have before I replaced my test data set with a real one.
That's not right, because I would expect to see loads of documents in a real data set. I then try dozens of things, including pointing MongoD to the data folder in its original location, which gives me all the documents from the real collection. Phew, the data is safe. But what is happening in my test system?
I have noticed that if I rename the folder in my test system to MongoData2 and lanuch mongod pointing at it then I get my proper production data set. but if I rename it back to MongoData and launch mongod pointing at this folder I get 4 documents again.
What is causing this?
mongodb
mongodb
asked 3 mins ago
Tony SepiaTony Sepia
1134
1134
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230577%2fmongodb-changing-data-directory-name-changes-data%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Database Administrators Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230577%2fmongodb-changing-data-directory-name-changes-data%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown