more context info to debug a flaky test
@@ -493,8 +493,8 @@ public class OfflineClusterIntegrationTest extends BaseClusterIntegrationTestSet
// with only one segment being reloaded with force download and dropping the inverted index.
long tableSizeAfterReloadSegment = getTableSize(getTableName());
assertTrue(tableSizeAfterReloadSegment > DISK_SIZE_IN_BYTES && tableSizeAfterReloadSegment < tableSizeWithNewIndex,
- String.format("Table size: %d should be between %s and %s after dropping inverted index from one segment",
- tableSizeAfterReloadSegment, DISK_SIZE_IN_BYTES, tableSizeWithNewIndex));
+ String.format("Table size: %d should be between %d and %d after dropping inverted index from segment: %s",
+ tableSizeAfterReloadSegment, DISK_SIZE_IN_BYTES, tableSizeWithNewIndex, segmentName));
// Add inverted index back to check if reloading whole table with force download works.
// Note that because we have force downloaded a segment above, it's important to reset the table state by adding
@@ -510,8 +510,8 @@ public class OfflineClusterIntegrationTest extends BaseClusterIntegrationTestSet
// order of entries in the index_map file can change when the raw segment adds/deletes indices back and forth.
long tableSizeAfterAddIndex = getTableSize(getTableName());
assertTrue(tableSizeAfterAddIndex > tableSizeAfterReloadSegment, String
- .format("Table size: %d should increase after adding inverted index, as compared with %s",
- tableSizeAfterAddIndex, tableSizeAfterReloadSegment));
+ .format("Table size: %d should increase after adding inverted index on segment: %s, as compared with %d",
+ tableSizeAfterAddIndex, segmentName, tableSizeAfterReloadSegment));
// Force to download the whole table and use the original table config, so the disk usage should get back to
// initial value.
