CommitCoordinatorClient¶
CommitCoordinatorClient is an abstraction of commit coordinator clients that can communicate with a commit coordinator and backfill commits.
Contract¶
backfillToVersion¶
void backfillToVersion(
LogStore logStore,
Configuration hadoopConf,
TableDescriptor tableDescriptor,
long version,
Long lastKnownBackfilledVersion) throws IOException
See:
Used when:
DynamoDBCommitCoordinatorClientis requested tocommitUCCommitCoordinatorClientis requested to commitImpl and attemptFullBackfillAbstractBatchBackfillingCommitCoordinatorClientis requested tocommitTableCommitCoordinatorClientis requested to backfillToVersion
commit¶
CommitResponse commit(
LogStore logStore,
Configuration hadoopConf,
TableDescriptor tableDescriptor,
long commitVersion,
Iterator<String> actions,
UpdatedActions updatedActions) throws CommitFailedException
See:
Used when:
TableCommitCoordinatorClientis requested to commit
getCommits¶
See:
Used when:
UCCommitCoordinatorClientis requested to getLastKnownBackfilledVersion and backfillToVersionAbstractBatchBackfillingCommitCoordinatorClientis requested tobackfillToVersionTableCommitCoordinatorClientis requested to getCommits
registerTable¶
Map<String, String> registerTable(
Path logPath,
Optional<TableIdentifier> tableIdentifier,
long currentVersion,
AbstractMetadata currentMetadata,
AbstractProtocol currentProtocol)
See:
Used when:
OptimisticTransactionImplis requested to registerTableForCoordinatedCommitsIfNeeded
semanticEquals¶
See:
Used when:
CommitCoordinatorClientis requested to semanticEquals
Implementations¶
AbstractBatchBackfillingCommitCoordinatorClientDynamoDBCommitCoordinatorClientFileSystemBasedCommitCoordinatorClient- UCCommitCoordinatorClient
CommitCoordinatorClient.semanticEquals¶
semanticEquals(
commitCoordinatorClientOpt1: Option[CommitCoordinatorClient],
commitCoordinatorClientOpt2: Option[CommitCoordinatorClient]): Boolean
semanticEquals...FIXME
semanticEquals is used when:
TableCommitCoordinatorClientis requested to semanticsEquals