This is an automated email from the ASF dual-hosted git repository.
alexpl 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 a31202e6fde IGNITE-28069 Enable EVT_CONSISTENCY_VIOLATION by default -
Fixes #12859.
a31202e6fde is described below
commit a31202e6fde5f766566a6a7f7eb7f8290825cfb7
Author: Aleksey Plekhanov <[email protected]>
AuthorDate: Fri Mar 6 17:27:41 2026 +0300
IGNITE-28069 Enable EVT_CONSISTENCY_VIOLATION by default - Fixes #12859.
Signed-off-by: Aleksey Plekhanov <[email protected]>
---
docs/_docs/key-value-api/read-repair.adoc | 2 +-
docs/_docs/tools/control-script.adoc | 9 ---------
.../org/apache/ignite/util/GridCommandHandlerAbstractTest.java | 3 ---
.../internal/managers/eventstorage/GridEventStorageManager.java | 2 ++
4 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/docs/_docs/key-value-api/read-repair.adoc
b/docs/_docs/key-value-api/read-repair.adoc
index 4fbb475029c..60f77d8b45b 100644
--- a/docs/_docs/key-value-api/read-repair.adoc
+++ b/docs/_docs/key-value-api/read-repair.adoc
@@ -66,7 +66,7 @@ When 4 copies (3 backups) are given, any value found two or
more times, when oth
|===
== Events
-link:https://ignite.apache.org/releases/{version}/javadoc/org/apache/ignite/events/EventType.html#EVT_CONSISTENCY_VIOLATION[Сonsistency
Violation Event] will be recorded for each violation in case it's configured
as recordable. You may listen to this event to get notified about inconsistency
issues.
+link:https://ignite.apache.org/releases/ignite2/{version}/javadoc/org/apache/ignite/events/EventType.html#EVT_CONSISTENCY_VIOLATION[Сonsistency
Violation Event] will be recorded for each violation. You may listen to this
event to get notified about inconsistency issues.
Please, refer to the link:events/listening-to-events[Working with Events]
section for the information on how to listen to events.
diff --git a/docs/_docs/tools/control-script.adoc
b/docs/_docs/tools/control-script.adoc
index bda22745541..ba5c5b0924c 100644
--- a/docs/_docs/tools/control-script.adoc
+++ b/docs/_docs/tools/control-script.adoc
@@ -699,15 +699,6 @@ The command may not work on some special/unique
configurations or even cause a c
Command execution MUST be checked on the test environment using the
data/configuration similar to the production before the execution on the real
production environment.
====
-[WARNING]
-====
-[discrete]
-=== Additional configuration required
-The command uses special
link:https://ignite.apache.org/releases/{version}/javadoc/org/apache/ignite/events/EventType.html#EVT_CONSISTENCY_VIOLATION[Consistency
Violation Event] to detect the consistency violations. This event must be
enabled before the command execution.
-
-Please, refer to the link:events/listening-to-events#enabling-events[Enabling
Events] section for details.
-====
-
`idle_verify` command provides the inconsistent cache group names and
partitions list as a result.
The `repair` command allows performing cache consistency check and repair
(when possible) using the link:key-value-api/read-repair[Read Repair] approach
for every inconsistent partition found by `idle_verify`.
diff --git
a/modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerAbstractTest.java
b/modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerAbstractTest.java
index 621c4264614..092fe789032 100644
---
a/modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerAbstractTest.java
+++
b/modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerAbstractTest.java
@@ -76,7 +76,6 @@ import static
org.apache.ignite.IgniteSystemProperties.IGNITE_ENABLE_EXPERIMENTA
import static
org.apache.ignite.configuration.DataStorageConfiguration.DFLT_CHECKPOINT_FREQ;
import static
org.apache.ignite.configuration.EncryptionConfiguration.DFLT_REENCRYPTION_BATCH_SIZE;
import static
org.apache.ignite.configuration.EncryptionConfiguration.DFLT_REENCRYPTION_RATE_MBPS;
-import static org.apache.ignite.events.EventType.EVT_CONSISTENCY_VIOLATION;
import static
org.apache.ignite.internal.commandline.ArgumentParser.CMD_AUTO_CONFIRMATION;
import static
org.apache.ignite.internal.encryption.AbstractEncryptionTest.KEYSTORE_PASSWORD;
import static
org.apache.ignite.internal.encryption.AbstractEncryptionTest.KEYSTORE_PATH;
@@ -281,8 +280,6 @@ public abstract class GridCommandHandlerAbstractTest
extends GridCommandHandlerF
cfg.setClientMode(igniteInstanceName.startsWith(CLIENT_NODE_NAME_PREFIX));
- cfg.setIncludeEventTypes(EVT_CONSISTENCY_VIOLATION); // Extend if
necessary.
-
if (encryptionEnabled) {
KeystoreEncryptionSpi encSpi = new KeystoreEncryptionSpi();
diff --git
a/modules/core/src/main/java/org/apache/ignite/internal/managers/eventstorage/GridEventStorageManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/managers/eventstorage/GridEventStorageManager.java
index 6783bb13995..fcfa3e5b37d 100644
---
a/modules/core/src/main/java/org/apache/ignite/internal/managers/eventstorage/GridEventStorageManager.java
+++
b/modules/core/src/main/java/org/apache/ignite/internal/managers/eventstorage/GridEventStorageManager.java
@@ -76,6 +76,7 @@ import static
org.apache.ignite.events.EventType.EVT_BASELINE_CHANGED;
import static org.apache.ignite.events.EventType.EVT_CLUSTER_ACTIVATED;
import static org.apache.ignite.events.EventType.EVT_CLUSTER_DEACTIVATED;
import static org.apache.ignite.events.EventType.EVT_CLUSTER_STATE_CHANGED;
+import static org.apache.ignite.events.EventType.EVT_CONSISTENCY_VIOLATION;
import static org.apache.ignite.events.EventType.EVT_JOB_MAPPED;
import static org.apache.ignite.events.EventType.EVT_NODE_FAILED;
import static org.apache.ignite.events.EventType.EVT_NODE_LEFT;
@@ -527,6 +528,7 @@ public class GridEventStorageManager extends
GridManagerAdapter<EventStorageSpi>
case EVT_CLUSTER_DEACTIVATED:
case EVT_BASELINE_CHANGED:
case EVT_CLUSTER_STATE_CHANGED:
+ case EVT_CONSISTENCY_VIOLATION:
return true;
default: