ygerzhedovich commented on code in PR #5121:
URL: https://github.com/apache/ignite-3/pull/5121#discussion_r1935441081
##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/CatalogManagerImpl.java:
##########
@@ -376,14 +377,15 @@ private HybridTimestamp
calcClusterWideEnsureActivationTime(Catalog catalog) {
}
/**
- * Attempts to save a versioned update using a CAS-like logic. If the
attempt fails, makes more attempts
- * until the max retry count is reached.
+ * Attempts to save a versioned update using a CAS-like logic. If the
attempt fails, makes more attempts until the max retry count is
+ * reached.
*
* @param updateProducer Supplies simple updates to include into a
versioned update to install.
* @param attemptNo Ordinal number of an attempt.
- * @return Future that completes with the new Catalog version (if update
was saved successfully) or an exception, otherwise.
+ * @return Future that completes with the result of applying updates,
contains the Catalog version when the updates are visible or an
+ * exception in case of any error.
*/
- private CompletableFuture<Integer> saveUpdate(UpdateProducer
updateProducer, int attemptNo) {
+ private CompletableFuture<CatalogApplyResult>
saveUpdate(List<UpdateProducer> batchUpdateProducers, int attemptNo) {
Review Comment:
ok
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]