diff --git a/docs/_docs/key-value-api/read-repair.adoc b/docs/_docs/key-value-api/read-repair.adoc index 4fbb475029cb1..60f77d8b45b3f 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 bda2274554161..ba5c5b0924c86 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 621c42646145a..092fe78903246 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.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 @@ protected boolean idleVerifyRes(Path p) { 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 6783bb139955f..fcfa3e5b37d36 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_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 @@ private boolean isInternalEvent(int type) { case EVT_CLUSTER_DEACTIVATED: case EVT_BASELINE_CHANGED: case EVT_CLUSTER_STATE_CHANGED: + case EVT_CONSISTENCY_VIOLATION: return true; default: