@@ -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