Vladsz83 commented on code in PR #13686:
URL: https://github.com/apache/ignite/pull/13686#discussion_r4336675296


##########
modules/core/src/main/java/org/apache/ignite/internal/management/cache/VerifyBackupPartitionsTask.java:
##########
@@ -494,32 +483,43 @@ private Future<Map<PartitionKey, PartitionHashRecord>> 
calculatePartitionHashAsy
                 if (!part.reserve())
                     return res;
 
+                if (!gctx.offheap().stoppageLock().enterBusy()) {
+                    part.release();
+
+                    return res;
+                }
+
+                boolean gwLocked = false;
+
                 try {
                     PartitionUpdateCounter updCntr = 
part.dataStore().partUpdateCounter();
                     PartitionUpdateCounter updateCntrBefore = updCntr == null 
? null : updCntr.copy();
 
+                    ignite.context().gateway().readLock();

Review Comment:
   Also, in theory, we have 2 cases: node stoppage and mem stoppage. Watching 
node stoppage might be redundant exactly in our case if we watch mem. stoppage. 
The filestorages seems not reacting. Just as a good practice - watch node 
stopping too. 



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