-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
indexer-alt: shared pruner configs with overrides
## Description Similar to the change introducing a shared committer config, this change introduces a shared pruner config between all concurrent pipelines. The values in this config are only used to fill out concurrent pipelines who have already specified that they want pruning enabled (i.e. unlike the committer override which is always inherited, this will only be inherited if the pruner config is called for). Additionally, unlike other fields where the last write wins when merging configs, `PrunerConfig.retention` will be merged by `max`. This is to deal with merging the configs of two different apps that need to index the same table, but with different retentions. ## Test plan New unit tests: ``` sui$ cargo nextest run -p sui-indexer-alt ```
- Loading branch information
Showing
3 changed files
with
201 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters