Always convert start metadata to start (#7332)

This commit is contained in:
Jihoon Son 2019-03-22 21:12:15 -07:00 committed by GitHub
parent 4ca5fe0f60
commit f410c28af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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