You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by se...@apache.org on 2021/02/02 13:59:34 UTC

[ignite] branch master updated: IGNITE-14093 TTL cleanup worker logic fix: it should not start on a node removed from baseline - Fixes #8721.

This is an automated email from the ASF dual-hosted git repository.

sergeychugunov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new a7c83a5  IGNITE-14093 TTL cleanup worker logic fix: it should not start on a node removed from baseline - Fixes #8721.
a7c83a5 is described below

commit a7c83a5f190a6622151950a17d7e127f9b47bb6d
Author: Mirza Aliev <al...@gmail.com>
AuthorDate: Tue Feb 2 16:52:08 2021 +0300

    IGNITE-14093 TTL cleanup worker logic fix: it should not start on a node removed from baseline - Fixes #8721.
    
    Signed-off-by: Sergey Chugunov <se...@gmail.com>
---
 .../apache/ignite/internal/processors/cache/GridCacheProcessor.java   | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
index ca5a5a2..0fbeba6 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
@@ -5399,6 +5399,10 @@ public class GridCacheProcessor extends GridProcessorAdapter {
 
         /** {@inheritDoc} */
         @Override public void onBaselineChange() {
+            for (GridCacheAdapter<?, ?> cache : caches.values())
+                if (cache != null)
+                    cache.context().ttl().unregister();
+
             onKernalStopCaches(true);
 
             stopCaches(true);