Skip to content
Open
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 @@ -87,8 +87,9 @@ public void testReadBeforeDelete() throws Exception {
public void testSCNWithTTL() throws Exception {
int ttl = 2;
String fullTableName = createTableWithTTL(ttl);
// sleep for one second longer than ttl
Thread.sleep(ttl * 1000 + 1000);
// The SCN is one second before the current time. Sleep two seconds longer than the TTL so
// that the rows expire at the SCN with one second of margin.
Thread.sleep(ttl * 1000 + 2000);
Properties props = new Properties();
props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB,
Long.toString(EnvironmentEdgeManager.currentTime() - 1000));
Expand Down
Loading