You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by rp...@apache.org on 2025/10/21 06:09:55 UTC
(ignite-3) branch main updated: IGNITE-26786 Avoid NPEs when stopping fixtures in ItTableRaftSnapshotsTest (#6819)
This is an automated email from the ASF dual-hosted git repository.
rpuch 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 138f3c7e191 IGNITE-26786 Avoid NPEs when stopping fixtures in ItTableRaftSnapshotsTest (#6819)
138f3c7e191 is described below
commit 138f3c7e191136b7332fdfcd91450487bac095f1
Author: Roman Puchkovskiy <ro...@gmail.com>
AuthorDate: Tue Oct 21 10:09:50 2025 +0400
IGNITE-26786 Avoid NPEs when stopping fixtures in ItTableRaftSnapshotsTest (#6819)
---
.../ignite/internal/raftsnapshot/ItTableRaftSnapshotsTest.java | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/modules/raft/src/integrationTest/java/org/apache/ignite/internal/raftsnapshot/ItTableRaftSnapshotsTest.java b/modules/raft/src/integrationTest/java/org/apache/ignite/internal/raftsnapshot/ItTableRaftSnapshotsTest.java
index b6702745ca2..d1e7042e9de 100644
--- a/modules/raft/src/integrationTest/java/org/apache/ignite/internal/raftsnapshot/ItTableRaftSnapshotsTest.java
+++ b/modules/raft/src/integrationTest/java/org/apache/ignite/internal/raftsnapshot/ItTableRaftSnapshotsTest.java
@@ -179,8 +179,14 @@ class ItTableRaftSnapshotsTest extends ClusterPerTestIntegrationTest {
@AfterEach
void stopLogInspectors() {
- replicatorLogInspector.stop();
- copierLogInspector.stop();
+ stopLogInspector(replicatorLogInspector);
+ stopLogInspector(copierLogInspector);
+ }
+
+ private static void stopLogInspector(@Nullable LogInspector logInspector) {
+ if (logInspector != null) {
+ logInspector.stop();
+ }
}
/**