You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "petrov-mg (via GitHub)" <gi...@apache.org> on 2023/09/13 14:31:19 UTC

[GitHub] [ignite] petrov-mg opened a new pull request, #10931: IGNITE-11970 Fixed cleanup of CQ entry buffers.

petrov-mg opened a new pull request, #10931:
URL: https://github.com/apache/ignite/pull/10931

   Thank you for submitting the pull request to the Apache Ignite.
   
   In order to streamline the review of the contribution 
   we ask you to ensure the following steps have been taken:
   
   ### The Contribution Checklist
   - [ ] There is a single JIRA ticket related to the pull request. 
   - [ ] The web-link to the pull request is attached to the JIRA ticket.
   - [ ] The JIRA ticket has the _Patch Available_ state.
   - [ ] The pull request body describes changes that have been made. 
   The description explains _WHAT_ and _WHY_ was made instead of _HOW_.
   - [ ] The pull request title is treated as the final commit message. 
   The following pattern must be used: `IGNITE-XXXX Change summary` where `XXXX` - number of JIRA issue.
   - [ ] A reviewer has been mentioned through the JIRA comments 
   (see [the Maintainers list](https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute#HowtoContribute-ReviewProcessandMaintainers)) 
   - [ ] The pull request has been checked by the Teamcity Bot and 
   the `green visa` attached to the JIRA ticket (see [TC.Bot: Check PR](https://mtcga.gridgain.com/prs.html))
   
   ### Notes
   - [How to Contribute](https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute)
   - [Coding abbreviation rules](https://cwiki.apache.org/confluence/display/IGNITE/Abbreviation+Rules)
   - [Coding Guidelines](https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines)
   - [Apache Ignite Teamcity Bot](https://cwiki.apache.org/confluence/display/IGNITE/Apache+Ignite+Teamcity+Bot)
   
   If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com _#ignite_ channel.
   


-- 
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-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] IGNITE-11970 Fixed cleanup of CQ entry buffers. [ignite]

Posted by "petrov-mg (via GitHub)" <gi...@apache.org>.
petrov-mg commented on code in PR #10931:
URL: https://github.com/apache/ignite/pull/10931#discussion_r1358364902


##########
modules/core/src/test/java/org/apache/ignite/internal/processors/continuous/ContinuousQueryBuffersCleanupTest.java:
##########
@@ -0,0 +1,238 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.internal.processors.continuous;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Deque;
+import java.util.Map;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicInteger;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Function;
+import javax.cache.expiry.CreatedExpiryPolicy;
+import javax.cache.expiry.Duration;
+import org.apache.ignite.Ignite;
+import org.apache.ignite.IgniteCache;
+import org.apache.ignite.Ignition;
+import org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction;
+import org.apache.ignite.cache.query.ContinuousQuery;
+import org.apache.ignite.cache.query.Query;
+import org.apache.ignite.cache.query.QueryCursor;
+import org.apache.ignite.client.IgniteClient;
+import org.apache.ignite.configuration.CacheConfiguration;
+import org.apache.ignite.configuration.ClientConfiguration;
+import org.apache.ignite.configuration.IgniteConfiguration;
+import org.apache.ignite.internal.IgniteEx;
+import org.apache.ignite.internal.TestRecordingCommunicationSpi;
+import org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicSingleUpdateRequest;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEntry;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEventBuffer;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryHandler;
+import org.apache.ignite.internal.util.GridAtomicLong;
+import org.apache.ignite.internal.util.typedef.G;
+import org.apache.ignite.internal.util.typedef.internal.U;
+import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
+import org.junit.Test;
+
+import static java.util.concurrent.TimeUnit.MILLISECONDS;
+import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
+import static org.apache.ignite.internal.TestRecordingCommunicationSpi.spi;
+import static org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryHandler.DFLT_CONTINUOUS_QUERY_BACKUP_ACK_THRESHOLD;
+import static org.apache.ignite.testframework.GridTestUtils.waitForCondition;
+
+/** */
+public class ContinuousQueryBuffersCleanupTest extends GridCommonAbstractTest {
+    /** */
+    private final AtomicInteger keyCntr = new AtomicInteger();
+
+    /** {@inheritDoc} */
+    @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
+        return super.getConfiguration(igniteInstanceName)
+            .setCommunicationSpi(new TestRecordingCommunicationSpi()
+                .setAckSendThreshold(1));
+    }
+
+    /** {@inheritDoc} */
+    @Override protected void afterTest() throws Exception {
+        stopAllGrids();
+    }
+
+    /** */
+    @Test
+    public void testBackupUpdateAndBackupContinuusQueryAcknowledgmentReordered() throws Exception {
+        startGrids(2);
+
+        IgniteCache<Object, Object> cache = grid(0).createCache(new CacheConfiguration<>()
+            .setAffinity(new RendezvousAffinityFunction().setPartitions(2))
+            .setName(DEFAULT_CACHE_NAME)
+            .setBackups(1));
+
+        CountDownLatch cqListenerNotifiedLatch = new CountDownLatch(1);
+
+        Query<?> qry = new ContinuousQuery<>()
+            .setLocalListener(events -> cqListenerNotifiedLatch.countDown())
+            .setPageSize(1);
+
+        cache.query(qry);
+
+        cache.put(keyForNode(grid(0)), 0);
+
+        // Here we are waiting for initialization of CQ entry buffers on backup node, otherwise backup node will ignore
+        // acknowledgements.
+        assertTrue(waitForCondition(() -> !continuosQueryEntryBuffers(grid(1)).isEmpty(), getTestTimeout()));
+
+        spi(grid(0)).blockMessages(GridDhtAtomicSingleUpdateRequest.class, grid(1).name());
+
+        int key = keyForNode(grid(0));
+
+        int part = grid(0).affinity(DEFAULT_CACHE_NAME).partition(key);
+
+        cache.put(keyForNode(grid(0)), 0);
+
+        spi(grid(0)).waitForBlocked();
+
+        assertTrue(cqListenerNotifiedLatch.await(getTestTimeout(), MILLISECONDS));
+
+        CacheContinuousQueryEventBuffer buff = continuosQueryEntryBuffers(grid(1)).get(part);
+
+        GridAtomicLong maxReceivedBackupAckUpdCntr = U.field(buff, "maxReceivedBackupAckUpdCntr");
+
+        assertTrue(waitForCondition(() -> maxReceivedBackupAckUpdCntr.get() == 2, getTestTimeout()));
+
+        spi(grid(0)).stopBlock();
+
+        assertTrue(waitForCondition(() -> G.allGrids().stream().allMatch(this::isContinuesQueryBufferEmtpy), getTestTimeout()));
+    }
+
+    /** */
+    @Test
+    public void testContinuousQueryBuffersCleanup() throws Exception {
+        startGrids(2);
+
+        IgniteEx cli = startClientGrid(3);
+
+        try (IgniteClient thinCli = Ignition.startClient(new ClientConfiguration().setAddresses("127.0.0.1:10800"))) {
+            grid(0).createCache(new CacheConfiguration<Integer, Integer>()
+                .setAffinity(new RendezvousAffinityFunction().setPartitions(2))
+                .setName(DEFAULT_CACHE_NAME)
+                .setWriteSynchronizationMode(FULL_SYNC)
+                .setBackups(1));
+
+            for (int primaryNodeIdx = 0; primaryNodeIdx < 2; primaryNodeIdx++) {
+                checkBuffersCleared(primaryNodeIdx, qry -> grid(0).cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> grid(1).cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> cli.cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> thinCli.cache(DEFAULT_CACHE_NAME).query(qry));
+            }
+        }
+    }
+
+    /** */
+    private void checkBuffersCleared(int primaryNodeIdx, Function<Query<?>, QueryCursor<?>> queryExecutor) throws Exception {
+        IgniteEx primary = grid(primaryNodeIdx);
+
+        int cacheOpRounds = Math.round(DFLT_CONTINUOUS_QUERY_BACKUP_ACK_THRESHOLD * 0.3f);
+
+        // We repeatedly perform 5 cache operations that raise CREATE, UPDATE, REMOVED, EXPIRIED events.
+        // The total number of events is selected in a such way as to check for a backup notification due to a
+        // buffer overflow, and then by timeout.
+        int expEventsCnt = cacheOpRounds * 5;
+
+        CountDownLatch cqListenerNotifiedLatch = new CountDownLatch(expEventsCnt);
+
+        Query<?> qry = new ContinuousQuery<>()
+            .setLocalListener(events -> cqListenerNotifiedLatch.countDown())
+            .setPageSize(1)
+            .setIncludeExpired(true);
+
+        try (QueryCursor<?> ignored = queryExecutor.apply(qry)) {
+            for (int i = 0; i < cacheOpRounds; i++) {
+                int testKey = keyForNode(primary);
+
+                primary.cache(DEFAULT_CACHE_NAME).put(testKey, 0);
+                primary.cache(DEFAULT_CACHE_NAME).put(testKey, 1);
+                primary.cache(DEFAULT_CACHE_NAME).remove(testKey);
+                primary.cache(DEFAULT_CACHE_NAME)
+                    .withExpiryPolicy(new CreatedExpiryPolicy(new Duration(TimeUnit.MILLISECONDS, 100)))
+                    .put(keyForNode(primary), 0);
+            }
+
+            assertTrue(cqListenerNotifiedLatch.await(getTestTimeout(), MILLISECONDS));
+
+            assertTrue(waitForCondition(() -> G.allGrids().stream().allMatch(this::isContinuesQueryBufferEmtpy), getTestTimeout()));
+        }
+    }
+
+    /** */
+    private boolean isContinuesQueryBufferEmtpy(Ignite ignite) {
+        GridContinuousProcessor contProc = ((IgniteEx)ignite).context().continuous();
+
+        Collection<CacheContinuousQueryHandler<?, ?>> cqHandlers = new ArrayList<>();
+
+        contProc.remoteRoutineInfos().forEach((routineId, rmtRoutineInfo) ->
+            cqHandlers.add((CacheContinuousQueryHandler<?, ?>)rmtRoutineInfo.handler()));
+
+        contProc.localRoutineInfos().forEach((routineId, locRoutineInfo) ->
+            cqHandlers.add((CacheContinuousQueryHandler<?, ?>)locRoutineInfo.handler()));
+
+        contProc.clientRoutineInfos().forEach((nodeId, rmtRoutineInfos) ->
+            rmtRoutineInfos.forEach((routineId, locRoutineInfo) ->
+                cqHandlers.add((CacheContinuousQueryHandler<?, ?>)locRoutineInfo.handler())));
+
+        for (CacheContinuousQueryHandler<?, ?> cqHnd : cqHandlers) {
+            ConcurrentMap<Integer, CacheContinuousQueryEventBuffer> entryBufs = U.field(cqHnd, "entryBufs");

Review Comment:
   Fixed.



##########
modules/core/src/test/java/org/apache/ignite/internal/processors/continuous/ContinuousQueryBuffersCleanupTest.java:
##########
@@ -0,0 +1,238 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.internal.processors.continuous;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Deque;
+import java.util.Map;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicInteger;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Function;
+import javax.cache.expiry.CreatedExpiryPolicy;
+import javax.cache.expiry.Duration;
+import org.apache.ignite.Ignite;
+import org.apache.ignite.IgniteCache;
+import org.apache.ignite.Ignition;
+import org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction;
+import org.apache.ignite.cache.query.ContinuousQuery;
+import org.apache.ignite.cache.query.Query;
+import org.apache.ignite.cache.query.QueryCursor;
+import org.apache.ignite.client.IgniteClient;
+import org.apache.ignite.configuration.CacheConfiguration;
+import org.apache.ignite.configuration.ClientConfiguration;
+import org.apache.ignite.configuration.IgniteConfiguration;
+import org.apache.ignite.internal.IgniteEx;
+import org.apache.ignite.internal.TestRecordingCommunicationSpi;
+import org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicSingleUpdateRequest;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEntry;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEventBuffer;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryHandler;
+import org.apache.ignite.internal.util.GridAtomicLong;
+import org.apache.ignite.internal.util.typedef.G;
+import org.apache.ignite.internal.util.typedef.internal.U;
+import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
+import org.junit.Test;
+
+import static java.util.concurrent.TimeUnit.MILLISECONDS;
+import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
+import static org.apache.ignite.internal.TestRecordingCommunicationSpi.spi;
+import static org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryHandler.DFLT_CONTINUOUS_QUERY_BACKUP_ACK_THRESHOLD;
+import static org.apache.ignite.testframework.GridTestUtils.waitForCondition;
+
+/** */
+public class ContinuousQueryBuffersCleanupTest extends GridCommonAbstractTest {
+    /** */
+    private final AtomicInteger keyCntr = new AtomicInteger();
+
+    /** {@inheritDoc} */
+    @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
+        return super.getConfiguration(igniteInstanceName)
+            .setCommunicationSpi(new TestRecordingCommunicationSpi()
+                .setAckSendThreshold(1));
+    }
+
+    /** {@inheritDoc} */
+    @Override protected void afterTest() throws Exception {
+        stopAllGrids();
+    }
+
+    /** */
+    @Test
+    public void testBackupUpdateAndBackupContinuusQueryAcknowledgmentReordered() throws Exception {
+        startGrids(2);
+
+        IgniteCache<Object, Object> cache = grid(0).createCache(new CacheConfiguration<>()
+            .setAffinity(new RendezvousAffinityFunction().setPartitions(2))
+            .setName(DEFAULT_CACHE_NAME)
+            .setBackups(1));
+
+        CountDownLatch cqListenerNotifiedLatch = new CountDownLatch(1);
+
+        Query<?> qry = new ContinuousQuery<>()
+            .setLocalListener(events -> cqListenerNotifiedLatch.countDown())
+            .setPageSize(1);
+
+        cache.query(qry);
+
+        cache.put(keyForNode(grid(0)), 0);
+
+        // Here we are waiting for initialization of CQ entry buffers on backup node, otherwise backup node will ignore
+        // acknowledgements.
+        assertTrue(waitForCondition(() -> !continuosQueryEntryBuffers(grid(1)).isEmpty(), getTestTimeout()));
+
+        spi(grid(0)).blockMessages(GridDhtAtomicSingleUpdateRequest.class, grid(1).name());
+
+        int key = keyForNode(grid(0));
+
+        int part = grid(0).affinity(DEFAULT_CACHE_NAME).partition(key);
+
+        cache.put(keyForNode(grid(0)), 0);
+
+        spi(grid(0)).waitForBlocked();
+
+        assertTrue(cqListenerNotifiedLatch.await(getTestTimeout(), MILLISECONDS));
+
+        CacheContinuousQueryEventBuffer buff = continuosQueryEntryBuffers(grid(1)).get(part);
+
+        GridAtomicLong maxReceivedBackupAckUpdCntr = U.field(buff, "maxReceivedBackupAckUpdCntr");
+
+        assertTrue(waitForCondition(() -> maxReceivedBackupAckUpdCntr.get() == 2, getTestTimeout()));
+
+        spi(grid(0)).stopBlock();
+
+        assertTrue(waitForCondition(() -> G.allGrids().stream().allMatch(this::isContinuesQueryBufferEmtpy), getTestTimeout()));
+    }
+
+    /** */
+    @Test
+    public void testContinuousQueryBuffersCleanup() throws Exception {
+        startGrids(2);
+
+        IgniteEx cli = startClientGrid(3);
+
+        try (IgniteClient thinCli = Ignition.startClient(new ClientConfiguration().setAddresses("127.0.0.1:10800"))) {
+            grid(0).createCache(new CacheConfiguration<Integer, Integer>()
+                .setAffinity(new RendezvousAffinityFunction().setPartitions(2))
+                .setName(DEFAULT_CACHE_NAME)
+                .setWriteSynchronizationMode(FULL_SYNC)
+                .setBackups(1));
+
+            for (int primaryNodeIdx = 0; primaryNodeIdx < 2; primaryNodeIdx++) {
+                checkBuffersCleared(primaryNodeIdx, qry -> grid(0).cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> grid(1).cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> cli.cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> thinCli.cache(DEFAULT_CACHE_NAME).query(qry));
+            }
+        }
+    }
+
+    /** */
+    private void checkBuffersCleared(int primaryNodeIdx, Function<Query<?>, QueryCursor<?>> queryExecutor) throws Exception {
+        IgniteEx primary = grid(primaryNodeIdx);
+
+        int cacheOpRounds = Math.round(DFLT_CONTINUOUS_QUERY_BACKUP_ACK_THRESHOLD * 0.3f);
+
+        // We repeatedly perform 5 cache operations that raise CREATE, UPDATE, REMOVED, EXPIRIED events.
+        // The total number of events is selected in a such way as to check for a backup notification due to a
+        // buffer overflow, and then by timeout.
+        int expEventsCnt = cacheOpRounds * 5;
+
+        CountDownLatch cqListenerNotifiedLatch = new CountDownLatch(expEventsCnt);
+
+        Query<?> qry = new ContinuousQuery<>()
+            .setLocalListener(events -> cqListenerNotifiedLatch.countDown())
+            .setPageSize(1)
+            .setIncludeExpired(true);
+
+        try (QueryCursor<?> ignored = queryExecutor.apply(qry)) {
+            for (int i = 0; i < cacheOpRounds; i++) {
+                int testKey = keyForNode(primary);
+
+                primary.cache(DEFAULT_CACHE_NAME).put(testKey, 0);
+                primary.cache(DEFAULT_CACHE_NAME).put(testKey, 1);
+                primary.cache(DEFAULT_CACHE_NAME).remove(testKey);
+                primary.cache(DEFAULT_CACHE_NAME)
+                    .withExpiryPolicy(new CreatedExpiryPolicy(new Duration(TimeUnit.MILLISECONDS, 100)))
+                    .put(keyForNode(primary), 0);
+            }
+
+            assertTrue(cqListenerNotifiedLatch.await(getTestTimeout(), MILLISECONDS));
+
+            assertTrue(waitForCondition(() -> G.allGrids().stream().allMatch(this::isContinuesQueryBufferEmtpy), getTestTimeout()));
+        }
+    }
+
+    /** */
+    private boolean isContinuesQueryBufferEmtpy(Ignite ignite) {

Review Comment:
   Fixed.



-- 
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-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ignite] sonarcloud[bot] commented on pull request #10931: IGNITE-11970 Fixed cleanup of CQ entry buffers.

Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #10931:
URL: https://github.com/apache/ignite/pull/10931#issuecomment-1717787958

   Kudos, SonarCloud Quality Gate passed!&nbsp; &nbsp; [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png 'Quality Gate passed')](https://sonarcloud.io/dashboard?id=apache_ignite&pullRequest=10931)
   
   [![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png 'Bug')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=BUG) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=BUG)  
   [![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png 'Vulnerability')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=VULNERABILITY) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=VULNERABILITY)  
   [![Security Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png 'Security Hotspot')](https://sonarcloud.io/project/security_hotspots?id=apache_ignite&pullRequest=10931&resolved=false&types=SECURITY_HOTSPOT) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/security_hotspots?id=apache_ignite&pullRequest=10931&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_ignite&pullRequest=10931&resolved=false&types=SECURITY_HOTSPOT)  
   [![Code Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png 'Code Smell')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=CODE_SMELL) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=CODE_SMELL)
   
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/0-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_ignite&pullRequest=10931&metric=new_coverage&view=list) [0.0% Coverage](https://sonarcloud.io/component_measures?id=apache_ignite&pullRequest=10931&metric=new_coverage&view=list)  
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/3-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_ignite&pullRequest=10931&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_ignite&pullRequest=10931&metric=new_duplicated_lines_density&view=list)
   
   ![warning](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/message_warning-16px.png 'warning') The version of Java (11.0.20.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
   Read more [here](https://docs.sonarcloud.io/appendices/scanner-environment/)
   
   
   


-- 
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-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] IGNITE-11970 Fixed cleanup of CQ entry buffers. [ignite]

Posted by "alex-plekhanov (via GitHub)" <gi...@apache.org>.
alex-plekhanov commented on code in PR #10931:
URL: https://github.com/apache/ignite/pull/10931#discussion_r1357846308


##########
modules/core/src/test/java/org/apache/ignite/internal/processors/continuous/ContinuousQueryBuffersCleanupTest.java:
##########
@@ -0,0 +1,238 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.internal.processors.continuous;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Deque;
+import java.util.Map;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicInteger;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Function;
+import javax.cache.expiry.CreatedExpiryPolicy;
+import javax.cache.expiry.Duration;
+import org.apache.ignite.Ignite;
+import org.apache.ignite.IgniteCache;
+import org.apache.ignite.Ignition;
+import org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction;
+import org.apache.ignite.cache.query.ContinuousQuery;
+import org.apache.ignite.cache.query.Query;
+import org.apache.ignite.cache.query.QueryCursor;
+import org.apache.ignite.client.IgniteClient;
+import org.apache.ignite.configuration.CacheConfiguration;
+import org.apache.ignite.configuration.ClientConfiguration;
+import org.apache.ignite.configuration.IgniteConfiguration;
+import org.apache.ignite.internal.IgniteEx;
+import org.apache.ignite.internal.TestRecordingCommunicationSpi;
+import org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicSingleUpdateRequest;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEntry;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEventBuffer;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryHandler;
+import org.apache.ignite.internal.util.GridAtomicLong;
+import org.apache.ignite.internal.util.typedef.G;
+import org.apache.ignite.internal.util.typedef.internal.U;
+import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
+import org.junit.Test;
+
+import static java.util.concurrent.TimeUnit.MILLISECONDS;
+import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
+import static org.apache.ignite.internal.TestRecordingCommunicationSpi.spi;
+import static org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryHandler.DFLT_CONTINUOUS_QUERY_BACKUP_ACK_THRESHOLD;
+import static org.apache.ignite.testframework.GridTestUtils.waitForCondition;
+
+/** */
+public class ContinuousQueryBuffersCleanupTest extends GridCommonAbstractTest {
+    /** */
+    private final AtomicInteger keyCntr = new AtomicInteger();
+
+    /** {@inheritDoc} */
+    @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
+        return super.getConfiguration(igniteInstanceName)
+            .setCommunicationSpi(new TestRecordingCommunicationSpi()
+                .setAckSendThreshold(1));
+    }
+
+    /** {@inheritDoc} */
+    @Override protected void afterTest() throws Exception {
+        stopAllGrids();
+    }
+
+    /** */
+    @Test
+    public void testBackupUpdateAndBackupContinuusQueryAcknowledgmentReordered() throws Exception {
+        startGrids(2);
+
+        IgniteCache<Object, Object> cache = grid(0).createCache(new CacheConfiguration<>()
+            .setAffinity(new RendezvousAffinityFunction().setPartitions(2))
+            .setName(DEFAULT_CACHE_NAME)
+            .setBackups(1));
+
+        CountDownLatch cqListenerNotifiedLatch = new CountDownLatch(1);
+
+        Query<?> qry = new ContinuousQuery<>()
+            .setLocalListener(events -> cqListenerNotifiedLatch.countDown())
+            .setPageSize(1);
+
+        cache.query(qry);
+
+        cache.put(keyForNode(grid(0)), 0);
+
+        // Here we are waiting for initialization of CQ entry buffers on backup node, otherwise backup node will ignore
+        // acknowledgements.
+        assertTrue(waitForCondition(() -> !continuosQueryEntryBuffers(grid(1)).isEmpty(), getTestTimeout()));
+
+        spi(grid(0)).blockMessages(GridDhtAtomicSingleUpdateRequest.class, grid(1).name());
+
+        int key = keyForNode(grid(0));
+
+        int part = grid(0).affinity(DEFAULT_CACHE_NAME).partition(key);
+
+        cache.put(keyForNode(grid(0)), 0);
+
+        spi(grid(0)).waitForBlocked();
+
+        assertTrue(cqListenerNotifiedLatch.await(getTestTimeout(), MILLISECONDS));
+
+        CacheContinuousQueryEventBuffer buff = continuosQueryEntryBuffers(grid(1)).get(part);
+
+        GridAtomicLong maxReceivedBackupAckUpdCntr = U.field(buff, "maxReceivedBackupAckUpdCntr");
+
+        assertTrue(waitForCondition(() -> maxReceivedBackupAckUpdCntr.get() == 2, getTestTimeout()));
+
+        spi(grid(0)).stopBlock();
+
+        assertTrue(waitForCondition(() -> G.allGrids().stream().allMatch(this::isContinuesQueryBufferEmtpy), getTestTimeout()));
+    }
+
+    /** */
+    @Test
+    public void testContinuousQueryBuffersCleanup() throws Exception {
+        startGrids(2);
+
+        IgniteEx cli = startClientGrid(3);
+
+        try (IgniteClient thinCli = Ignition.startClient(new ClientConfiguration().setAddresses("127.0.0.1:10800"))) {
+            grid(0).createCache(new CacheConfiguration<Integer, Integer>()
+                .setAffinity(new RendezvousAffinityFunction().setPartitions(2))
+                .setName(DEFAULT_CACHE_NAME)
+                .setWriteSynchronizationMode(FULL_SYNC)
+                .setBackups(1));
+
+            for (int primaryNodeIdx = 0; primaryNodeIdx < 2; primaryNodeIdx++) {
+                checkBuffersCleared(primaryNodeIdx, qry -> grid(0).cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> grid(1).cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> cli.cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> thinCli.cache(DEFAULT_CACHE_NAME).query(qry));
+            }
+        }
+    }
+
+    /** */
+    private void checkBuffersCleared(int primaryNodeIdx, Function<Query<?>, QueryCursor<?>> queryExecutor) throws Exception {
+        IgniteEx primary = grid(primaryNodeIdx);
+
+        int cacheOpRounds = Math.round(DFLT_CONTINUOUS_QUERY_BACKUP_ACK_THRESHOLD * 0.3f);
+
+        // We repeatedly perform 5 cache operations that raise CREATE, UPDATE, REMOVED, EXPIRIED events.
+        // The total number of events is selected in a such way as to check for a backup notification due to a
+        // buffer overflow, and then by timeout.
+        int expEventsCnt = cacheOpRounds * 5;
+
+        CountDownLatch cqListenerNotifiedLatch = new CountDownLatch(expEventsCnt);
+
+        Query<?> qry = new ContinuousQuery<>()
+            .setLocalListener(events -> cqListenerNotifiedLatch.countDown())
+            .setPageSize(1)
+            .setIncludeExpired(true);
+
+        try (QueryCursor<?> ignored = queryExecutor.apply(qry)) {
+            for (int i = 0; i < cacheOpRounds; i++) {
+                int testKey = keyForNode(primary);
+
+                primary.cache(DEFAULT_CACHE_NAME).put(testKey, 0);
+                primary.cache(DEFAULT_CACHE_NAME).put(testKey, 1);
+                primary.cache(DEFAULT_CACHE_NAME).remove(testKey);
+                primary.cache(DEFAULT_CACHE_NAME)
+                    .withExpiryPolicy(new CreatedExpiryPolicy(new Duration(TimeUnit.MILLISECONDS, 100)))
+                    .put(keyForNode(primary), 0);
+            }
+
+            assertTrue(cqListenerNotifiedLatch.await(getTestTimeout(), MILLISECONDS));
+
+            assertTrue(waitForCondition(() -> G.allGrids().stream().allMatch(this::isContinuesQueryBufferEmtpy), getTestTimeout()));
+        }
+    }
+
+    /** */
+    private boolean isContinuesQueryBufferEmtpy(Ignite ignite) {

Review Comment:
   Type: Emtpy -> Empty



##########
modules/core/src/test/java/org/apache/ignite/internal/processors/continuous/ContinuousQueryBuffersCleanupTest.java:
##########
@@ -0,0 +1,238 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.internal.processors.continuous;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Deque;
+import java.util.Map;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicInteger;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Function;
+import javax.cache.expiry.CreatedExpiryPolicy;
+import javax.cache.expiry.Duration;
+import org.apache.ignite.Ignite;
+import org.apache.ignite.IgniteCache;
+import org.apache.ignite.Ignition;
+import org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction;
+import org.apache.ignite.cache.query.ContinuousQuery;
+import org.apache.ignite.cache.query.Query;
+import org.apache.ignite.cache.query.QueryCursor;
+import org.apache.ignite.client.IgniteClient;
+import org.apache.ignite.configuration.CacheConfiguration;
+import org.apache.ignite.configuration.ClientConfiguration;
+import org.apache.ignite.configuration.IgniteConfiguration;
+import org.apache.ignite.internal.IgniteEx;
+import org.apache.ignite.internal.TestRecordingCommunicationSpi;
+import org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicSingleUpdateRequest;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEntry;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEventBuffer;
+import org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryHandler;
+import org.apache.ignite.internal.util.GridAtomicLong;
+import org.apache.ignite.internal.util.typedef.G;
+import org.apache.ignite.internal.util.typedef.internal.U;
+import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
+import org.junit.Test;
+
+import static java.util.concurrent.TimeUnit.MILLISECONDS;
+import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
+import static org.apache.ignite.internal.TestRecordingCommunicationSpi.spi;
+import static org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryHandler.DFLT_CONTINUOUS_QUERY_BACKUP_ACK_THRESHOLD;
+import static org.apache.ignite.testframework.GridTestUtils.waitForCondition;
+
+/** */
+public class ContinuousQueryBuffersCleanupTest extends GridCommonAbstractTest {
+    /** */
+    private final AtomicInteger keyCntr = new AtomicInteger();
+
+    /** {@inheritDoc} */
+    @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
+        return super.getConfiguration(igniteInstanceName)
+            .setCommunicationSpi(new TestRecordingCommunicationSpi()
+                .setAckSendThreshold(1));
+    }
+
+    /** {@inheritDoc} */
+    @Override protected void afterTest() throws Exception {
+        stopAllGrids();
+    }
+
+    /** */
+    @Test
+    public void testBackupUpdateAndBackupContinuusQueryAcknowledgmentReordered() throws Exception {
+        startGrids(2);
+
+        IgniteCache<Object, Object> cache = grid(0).createCache(new CacheConfiguration<>()
+            .setAffinity(new RendezvousAffinityFunction().setPartitions(2))
+            .setName(DEFAULT_CACHE_NAME)
+            .setBackups(1));
+
+        CountDownLatch cqListenerNotifiedLatch = new CountDownLatch(1);
+
+        Query<?> qry = new ContinuousQuery<>()
+            .setLocalListener(events -> cqListenerNotifiedLatch.countDown())
+            .setPageSize(1);
+
+        cache.query(qry);
+
+        cache.put(keyForNode(grid(0)), 0);
+
+        // Here we are waiting for initialization of CQ entry buffers on backup node, otherwise backup node will ignore
+        // acknowledgements.
+        assertTrue(waitForCondition(() -> !continuosQueryEntryBuffers(grid(1)).isEmpty(), getTestTimeout()));
+
+        spi(grid(0)).blockMessages(GridDhtAtomicSingleUpdateRequest.class, grid(1).name());
+
+        int key = keyForNode(grid(0));
+
+        int part = grid(0).affinity(DEFAULT_CACHE_NAME).partition(key);
+
+        cache.put(keyForNode(grid(0)), 0);
+
+        spi(grid(0)).waitForBlocked();
+
+        assertTrue(cqListenerNotifiedLatch.await(getTestTimeout(), MILLISECONDS));
+
+        CacheContinuousQueryEventBuffer buff = continuosQueryEntryBuffers(grid(1)).get(part);
+
+        GridAtomicLong maxReceivedBackupAckUpdCntr = U.field(buff, "maxReceivedBackupAckUpdCntr");
+
+        assertTrue(waitForCondition(() -> maxReceivedBackupAckUpdCntr.get() == 2, getTestTimeout()));
+
+        spi(grid(0)).stopBlock();
+
+        assertTrue(waitForCondition(() -> G.allGrids().stream().allMatch(this::isContinuesQueryBufferEmtpy), getTestTimeout()));
+    }
+
+    /** */
+    @Test
+    public void testContinuousQueryBuffersCleanup() throws Exception {
+        startGrids(2);
+
+        IgniteEx cli = startClientGrid(3);
+
+        try (IgniteClient thinCli = Ignition.startClient(new ClientConfiguration().setAddresses("127.0.0.1:10800"))) {
+            grid(0).createCache(new CacheConfiguration<Integer, Integer>()
+                .setAffinity(new RendezvousAffinityFunction().setPartitions(2))
+                .setName(DEFAULT_CACHE_NAME)
+                .setWriteSynchronizationMode(FULL_SYNC)
+                .setBackups(1));
+
+            for (int primaryNodeIdx = 0; primaryNodeIdx < 2; primaryNodeIdx++) {
+                checkBuffersCleared(primaryNodeIdx, qry -> grid(0).cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> grid(1).cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> cli.cache(DEFAULT_CACHE_NAME).query(qry));
+                checkBuffersCleared(primaryNodeIdx, qry -> thinCli.cache(DEFAULT_CACHE_NAME).query(qry));
+            }
+        }
+    }
+
+    /** */
+    private void checkBuffersCleared(int primaryNodeIdx, Function<Query<?>, QueryCursor<?>> queryExecutor) throws Exception {
+        IgniteEx primary = grid(primaryNodeIdx);
+
+        int cacheOpRounds = Math.round(DFLT_CONTINUOUS_QUERY_BACKUP_ACK_THRESHOLD * 0.3f);
+
+        // We repeatedly perform 5 cache operations that raise CREATE, UPDATE, REMOVED, EXPIRIED events.
+        // The total number of events is selected in a such way as to check for a backup notification due to a
+        // buffer overflow, and then by timeout.
+        int expEventsCnt = cacheOpRounds * 5;
+
+        CountDownLatch cqListenerNotifiedLatch = new CountDownLatch(expEventsCnt);
+
+        Query<?> qry = new ContinuousQuery<>()
+            .setLocalListener(events -> cqListenerNotifiedLatch.countDown())
+            .setPageSize(1)
+            .setIncludeExpired(true);
+
+        try (QueryCursor<?> ignored = queryExecutor.apply(qry)) {
+            for (int i = 0; i < cacheOpRounds; i++) {
+                int testKey = keyForNode(primary);
+
+                primary.cache(DEFAULT_CACHE_NAME).put(testKey, 0);
+                primary.cache(DEFAULT_CACHE_NAME).put(testKey, 1);
+                primary.cache(DEFAULT_CACHE_NAME).remove(testKey);
+                primary.cache(DEFAULT_CACHE_NAME)
+                    .withExpiryPolicy(new CreatedExpiryPolicy(new Duration(TimeUnit.MILLISECONDS, 100)))
+                    .put(keyForNode(primary), 0);
+            }
+
+            assertTrue(cqListenerNotifiedLatch.await(getTestTimeout(), MILLISECONDS));
+
+            assertTrue(waitForCondition(() -> G.allGrids().stream().allMatch(this::isContinuesQueryBufferEmtpy), getTestTimeout()));
+        }
+    }
+
+    /** */
+    private boolean isContinuesQueryBufferEmtpy(Ignite ignite) {
+        GridContinuousProcessor contProc = ((IgniteEx)ignite).context().continuous();
+
+        Collection<CacheContinuousQueryHandler<?, ?>> cqHandlers = new ArrayList<>();
+
+        contProc.remoteRoutineInfos().forEach((routineId, rmtRoutineInfo) ->
+            cqHandlers.add((CacheContinuousQueryHandler<?, ?>)rmtRoutineInfo.handler()));
+
+        contProc.localRoutineInfos().forEach((routineId, locRoutineInfo) ->
+            cqHandlers.add((CacheContinuousQueryHandler<?, ?>)locRoutineInfo.handler()));
+
+        contProc.clientRoutineInfos().forEach((nodeId, rmtRoutineInfos) ->
+            rmtRoutineInfos.forEach((routineId, locRoutineInfo) ->
+                cqHandlers.add((CacheContinuousQueryHandler<?, ?>)locRoutineInfo.handler())));
+
+        for (CacheContinuousQueryHandler<?, ?> cqHnd : cqHandlers) {
+            ConcurrentMap<Integer, CacheContinuousQueryEventBuffer> entryBufs = U.field(cqHnd, "entryBufs");

Review Comment:
   I don't like that a lot of reflection used by this test. In the same time you rename some variable and use it name in reflection, it's fragile logic. I know that there are two different packages for continuous queries and you need to access internal class fields in both packages and can't use package private methods. But, perhaps, we can introduce some class like `ContinuousQueriesTestUtils` in the package `org.apache.ignite.internal.processors.cache.query.continuous` end expose some methods to use in tests. WDYT?



-- 
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-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] IGNITE-11970 Fixed cleanup of CQ entry buffers. [ignite]

Posted by "petrov-mg (via GitHub)" <gi...@apache.org>.
petrov-mg merged PR #10931:
URL: https://github.com/apache/ignite/pull/10931


-- 
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-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ignite] sonarcloud[bot] commented on pull request #10931: IGNITE-11970 Fixed cleanup of CQ entry buffers.

Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #10931:
URL: https://github.com/apache/ignite/pull/10931#issuecomment-1717765560

   Kudos, SonarCloud Quality Gate passed!&nbsp; &nbsp; [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png 'Quality Gate passed')](https://sonarcloud.io/dashboard?id=apache_ignite&pullRequest=10931)
   
   [![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png 'Bug')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=BUG) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=BUG)  
   [![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png 'Vulnerability')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=VULNERABILITY) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=VULNERABILITY)  
   [![Security Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png 'Security Hotspot')](https://sonarcloud.io/project/security_hotspots?id=apache_ignite&pullRequest=10931&resolved=false&types=SECURITY_HOTSPOT) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/security_hotspots?id=apache_ignite&pullRequest=10931&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_ignite&pullRequest=10931&resolved=false&types=SECURITY_HOTSPOT)  
   [![Code Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png 'Code Smell')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=CODE_SMELL) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=apache_ignite&pullRequest=10931&resolved=false&types=CODE_SMELL)
   
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/0-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_ignite&pullRequest=10931&metric=new_coverage&view=list) [0.0% Coverage](https://sonarcloud.io/component_measures?id=apache_ignite&pullRequest=10931&metric=new_coverage&view=list)  
   [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/3-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_ignite&pullRequest=10931&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_ignite&pullRequest=10931&metric=new_duplicated_lines_density&view=list)
   
   ![warning](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/message_warning-16px.png 'warning') The version of Java (11.0.20.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
   Read more [here](https://docs.sonarcloud.io/appendices/scanner-environment/)
   
   
   


-- 
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-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org