Skip to content

Commit 19c6c7a

Browse files
committed
Fix partition timestamp check
1 parent ce6bf60 commit 19c6c7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/uid2/operator/store/CloudSyncOptOutStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ else if (OptOutUtils.isPartitionFile(f))
542542

543543
Instant tsOld = OptOutUtils.lastPartitionTimestamp(indexedNonSynthetic);
544544
Instant tsNew = OptOutUtils.lastPartitionTimestamp(newNonSynthetic);
545-
if (tsOld != Instant.EPOCH && tsNew != Instant.EPOCH && tsOld.isBefore(tsNew)) {
545+
if (tsOld != Instant.EPOCH && tsNew != Instant.EPOCH && !tsOld.isBefore(tsNew)) {
546546
final String errorMsg = "Last partition timestamp of indexed files " + tsOld.getEpochSecond()
547547
+ " is after last partition of non-indexed files " + tsNew.getEpochSecond();
548548
LOGGER.error(errorMsg);

0 commit comments

Comments
 (0)