@@ -18,7 +18,6 @@ const rst = new ReplSetTest({
18
18
setParameter : {
19
19
// Set the history window to zero to explicitly control the oldest timestamp.
20
20
minSnapshotHistoryWindowInSeconds : 0 ,
21
- logComponentVerbosity : tojson ( { storage : 1 } ) ,
22
21
}
23
22
}
24
23
} ) ;
@@ -52,25 +51,20 @@ assert.commandWorked(db.getCollection("toWrite").insert({x: 1}));
52
51
// Take a checkpoint to advance the checkpoint timestamp.
53
52
assert . commandWorked ( db . adminCommand ( { fsync : 1 } ) ) ;
54
53
55
- // Tests that the table drops are retried when the drop pending reaper runs. Once for the collection
56
- // and once for the index.
57
- checkLog . containsWithAtLeastCount ( primary , "Drop-pending ident is still in use" , 2 ) ;
54
+ // Tests that the table drops are retried each time the drop pending reaper runs until they succeed.
55
+ // We wait for 5 retries here. 5 for the collection table and 5 for the index table .
56
+ checkLog . containsWithAtLeastCount ( primary , "Drop-pending ident is still in use" , 2 * 5 ) ;
58
57
59
58
// Let the table drops succeed.
60
59
assert . commandWorked ( primary . adminCommand ( { configureFailPoint : "WTDropEBUSY" , mode : "off" } ) ) ;
61
60
62
- // Perform another write and another checkpoint to advance the checkpoint timestamp, triggering
63
- // the reaper.
64
- assert . commandWorked ( db . getCollection ( "toWrite" ) . insert ( { x : 1 } ) ) ;
65
- assert . commandWorked ( db . adminCommand ( { fsync : 1 } ) ) ;
66
-
67
- // "The ident was successfully dropped".
68
- checkLog . containsJson ( primary , 6776600 , {
61
+ // Completing drop for ident
62
+ checkLog . containsJson ( primary , 22237 , {
69
63
ident : function ( ident ) {
70
64
return ident == collUri ;
71
65
}
72
66
} ) ;
73
- checkLog . containsJson ( primary , 6776600 , {
67
+ checkLog . containsJson ( primary , 22237 , {
74
68
ident : function ( ident ) {
75
69
return ident == indexUri ;
76
70
}
@@ -80,4 +74,4 @@ assert.commandWorked(
80
74
primary . adminCommand ( { configureFailPoint : "pauseCheckpointThread" , mode : "off" } ) ) ;
81
75
82
76
rst . stopSet ( ) ;
83
- } ( ) ) ;
77
+ } ( ) ) ;
0 commit comments