xtern commented on code in PR #4240:
URL: https://github.com/apache/ignite-3/pull/4240#discussion_r1724627267


##########
modules/catalog-compaction/src/main/java/org/apache/ignite/internal/catalog/compaction/CatalogCompactionRunner.java:
##########
@@ -194,6 +200,31 @@ public CompletableFuture<Void> startAsync(ComponentContext 
componentContext) {
                 return;
             }
 
+            if (message.messageType() == 
CatalogCompactionMessageGroup.PREPARE_TO_UPDATE_TIME_ON_REPLICAS_REQUEST) {
+                assert correlationId != null;
+
+                long txBeginTime = 
((CatalogCompactionPrepareUpdateTxBeginTimeRequest) message).timestamp();
+
+                propagateTimeToReplicasLocal(txBeginTime)
+                        .whenComplete((result, ex) -> {
+                                    
CatalogCompactionPrepareUpdateTxBeginTimeResponseBuilder responseBuilder =
+                                            
COMPACTION_MESSAGES_FACTORY.catalogCompactionPrepareUpdateTxBeginTimeResponse();
+
+                                    if (ex != null) {
+                                        responseBuilder.error(ex.toString());
+
+                                        LOG.warn("Failed to update minimum 
active tx begin time on replicas", ex);

Review Comment:
   Done, thanks.



-- 
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]

Reply via email to