You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by Pinal Shah <pi...@freestoneinfotech.com> on 2023/01/23 02:07:10 UTC
Re: Review Request 74283: ATLAS-4727 : admin/audits , admin/purge APIs fail with '[__AtlasAuditEntry.startTime] is not indexed in the targeted index [vertex_index]'
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74283/
-----------------------------------------------------------
(Updated Jan. 23, 2023, 2:07 a.m.)
Review request for atlas, Jayendra Parab, Mandar Ambawane, and Sidharth Mishra.
Bugs: ATLAS-4727
https://issues.apache.org/jira/browse/ATLAS-4727
Repository: atlas
Description
-------
**Issue:**
admin/audits,admin/purge calls throw 500 internal server error.
**Error:**
java.lang.IllegalArgumentException: The used key [__AtlasAuditEntry.startTime] is not indexed in the targeted index [vertex_index]
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:435)
at org.janusgraph.graphdb.database.IndexSerializer.getOrders(IndexSerializer.java:711)
at org.janusgraph.graphdb.database.IndexSerializer.executeQuery(IndexSerializer.java:726)
**Cause:**
The attributes of AtlasAuditEntry type where not getting indexed in the Solr, because the entity of AtlasAuditEntry gets created before the attributes gets indexed.
Diffs
-----
repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java 8447ae2b4
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasTypeDefGraphStoreV2.java 5da6fdefa
repository/src/test/java/org/apache/atlas/TestModules.java a0a635464
Diff: https://reviews.apache.org/r/74283/diff/3/
Testing
-------
Tested manually
Precommit : https://ci-builds.apache.org/job/Atlas/job/PreCommit-ATLAS-Build-Test/1313/
Thanks,
Pinal Shah