sergeyuttsel commented on code in PR #1426:
URL: https://github.com/apache/ignite-3/pull/1426#discussion_r1050680613
##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java:
##########
@@ -373,4 +487,39 @@ private void updateMetaStorageOnZoneDelete(int zoneId,
long revision) {
busyLock.leaveBusy();
}
}
+
+ /**
+ * Returns applied vault revision.
+ */
+ private long vaultAppliedRevision() {
+ try {
+ return vaultMgr.get(APPLIED_REV)
+ .thenApply(appliedRevision -> appliedRevision == null ? 0L
: bytesToLong(appliedRevision.value()))
+ .get();
+ } catch (InterruptedException | ExecutionException e) {
+ throw new IgniteInternalException(e);
Review Comment:
I created new error code.
--
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]