-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/72722/
-----------------------------------------------------------
Review request for atlas, Damian Warszawski, Madhan Neethiraj, Nikhil Bonte,
Nixon Rodrigues, and Sarath Subramanian.
Bugs: ATLAS-3907
https://issues.apache.org/jira/browse/ATLAS-3907
Repository: atlas
Description
-------
**Approach**
Please see JIRA for details.
Changes:
- New: *IndexConsistencyPatch*: New java patch handler.
- Modified: Added method:
*AtlasJanusGraphManagement.setConsistencyForAllIndexes* that enumerates all the
existing indexes and calls the *setConsistency* method.
Diffs
-----
graphdb/api/src/main/java/org/apache/atlas/repository/graphdb/AtlasGraphManagement.java
fca789027
graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusGraphManagement.java
6ef9cb76c
repository/src/main/java/org/apache/atlas/repository/patches/AtlasPatchManager.java
093edf978
repository/src/main/java/org/apache/atlas/repository/patches/IndexConsistencyPatch.java
PRE-CREATION
Diff: https://reviews.apache.org/r/72722/diff/1/
Testing
-------
**Unit tests**
None.
**Functional tests**
Used the script below to concurrently create same entity. See attached (t.json)
that contains entity payload.
*multiple-curl.sh*
```bash
#!/bin/bash
URL=<server>
echo ${URL}
for i in `seq 10`; do
curl -u admin:admin123 -X POST http://${URL}:31000/api/atlas/v2/entity/bulk
--header 'Content-Type: application/json' -d @./t.json &
done
```
**Pre-commit**
https://builds.apache.org/view/A/view/Atlas/job/PreCommit-ATLAS-Build-Test/2074/
File Attachments
----------------
entity payload
https://reviews.apache.org/media/uploaded/files/2020/07/30/62c25f8c-87cb-458d-a49e-ce41a96855de__t.json
Thanks,
Ashutosh Mestry