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) {