Questions tagged [mongodb-4.2]
The mongodb-4.2 tag has no usage guidance.
16
questions
0
votes
1answer
11 views
Rename all databases when doing a mongorestore?
I have a datadump but I need to change the name of every database while restoring them,
if a database is named "customers" it needs to be "customer2", "products" to "...
0
votes
0answers
7 views
Mongodb Downgrade issue
I have upgraded mongodb to 4.4 from 4.2 in our dev server(RHEL 8). But unable to downgrade it from version 4.4 to 4.2 (Tried after changing package /etc/yum.repos.d/mongodb.repo). Getting error ...
0
votes
1answer
51 views
MongoDB Aggregate Poor Index Usage
I've been trying to understand the MongoDB Aggregate process so I can better optimize my queries and I'm confused by usage and $match and $sort together.
Sample DB has only one collection people
[{
...
0
votes
1answer
8 views
MongoDB replica set and db.stats()
We just added a node to our replica set. After the node's state switched to SECONDARY, I do
use obs
db.stats()
on both the PRIMARY node and the new SECONDARY.
PRIMARY SECONDARY
&...
1
vote
2answers
68 views
Failed to start mongo.service on ubuntu 16.04 after update from 4.0 to 4.2
I'm trying to update my MongoDB installation from 3.6 to the latest version [4.4] on Ubuntu16.04 using apt-get. Going from 4.0 to 4.2 I faced a problem during the startup process after updating the ...
0
votes
1answer
218 views
Oplog incremental backup failure
I have scheduled oplog incremental dump using mongodump but it fails very often on majority of the servers. I have a shard cluster with around 200GB of oplog size defined and around 30-40 hours of ...
0
votes
0answers
110 views
MongoDB service showing down but db is running
I have a strange problem.
I am using mongodb version 4.2.8 on Redhat Linux 7. Using Master Slave Replication. When I check mongodb service status (systemctl status mongod.service) it shows as failed(...
1
vote
1answer
51 views
Consequences of increase Oplog to large size
I'm trying to add a new member (m*-server: 4.2.7) in my replica set (m*-servers: 4.2.1),
and it can't sync in time, after the initial sync it changes state to RECOVERING and have: (~ 4.3 - 6.31 hrs) ...
0
votes
0answers
34 views
MongoDb write performance degradation when increasing the number of concurrent writers
I was testing MongoDb write performance and noticed the following behaviour: when I increase the number of concurrent writers, the average time needed to write a document increases as well and ...
0
votes
1answer
2k views
MongoDB - Replication Oplog Window has gone below 1 hours
I'm working with MongoDB Atlas and I have a cluster of 3 with M30 and 100gb of storage.
My current usecase is the following:
- An user dispatches one search in my platform
- The platform dispatches ...
0
votes
0answers
16 views
Remove all Node Descendants when remove Node parent in MongoDB
I have data in MongoDB as Tree Structures model.
Here is my data:
use TreeMongoParent;
db.categoriesPCO.insert({_id:"Electronics",parent:null});
db.categoriesPCO.insert({_id:"Cameras_and_Photography",...
0
votes
1answer
14 views
Mongo assigning user permsions issue on docker
I'm using docker image mongo and I extend it to create a user and assign permissions on image build with such a line COPY init.sh /docker-entrypoint-initdb.d/
Here is the init.sh:
#!/bin/bash
set -e;...
0
votes
1answer
238 views
Mongo slow startup after upgrade to 4.2.5
I have upgraded the MongoDB replica set, which consists of 3 members, from 4.0.11 to 4.2.5.
After upgrading, startup lasts about 5 minutes.
Before upgrading it was instant.
It is related to ...
0
votes
1answer
121 views
mongorestore - documents fail validation
The similar question already have been asked: How to validate a mongorestore
But how to actually validate the documents in mongodumb and mongorestore?
And also - can I see the documents that fail ...
0
votes
3answers
8k views
Failed to start of service MongoDB community4.2 using Homebrew in Mac OS Mojave 10.14
Error message while starting the mongoDB service.
Error:
Permission denied @ rb_sysopen -
/Users/syedahmed/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
I installed/reinstall the ...
0
votes
1answer
384 views
MongoDB 4.2 using change streams with read concern majority disabled in a PSA deployment
I currently run a PSA (Primary, Secondary, Arbiter) deployment and thous only have two databearing nodes.
In case of a databearing node going down, read concern majority prevented the change stream to ...