[
https://issues.apache.org/jira/browse/ATLAS-5171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pinal Shah updated ATLAS-5171:
------------------------------
Fix Version/s: 3.0.0
2.5.0
> Regression: Reindexing is failing
> ---------------------------------
>
> Key: ATLAS-5171
> URL: https://issues.apache.org/jira/browse/ATLAS-5171
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: 3.0.0
> Reporter: Pinal Shah
> Assignee: Pinal Shah
> Priority: Major
> Fix For: 3.0.0, 2.5.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> *Issue:* While reindexing to solr vertex_index and edge_index, exceptions are
> piling in the logs, Although elements are reindexed
> *Reproduce Steps:* Add {color:#4c9aff}atlas.rebuild.index=true{color} to
> atlas-application.properties and restart Atlas
> *Exception:*
> {code:java}
> ERROR org.apache.atlas.repository.patches.ReIndexPatch:
> IllegalStateException: Exception
> java.lang.IllegalStateException: This management system instance has been
> closed
> at
> com.google.common.base.Preconditions.checkState(Preconditions.java:513)
> at
> org.janusgraph.graphdb.database.management.ManagementSystem.ensureOpen(ManagementSystem.java:228)
> at
> org.janusgraph.graphdb.database.management.ManagementSystem.commit(ManagementSystem.java:233)
> at
> org.apache.atlas.repository.graphdb.janus.AtlasJanusGraphManagement.commit(AtlasJanusGraphManagement.java:175)
> at
> org.apache.atlas.repository.graphdb.janus.AtlasJanusGraphManagement.close(AtlasJanusGraphManagement.java:156)
> at
> org.apache.atlas.repository.patches.ReIndexPatch$ReindexConsumer.attemptCommit(ReIndexPatch.java:183)
> at
> org.apache.atlas.repository.patches.ReIndexPatch$ReindexConsumer.commitDirty(ReIndexPatch.java:171)
> at org.apache.atlas.pc.WorkItemConsumer.run(WorkItemConsumer.java:56)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> at java.base/java.lang.Thread.run(Thread.java:840) {code}
> *RCA:*
> Once reindex is completed, graph management object is committed, and then
> while close() is invoked, it again tries to commit(), where it fails because
> it doesnt get management object.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)