Skip to content

Commit 709640b

Browse files
craig[bot]pav-kv
andcommitted
Merge #158134
158134: kvserver: more logging in a flaked test r=tbg a=pav-kv Informs #157246 Co-authored-by: Pavel Kalinnikov <[email protected]>
2 parents 1f1ee11 + da0311d commit 709640b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/kv/kvserver/deleted_external_sstable_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,8 @@ func TestGeneralOperationsWorkAsExpectedOnDeletedExternalSST(t *testing.T) {
422422

423423
skip.UnderRace(t) // too slow under stressrace
424424

425+
testutils.SetVModule(t, "raft=4") // helps #157246 if it comes up again
426+
425427
testCases := []struct {
426428
name string
427429
deletedExternalSpanStart roachpb.Key
@@ -858,19 +860,22 @@ func TestGeneralOperationsWorkAsExpectedOnDeletedExternalSST(t *testing.T) {
858860

859861
externalStorage, err := etc.createExternalStorage(ctx, etc.externURI)
860862
require.NoError(t, err)
863+
t.Log("created external storage")
861864

862865
firstStartChar := testCase.deletedExternalSpanStart[0]
863866
firstEndChar := testCase.deletedExternalSpanEnd[0]
864867
require.NoError(t, etc.createExternalSSTableFile(t, ctx, externalStorage,
865868
etc.sstFile, firstStartChar, firstEndChar))
866869
require.NoError(t, etc.linkExternalSSTableToFile(ctx, testCase.deletedExternalSpanStart,
867870
testCase.deletedExternalSpanEnd, etc.externURI, etc.sstFile))
871+
t.Log("linked external SST")
868872

869873
// Before deleting the file, run some data operations that will be
870874
// on top of the SSTable pointing to the soon-to-be deleted file.
871875
pendingTxn1, pendingTxn2, err := etc.writeIntents(ctx, etc.db)
872876
require.NoError(t, err)
873877
require.NoError(t, externalStorage.Delete(ctx, etc.sstFile))
878+
t.Log("deleted external SST")
874879

875880
// We should be able to commit the transactions since they just have
876881
// point writes, and they wouldn't need the deleted file.
@@ -879,7 +884,9 @@ func TestGeneralOperationsWorkAsExpectedOnDeletedExternalSST(t *testing.T) {
879884

880885
// Run the test function, and make sure that the store is consistent
881886
// afterward.
887+
t.Log("running custom func")
882888
testCase.testFunc(t, ctx, etc)
889+
t.Log("checking consistency")
883890
require.NoError(t, etc.checkConsistency(ctx, roachpb.Key("a"), roachpb.Key("z")))
884891
})
885892
}

0 commit comments

Comments
 (0)