-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore][tracker]: save most recent (archive) write index to disk (#36799
) This PR stores the most recent index to disk. Much similar to what happens for persistent queue. It also adds `Batch` methods to `operator.Persister`, as saving the metadata and saving the index should be a transaction and it can only be achieved via `Batch`. For eg. if user has configured archiving to store 100 poll cycles, let's assume: - For first collector run, it stores 10 cycles and `archiveIndex` is 11 (pointing to the next index). - When the collector is restarted, we will restore the `archiveIndex` from disk and continue from index 11 <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Closes #32727 <!--Describe what testing was performed and which tests were added.--> #### Testing Added UT for checking index is in-bounds and to test archive restoration. --------- Co-authored-by: Daniel Jaglowski <[email protected]>
- Loading branch information
1 parent
116bafc
commit 4543060
Showing
7 changed files
with
315 additions
and
21 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
Oops, something went wrong.