-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve compactor job estimation by tracking external labels in bucke…
…t index (#7745) * reduce scope leakage of temp err * Replace bool value with empty struct for map used just for membership checks. * Add Labels as bucketindex Block field, copy it over when updating index from blocks. * Copy bucket index block labels into block meta labels so estimates can match compaction. * Update bucket index tests to reflect that bucket index now includes block labels. * Update Block.Labels doc. * Special insertion of __compactor_shard_id__ label no longer necessary as it exists in block labels. * Add changelog entry. * Continue to restore shard ID label from block.CompactorShardID. Make compaction-planner and estimator agree. * Recover shard ID into labels whenever possible. Remove some code duplication. * Clarify scope of change. * Tests to cover ConvertBucketIndexToMetasForCompactionJobPlanning. * Don't let BlockFromThanosMeta, block.ThanosMeta return nil label maps. * Undo trying to guarantee non-nil maps, as json.Decoder doesn't do that in ReadIndex. * I forgot to put the nil check back. * Link to PR, not issue. * Make estimator match compactor w/r/t ignoring deprecated labels. * tabularize tests. * test case names -> map keys * Remove info from doc comment that is redundant with docs on those constants.
- Loading branch information
1 parent
fee60b8
commit 9215d7a
Showing
8 changed files
with
260 additions
and
61 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
Oops, something went wrong.