jchen21 commented on a change in pull request #7440: URL: https://github.com/apache/geode/pull/7440#discussion_r827457762
########## File path: geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/RegionAdvisor.java ########## @@ -180,19 +180,23 @@ public void processProfilesQueuedDuringInitialization() { logger.trace(LogMarker.DISTRIBUTION_ADVISOR_VERBOSE, "applying queued profile removal for all buckets for {}", qbp.memberId); } - for (int i = 0; i < buckets.length; i++) { - BucketAdvisor ba = buckets[i].getBucketAdvisor(); - int serial = qbp.serials[i]; - if (serial != ILLEGAL_SERIAL) { - ba.removeIdWithSerial(qbp.memberId, serial, qbp.destroyed); - } - } // for + if (qbp.serials.length == 1) { Review comment: The corresponding change is in `removeIdAndBucket()` which enqueues a `QueuedBucketProfile` that has a single serial to destroy. I missed `ILLEGAL_SERIAL` checking here. The serials array is used to for `DestroyPartitionedRegionMessage`. Here we use the single element serials array for `DestroyRegionMessage`. -- 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: notifications-unsubscr...@geode.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org