Skip to content

Commit

Permalink
changed commitsRetained to commitsRetainedByCleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Vexler committed Nov 2, 2022
1 parent ccdb305 commit d4f5107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public String triggerArchival(
@ShellOption(value = {"--maxCommits"},
help = "Maximum number of instants to retain in the active timeline. See hoodie.keep.max.commits",
defaultValue = "30") int maxCommits,
@ShellOption(value = {"--commitsRetained"}, help = "Number of commits to retain, without cleaning",
@ShellOption(value = {"--commitsRetainedByCleaner"}, help = "Number of commits to retain, without cleaning",
defaultValue = "10") int retained,
@ShellOption(value = {"--enableMetadata"},
help = "Enable the internal metadata table which serves table metadata like level file listings",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void testArchiving() throws Exception {
HoodieTestCommitMetadataGenerator.createCommitFileWithMetadata(tablePath,timestamp, hadoopConf());
}

Object cmdResult = shell.evaluate(() -> "trigger archival --minCommits 2 --maxCommits 3 --commitsRetained 1 --enableMetadata false");
Object cmdResult = shell.evaluate(() -> "trigger archival --minCommits 2 --maxCommits 3 --commitsRetainedByCleaner 1 --enableMetadata false");
assertTrue(ShellEvaluationResultUtil.isSuccess(cmdResult));
metaClient = HoodieTableMetaClient.reload(metaClient);

Expand Down

0 comments on commit d4f5107

Please sign in to comment.