[SERVER-36879] write regression test for stuck cache issue during rollback Created: 27/Aug/18  Updated: 29/Oct/23  Resolved: 06/Sep/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 3.6.4
Fix Version/s: 3.6.9, 4.0.3, 4.1.3

Type: Task Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-35191 Stuck with cache full during rollback Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0, v3.6
Sprint: Storage NYC 2018-09-10
Participants:

 Description   

Write a JS test to reproduce the issue described in SERVER-35191. The underlying issue was originally observed during steady state replication in 3.6.5 and subsequently fixed in 3.6.6



 Comments   
Comment by Githook User [ 18/Sep/18 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-36879 add rollback_wt_cache_full.js

In this test, the secondary refetches a set of large documents from the sync source during
rollback.

(cherry picked from commit 4599627eb86818b72189cd7eb165ceb4b22eb9ce)
Branch: v3.6
https://github.com/mongodb/mongo/commit/2eee1ae539f2b23062046cbee8298e794544b1f9

Comment by Githook User [ 18/Sep/18 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-36879 RollbackTest optionally accepts ReplSetTest and skips creating its own instance

(partially cherry-picked from commit bff8e6e0040d659dc2d70c28b98a42e9052a8743)
Branch: v3.6
https://github.com/mongodb/mongo/commit/17369fa51eb23b584760f9a6a0db6514f418e983

Comment by Githook User [ 18/Sep/18 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: Revert "SERVER-36879 add rollback_wt_cache_full.js"

This reverts commit 80fb50d5ee924b5d3d471cc314ea4bec1a58cbdd.
Branch: v3.6
https://github.com/mongodb/mongo/commit/d96ab0ce8b1216480e679010ec78582172fd5e02

Comment by Githook User [ 18/Sep/18 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-36879 add rollback_wt_cache_full.js

In this test, the secondary refetches a set of large documents from the sync source during
rollback.

(cherry picked from commit 4599627eb86818b72189cd7eb165ceb4b22eb9ce)
Branch: v3.6
https://github.com/mongodb/mongo/commit/80fb50d5ee924b5d3d471cc314ea4bec1a58cbdd

Comment by Githook User [ 10/Sep/18 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-36879 reduce cache size from 1 GB to 512 MB in rollback_wt_cache_full.js

This setting makes it easier to reproduce cache pressure issues in 3.6's rollback
implementation.

(cherry picked from commit 8aadacefd8c3f3507d519e60c2e7d8ef7f2f29bb)
Branch: v4.0
https://github.com/mongodb/mongo/commit/8480e2323f7eed22a6b11303c1369716aa13da79

Comment by Githook User [ 10/Sep/18 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-36879 add rollback_wt_cache_full.js

In this test, the secondary refetches a set of large documents from the sync source during
rollback.

(cherry picked from commit 4599627eb86818b72189cd7eb165ceb4b22eb9ce)
Branch: v4.0
https://github.com/mongodb/mongo/commit/3923d2b2f0d005af5cb6a5bb5e16242ee1123d8d

Comment by Githook User [ 06/Sep/18 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-36879 reduce cache size from 1 GB to 512 MB in rollback_wt_cache_full.js

This setting makes it easier to reproduce cache pressure issues in 3.6's rollback
implementation.
Branch: master
https://github.com/mongodb/mongo/commit/8aadacefd8c3f3507d519e60c2e7d8ef7f2f29bb

Comment by Githook User [ 06/Sep/18 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-36879 add rollback_wt_cache_full.js

In this test, the secondary refetches a set of large documents from the sync source during
rollback.
Branch: master
https://github.com/mongodb/mongo/commit/4599627eb86818b72189cd7eb165ceb4b22eb9ce

Generated at Thu Feb 08 04:44:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.