@@ -1809,7 +1809,7 @@ func TestSimpleAggregation(t *testing.T) {
18091809 testingpkg .Assert (t , tuple_ == nil && done == true && err == nil , "second call of AggregationExecutor::Next() failed" )
18101810
18111811 txn_mgr .Commit (nil , txn )
1812- shi .Shutdown (true )
1812+ shi .Shutdown (samehada . ShutdownPatternRemoveFiles )
18131813}
18141814
18151815func TestSimpleGroupByAggregation (t * testing.T ) {
@@ -1889,7 +1889,7 @@ func TestSimpleGroupByAggregation(t *testing.T) {
18891889 }
18901890
18911891 txn_mgr .Commit (nil , txn )
1892- shi .Shutdown (true )
1892+ shi .Shutdown (samehada . ShutdownPatternRemoveFiles )
18931893}
18941894
18951895func TestSeqScanWithMultiItemPredicate (t * testing.T ) {
@@ -1963,7 +1963,7 @@ func TestSeqScanWithMultiItemPredicate(t *testing.T) {
19631963
19641964 txn_mgr .Commit (nil , txn )
19651965
1966- shi .Shutdown (true )
1966+ shi .Shutdown (samehada . ShutdownPatternRemoveFiles )
19671967}
19681968
19691969func TestInsertAndSpecifiedColumnUpdate (t * testing.T ) {
@@ -2138,7 +2138,7 @@ func TestInsertAndSpecifiedColumnUpdatePageMoveCase(t *testing.T) {
21382138 testingpkg .Assert (t , types .NewInteger (99 ).CompareEquals (results [0 ].GetValue (outSchema , 0 )), "value should be 99" )
21392139 testingpkg .Assert (t , types .NewVarchar ("updated_xxxxxxxxxxxxxxxxxxxxxxxxx" ).CompareEquals (results [0 ].GetValue (outSchema , 1 )), "value should be 'updated_xxxxxxxxxxxxxxxxxxxxxxxxx'" )
21402140
2141- shi .Shutdown (true )
2141+ shi .Shutdown (samehada . ShutdownPatternRemoveFiles )
21422142}
21432143
21442144func TestInsertAndSpecifiedColumnUpdatePageMoveRecovery (t * testing.T ) {
@@ -2206,7 +2206,7 @@ func TestInsertAndSpecifiedColumnUpdatePageMoveRecovery(t *testing.T) {
22062206 executionEngine .Execute (updatePlanNode , executorContext )
22072207
22082208 // system crash before finish txn
2209- shi .Shutdown (false )
2209+ shi .Shutdown (samehada . ShutdownPatternCloseFiles )
22102210
22112211 // restart system
22122212 shi = samehada .NewSamehadaInstance (t .Name (), common .BufferPoolMaxFrameNumForTest )
@@ -2269,7 +2269,7 @@ func TestInsertAndSpecifiedColumnUpdatePageMoveRecovery(t *testing.T) {
22692269 testingpkg .Assert (t , types .NewInteger (99 ).CompareEquals (results [0 ].GetValue (outSchema , 0 )), "value should be 99" )
22702270 testingpkg .Assert (t , types .NewVarchar ("k" ).CompareEquals (results [0 ].GetValue (outSchema , 1 )), "value should be 'k'" )
22712271
2272- shi .Shutdown (true )
2272+ shi .Shutdown (samehada . ShutdownPatternRemoveFiles )
22732273
22742274 common .TempSuppressOnMemStorage = false
22752275 common .TempSuppressOnMemStorageMutex .Unlock ()
@@ -2381,7 +2381,7 @@ func TestInsertAndSpecifiedColumnUpdatePageMoveOccurOnRecovery(t *testing.T) {
23812381 txn_mgr .Commit (nil , txn2 )
23822382
23832383 // system crash before finish "txn"
2384- shi .Shutdown (false )
2384+ shi .Shutdown (samehada . ShutdownPatternCloseFiles )
23852385
23862386 // restart system
23872387 shi = samehada .NewSamehadaInstance (t .Name (), common .BufferPoolMaxFrameNumForTest )
@@ -2444,7 +2444,7 @@ func TestInsertAndSpecifiedColumnUpdatePageMoveOccurOnRecovery(t *testing.T) {
24442444 testingpkg .Assert (t , types .NewInteger (180 ).CompareEquals (results [0 ].GetValue (outSchema , 0 )), "value should be 180" )
24452445 testingpkg .Assert (t , types .NewVarchar ("kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk" ).CompareEquals (results [0 ].GetValue (outSchema , 1 )), "value should be 'kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk'" )
24462446
2447- shi .Shutdown (true )
2447+ shi .Shutdown (samehada . ShutdownPatternRemoveFiles )
24482448
24492449 common .TempSuppressOnMemStorage = false
24502450 common .TempSuppressOnMemStorageMutex .Unlock ()
@@ -2556,7 +2556,7 @@ func TestSimpleSeqScanAndOrderBy(t *testing.T) {
25562556 testingpkg .Assert (t , types .NewVarchar ("daylight" ).CompareEquals (results [2 ].GetValue (scan_schema , 1 )), "value should be 'daylight'" )
25572557
25582558 txn_mgr .Commit (nil , txn )
2559- shi .Shutdown (true )
2559+ shi .Shutdown (samehada . ShutdownPatternRemoveFiles )
25602560}
25612561
25622562func TestSimpleSetNullToVarchar (t * testing.T ) {
@@ -2640,7 +2640,7 @@ func TestSimpleSetNullToVarchar(t *testing.T) {
26402640 testingpkg .Assert (t , types .NewVarchar ("daylight" ).CompareEquals (results [2 ].GetValue (scan_schema , 1 )), "value should be 'daylight'" )
26412641
26422642 txn_mgr .Commit (nil , txn )
2643- shi .Shutdown (true )
2643+ shi .Shutdown (samehada . ShutdownPatternRemoveFiles )
26442644}
26452645
26462646func TestInsertNullValueAndSeqScanWithNullComparison (t * testing.T ) {
0 commit comments