-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Divulgence pruning] All divulgence events pruning [DPP-483] (#10634)
* All divulgence events pruning * Add `pruneAllDivulgedContracts` to `IndexParticipantPruningService` * Add `participant_pruned_all_contracts_up_to_inclusive` in `parameters` table * `pruneEvents` prunes all divulgence events * Adapt `ParticipantPruningIT` to check for divulgence with and without `pruna_all_divulged_contracts` * Create multi-participant pruning test in ledger-on-memory CHANGELOG_BEGIN CHANGELOG_END * CommonStorageBackend * Enrich pruning descriptions * Logging for command completions pruning * Move divulgence pruning back to the beginning of pruning sequence * Addressed review comments * PRDivulgenceArchivalPruning adapted for privacy-aware ledgers * Rebased to main * Disable ParticipantPruningIT tests targeting append-only schema in mutable schema conformance tests in ledger-on-sql * Adapted order of SQL migration queries * Documentation of appendonlydao.JdbcLedgerDao.prune * Apply suggestions from code review Co-authored-by: Simon Meier <[email protected]> Co-authored-by: Simon Meier <[email protected]>
- Loading branch information
1 parent
0b7980d
commit 96ad9b5
Showing
32 changed files
with
389 additions
and
127 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
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
2 changes: 1 addition & 1 deletion
2
...n-api/src/main/resources/db/migration/h2database-appendonly/V1__Append_only_schema.sha256
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
219563772b2b7a88b3e70f27a35c94ff7d379380a20276c654fdd3279e7a6e5e | ||
a87ade99f0baf6a646b40606a6d8e254f2b1e2776299dc80929e6dcce489c4c3 |
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
2 changes: 1 addition & 1 deletion
2
...ation-api/src/main/resources/db/migration/oracle-appendonly/V1__Append_only_schema.sha256
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
bd2c4bfb724003409c5eafdb9d62df264b7d659f6b3ae9ff5122e57366201f02 | ||
0baa5160dbf8f3f5336824de0e8ea123ad3d5101d2fbc850ca4777fc45520b8c |
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
1 change: 1 addition & 0 deletions
1
...resources/db/migration/postgres-appendonly/V109__Add_all_divulgence_pruning_offset.sha256
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9c8d167a4c2ffa4a57865f217ea9d7997de1d7b90f5ea13c353ad28c70896c4a |
2 changes: 2 additions & 0 deletions
2
...in/resources/db/migration/postgres-appendonly/V109__Add_all_divulgence_pruning_offset.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE parameters | ||
ADD COLUMN participant_all_divulged_contracts_pruned_up_to_inclusive VARCHAR; |
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
Oops, something went wrong.