Skip to content

Commit ec3c134

Browse files
committed
Fix test to improve code coverage
1 parent a43ce3e commit ec3c134

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tsl/test/t/005_recompression_spin_lock_test.pl

+3
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@
136136
SELECT compress_chunk(show_chunks('sensor_data'));
137137
});
138138

139+
# Sleep for 0.5 seconds to ensure that at the end of recompression, an attempt to get the ExclusiveLock on the table is blocked and a retry happens
140+
sleep(0.5);
141+
139142
# Session 2 immediately aborts, releasing the RowExclusiveLock on the table
140143
$result = $s2->query_safe("ABORT");
141144

0 commit comments

Comments
 (0)