From f410c28af68f258bac9d7fd33899a21e7ddf4605 Mon Sep 17 00:00:00 2001 From: Jihoon Son Date: Fri, 22 Mar 2019 21:12:15 -0700 Subject: [PATCH] Always convert start metadata to start (#7332) --- .../druid/metadata/IndexerSQLMetadataStorageCoordinator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/apache/druid/metadata/IndexerSQLMetadataStorageCoordinator.java b/server/src/main/java/org/apache/druid/metadata/IndexerSQLMetadataStorageCoordinator.java index 16f320e536f..51e33db1261 100644 --- a/server/src/main/java/org/apache/druid/metadata/IndexerSQLMetadataStorageCoordinator.java +++ b/server/src/main/java/org/apache/druid/metadata/IndexerSQLMetadataStorageCoordinator.java @@ -886,7 +886,7 @@ public class IndexerSQLMetadataStorageCoordinator implements IndexerMetadataStor // Even though kafka/kinesis indexing services use different sequenceNumber types for representing // start and end sequenceNumbers, the below conversion is fine because the new start sequenceNumbers are supposed // to be same with end sequenceNumbers of the last commit. - startMetadataMatchesExisting = startMetadata.matches(oldCommitMetadataFromDb.asStartMetadata()); + startMetadataMatchesExisting = startMetadata.asStartMetadata().matches(oldCommitMetadataFromDb.asStartMetadata()); } if (!startMetadataMatchesExisting) {