Questions tagged [wiredtiger]

A key/value database engine which is also part of mongo 3.0

wiredtiger logo

WiredTiger provides an ordered mapping from string keys to string values, columns support, transactions, async and bulk operations, custom collators, extractors and data sources.

See WiredTiger website

170 questions
1
vote
0 answers

mongodb replace_one with upsert=True upserts when it should replace. How to fix?

Background: This is my first time working with mongodb on a project. I am using pymongo and fastapi to insert a document representing a location into my alllocations collection. For this project I am pulling locations from other APIs on the internet…
Currn Hyde
  • 57
  • 5
1
vote
1 answer

Mongodb 4.4. replica set members stuck on startup (WT_VERB_RECOVERY step)

After a replica member restart (possibly unclean), the server startup process is stuck without any indication of CPU or disk IO usage. The log outputs are the following: {"t":{"$date":"2021-09-20T18:15:43.621+00:00"},"s":"I", "c":"CONTROL", …
Julius Š.
  • 164
  • 14
1
vote
1 answer

Stale data on secondary during addition of new member with majority concern

Given a basic replicaSet composed of 1 primary + 1 secondary + 1 arbiter, with mongo 4.0 and majority enabled, we ran into a strange issue we cannot explain yet We wanted to add a new secondary to the replicaSet. So we started a new VM, installed…
Tiller
  • 436
  • 1
  • 4
  • 22
1
vote
0 answers

MongoDB 3.4.2 crashes on checksum error with checksum 0x20202020 (four spaces), decimal 538976288

We experience a very rare crash on our single MongoDb instance. System was good for 'years', running in a VMWare VM with 16Gb of memory. Now in short time we experience twice the: WT_CURSOR.search: read checksum error for 4096B block at offset…
Marc
  • 11
  • 2
1
vote
1 answer

Rspec tests pass when running individually but fails when running all together

The project uses MongoDB, so this answers weren't helpfull: 1, 2, 3 I can successfully execute every test file, or even small groups of test files, but they fail when running all together. rspec spec/* Finished in 23 minutes 45 seconds (files took…
1
vote
1 answer

Error starting up a backup WiredTiger mongodb Database

I'm tasked to restore a WiredTiger mongodb backup on a new server, I've downloaded the folder to a path /data/db But when running sudo mongod --dbpath=/data/db on a new server, gave the following…
1
vote
0 answers

Mongodb start failure in Centos 7

I get the following error when trying to start mongodb in Centos 7. 2020-10-11T18:50:38.859+0100 E STORAGE [initandlisten] WiredTiger error (22) [1602438638:858979][8880:0x7f52dd7f4e80], WT_SESSION.open_cursor: 'table:_mdb_catalog' cannot be used…
userDtrm
  • 533
  • 2
  • 7
  • 20
1
vote
1 answer

Mongodb db.serverStatus().storageEngine are not shown

I'm using MongoDB of version 4.2.8 The storage engine is wiredTiger I entered the db.serverStatus().wiredTiger to monitor cache usage, but storageEngine and wiredTiger field are not shown. On the other hand, consist of standalone can see these…
1mm.p
  • 37
  • 5
1
vote
1 answer

What happens if one working set exceeds memory in MongDB?

I understand that the working set is cached every time a query is run in the mongoDB. What happens if one working set exceeds the caching memory when I know that the data on the previous page is removed and cached? Ex) cacheSizeGB: 0.5g, total…
1mm.p
  • 37
  • 5
1
vote
1 answer

MongoDB always getting a checksum error if the uncompressed data size is more than cache size

Getting consistent checksum errors and crashing in MongoDB whenever the size of the uncompressed data is more than the cache. Some information: Computer: (standalone mongodb) CPU AMD 3600X Memory 32*4 = 128GB Storage 2TB SSD Method Board…
CJ Jacobs
  • 299
  • 1
  • 16
1
vote
1 answer

Calculate WiredTiger cache miss from db.serverStatus output

Been reading the following https://medium.com/dbkoda/the-notorious-database-cache-hit-ratio-c7d432381229 article which seems to calculate WiredTiger cache miss rate from data taken in db.serverStatus() output. However, after performing the command…
czr_RR
  • 541
  • 5
  • 16
1
vote
1 answer

Cache only high-usage keys in MongoDB

Suppose we have a simple blog with many posts. And we regularly execute a query to get list of post's title and date from the posts collection. So, What will cache inside of the Ram in this scenario(except indexes)? the whole document or only _ids,…
Amin Shojaei
  • 5,451
  • 2
  • 38
  • 46
1
vote
1 answer

Import data for local mongodb from WiredTiger shard archive

I've downloaded an archive with a shard of database from cloud.mongodb. There is a folder with many .wt files inside this archive. But I couldn't find a way to replicate this data to my local machine. I tried Studio3T but it seems that such format…
1
vote
0 answers

MongoDB not starting on docker-compose

I have multiple images that I want to start from a docker-compose file. Most of them work properly but the MongoDB one keeps failing on build. It has to be a set-up problem as the same code is running just fine on other computers. I've tried to…
BaRts2525
  • 11
  • 2
1
vote
0 answers

Retrieve data from corrupted Mongodb

After a system crash, MongoDB (4.0.6) refuses to start because of corrupted data. Mongod --repair does not fix it: WT_CURSOR.search_near: read checksum error for 24576B block at offset 57344: block header checksum of 3933356853 doesn't match…
Arzhr
  • 435
  • 8
  • 22