----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68678/#review208612 -----------------------------------------------------------
Ship it! Ship It! - Madhan Neethiraj On Sept. 13, 2018, 4:52 a.m., Ashutosh Mestry wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/68678/ > ----------------------------------------------------------- > > (Updated Sept. 13, 2018, 4:52 a.m.) > > > Review request for atlas, Apoorv Naik, Madhan Neethiraj, Nixon Rodrigues, and > Sarath Subramanian. > > > Bugs: ATLAS-2864 > https://issues.apache.org/jira/browse/ATLAS-2864 > > > Repository: atlas > > > Description > ------- > > **Approach** > - New class _IncrementalExportEntityProvider_ encapsulates queries specific > to the requested database. > - Modified the deep traversal flow. > > > **CURL** > > Incremental with _changeMarker_ set to 0: > ``` > { > "itemsToExport": [ > { "typeName": "hive_db", "uniqueAttributes": { "qualifiedName": > "largedb@cl1" }} > ], > "options": { > "fetchType": "incremental", > "skipLineage": "true", > "replicatedTo": "clx", > "changeMarker": 0 > } > } > ``` > > Incremental with _changeMarker_ set to a value: > ``` > { > "itemsToExport": [ > { "typeName": "hive_db", "uniqueAttributes": { "qualifiedName": > "largedb@cl1" }} > ], > "options": { > "fetchType": "incremental", > "skipLineage": "true", > "replicatedTo": "clx", > "changeMarker": 1536048035652 > } > } > ``` > > > Diffs > ----- > > intg/src/main/java/org/apache/atlas/model/impexp/AtlasExportRequest.java > 106a4a02a > > repository/src/main/java/org/apache/atlas/repository/impexp/ExportService.java > 612549d64 > > repository/src/main/java/org/apache/atlas/repository/impexp/IncrementalExportEntityProvider.java > PRE-CREATION > repository/src/main/java/org/apache/atlas/repository/util/UniqueList.java > 9148ce09a > > repository/src/test/java/org/apache/atlas/repository/impexp/IncrementalExportEntityProviderTest.java > PRE-CREATION > > repository/src/test/resources/json/stocksDB-Entities/export-incremental.json > fdd3b018d > > > Diff: https://reviews.apache.org/r/68678/diff/4/ > > > Testing > ------- > > **Pre-commit build** > https://builds.apache.org/view/A/view/Atlas/job/PreCommit-ATLAS-Build-Test/658/ > > **Unit tests** > - Additional unit tests to verify this scenario. > > > **Volume test** > > Database: HiveDB, 50 tables, 50 views, 50 CTAS tables, each with 88 columns. > Full export is where _changeMarker_ is set to 0. > Increment export is where some modifications have been done to the database > and _changeMarker_ is set to some value. > > +-------------+-----------+ > | Operation | Duration | > +-------------+-----------+ > | Full Export | 37 secs| > +-------------+-----------+ > | Increment | 5 secs| > +-------------+-----------+ > | Increment | 10 secs| > | (25 count) | . | > +-------------+-----------+ > > > Thanks, > > Ashutosh Mestry > >
