Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1367,9 +1367,13 @@ public void testIncrementalRebuildWithPageSize() throws Exception {
conn.createStatement().execute("UPSERT INTO " + fullDataTableName + " VALUES('a','aa')");
conn.createStatement().execute("UPSERT INTO " + fullDataTableName + " VALUES('b','bb')");
conn.commit();
// The table has no index yet, so the server does not keep batch timestamps apart.
// Each commit must use a new millisecond. Otherwise a delete masks the earlier put.
Thread.sleep(1);
conn.createStatement().execute("DELETE FROM " + fullDataTableName + " WHERE k = 'a'");
conn.createStatement().execute("DELETE FROM " + fullDataTableName + " WHERE k = 'b'");
conn.commit();
Thread.sleep(1);
conn.createStatement().execute("UPSERT INTO " + fullDataTableName + " VALUES('a','aaa')");
conn.createStatement().execute("UPSERT INTO " + fullDataTableName + " VALUES('b','bbb')");
conn.createStatement().execute("DELETE FROM " + fullDataTableName + " WHERE k = 'c'");
Expand Down
Loading