[
https://issues.apache.org/jira/browse/IGNITE-14044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17330452#comment-17330452
]
Ignite TC Bot commented on IGNITE-14044:
----------------------------------------
{panel:title=Branch: [pull/8849/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/8849/head] Base: [master] : New Tests
(11)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}PDS 1{color} [[tests
1|https://ci.ignite.apache.org/viewLog.html?buildId=5979103]]
* {color:#013220}IgnitePdsTestSuite:
IgnitePdsDestroyCacheTest.testDestroyCacheWithNodeFilter - PASSED{color}
{color:#00008b}Thin client: Python{color} [[tests
10|https://ci.ignite.apache.org/viewLog.html?buildId=5979131]]
*
{color:#013220}tests.common.test_expiry_policy.test_create_cache_with_expiry_policy_async(expiry_policy3)
- PASSED{color}
*
{color:#013220}tests.common.test_expiry_policy.test_create_cache_with_expiry_policy_async(expiry_policy1)
- PASSED{color}
*
{color:#013220}tests.common.test_expiry_policy.test_create_cache_with_expiry_policy_async(expiry_policy2)
- PASSED{color}
* {color:#013220}tests.common.test_expiry_policy.test_expiry_policy_async -
PASSED{color}
*
{color:#013220}tests.common.test_expiry_policy.test_create_cache_with_expiry_policy(None)
- PASSED{color}
* {color:#013220}tests.common.test_expiry_policy.test_expiry_policy -
PASSED{color}
*
{color:#013220}tests.common.test_expiry_policy.test_create_cache_with_expiry_policy(expiry_policy3)
- PASSED{color}
*
{color:#013220}tests.common.test_expiry_policy.test_create_cache_with_expiry_policy_async(None)
- PASSED{color}
*
{color:#013220}tests.common.test_expiry_policy.test_create_cache_with_expiry_policy(expiry_policy1)
- PASSED{color}
*
{color:#013220}tests.common.test_expiry_policy.test_create_cache_with_expiry_policy(expiry_policy2)
- PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci.ignite.apache.org/viewLog.html?buildId=5979134&buildTypeId=IgniteTests24Java8_RunAll]
> Cache with node filter is not destroyed properly on the filtered node.
> ----------------------------------------------------------------------
>
> Key: IGNITE-14044
> URL: https://issues.apache.org/jira/browse/IGNITE-14044
> Project: Ignite
> Issue Type: Bug
> Reporter: Pavel Pereslegin
> Assignee: Pavel Pereslegin
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Steps to reproduce the problem:
> # Start 2 nodes
> # Create a cache with node filter (filter second node)
> # Destroy cache
> # Restart nodes
> Expected: cache was destroyed on both nodes.
> Actual: cache was destroyed only on one node, the second node cannot join
> the cluster with the following error:
> {noformat}
> Caused by: class org.apache.ignite.spi.IgniteSpiException: Joining node has
> caches with data which are not presented on cluster, it could mean that they
> were already destroyed, to add the node to cluster - remove directories with
> the caches[cache1]
> at
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.checkFailedError(TcpDiscoverySpi.java:2052)
> at
> org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:1197)
> at
> org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:472)
> at
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart(TcpDiscoverySpi.java:2154)
> at
> org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:278)
> ... 23 more
> {noformat}
> Reproducer
> {code:java}
> public class IgnitePdsDestroyCacheWithNodeFilterTest extends
> GridCommonAbstractTest {
> @Override protected IgniteConfiguration getConfiguration(String
> igniteInstanceName) throws Exception {
> return super.getConfiguration(igniteInstanceName)
> .setConsistentId(igniteInstanceName)
> .setDataStorageConfiguration(new DataStorageConfiguration()
> .setDefaultDataRegionConfiguration(new DataRegionConfiguration()
> .setPersistenceEnabled(true)));
> }
> @Test
> public void testDestroyCacheWithNodeFilter() throws Exception {
> cleanPersistenceDir();
> Ignite ignite = startGrids(2);
> ignite.cluster().state(ClusterState.ACTIVE);
> UUID nodeId0 = ignite.cluster().localNode().id();
> CacheConfiguration<Object, Object> cfg1 = new
> CacheConfiguration<>("cache1")
> .setCacheMode(CacheMode.REPLICATED)
> .setNodeFilter(n -> nodeId0.equals(n.id()));
> IgniteCache<?, ?> cache1 = ignite.createCache(cfg1);
> cache1.destroy();
> forceCheckpoint();
> awaitPartitionMapExchange();
> stopAllGrids();
> ignite = startGrids(2); // failing here
> ignite.cluster().state(ClusterState.ACTIVE);
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)