Commit eccc3762 by Ashutosh Mestry

ATLAS-3948: Entity Creation: Index Consistency: Java Patch Handler: Provide Option to Disable

parent 62c682b3
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
*/ */
package org.apache.atlas.repository.patches; package org.apache.atlas.repository.patches;
import org.apache.atlas.AtlasConfiguration;
import org.apache.atlas.exception.AtlasBaseException; import org.apache.atlas.exception.AtlasBaseException;
import org.apache.atlas.repository.graphdb.AtlasGraph; import org.apache.atlas.repository.graphdb.AtlasGraph;
import org.apache.atlas.type.AtlasTypeRegistry; import org.apache.atlas.type.AtlasTypeRegistry;
...@@ -40,6 +41,11 @@ public class IndexConsistencyPatch extends AtlasPatchHandler { ...@@ -40,6 +41,11 @@ public class IndexConsistencyPatch extends AtlasPatchHandler {
@Override @Override
public void apply() throws AtlasBaseException { public void apply() throws AtlasBaseException {
if (AtlasConfiguration.STORAGE_CONSISTENCY_LOCK_ENABLED.getBoolean() == false) {
LOG.info("IndexConsistencyPatch: Not enabled: Skipped!");
return;
}
AtlasGraph graph = context.getGraph(); AtlasGraph graph = context.getGraph();
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment