chesnokoff commented on code in PR #12301:
URL: https://github.com/apache/ignite/pull/12301#discussion_r2426721525
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/nodevalidation/OsDiscoveryNodeValidationProcessor.java:
##########
@@ -32,42 +38,85 @@
* Node validation.
*/
public class OsDiscoveryNodeValidationProcessor extends GridProcessorAdapter
implements DiscoveryNodeValidationProcessor {
+ /** Key for the distributed property that holds current and target
versions. */
+ public static final String ROLL_UP_VERSIONS = "rolling.upgrade.versions";
+
+ /** Distributed property that holds current and target version. */
+ private final AtomicReference<IgnitePair<IgniteProductVersion>>
verPairHolder = new AtomicReference<>();
+
/**
* @param ctx Kernal context.
*/
public OsDiscoveryNodeValidationProcessor(GridKernalContext ctx) {
super(ctx);
+
+
ctx.internalSubscriptionProcessor().registerDistributedMetastorageListener(new
DistributedMetastorageLifecycleListener() {
+ @Override public void
onReadyForRead(ReadableDistributedMetaStorage metastorage) {
Review Comment:
I decided not to implement onReadyForWrite because it looks like there can
be race conditions then
--
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]