You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vp...@apache.org on 2023/10/19 12:35:00 UTC
[ignite-3] branch main updated: IGNITE-20693 Fixed NPE in placement driver actor on deactivation (#2718)
This is an automated email from the ASF dual-hosted git repository.
vpyatkov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new 1883697a1d IGNITE-20693 Fixed NPE in placement driver actor on deactivation (#2718)
1883697a1d is described below
commit 1883697a1d63b7b05a914c710bac21dcfce0ff04
Author: Vladislav Pyatkov <vl...@gmail.com>
AuthorDate: Thu Oct 19 15:34:54 2023 +0300
IGNITE-20693 Fixed NPE in placement driver actor on deactivation (#2718)
---
.../java/org/apache/ignite/internal/placementdriver/LeaseUpdater.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/placement-driver/src/main/java/org/apache/ignite/internal/placementdriver/LeaseUpdater.java b/modules/placement-driver/src/main/java/org/apache/ignite/internal/placementdriver/LeaseUpdater.java
index f7048b8042..6c8ee66c29 100644
--- a/modules/placement-driver/src/main/java/org/apache/ignite/internal/placementdriver/LeaseUpdater.java
+++ b/modules/placement-driver/src/main/java/org/apache/ignite/internal/placementdriver/LeaseUpdater.java
@@ -283,7 +283,9 @@ public class LeaseUpdater {
}
try {
- updateLeaseBatchInternal();
+ if (active()) {
+ updateLeaseBatchInternal();
+ }
} finally {
stateChangingLock.leaveBusy();
}