Skip to content

Commit

Permalink
Add CHANGELOG
Browse files Browse the repository at this point in the history
Signed-off-by: 🌲 Harry 🌊 John 🏔 <[email protected]>
  • Loading branch information
harry671003 committed Nov 29, 2023
1 parent aa10248 commit c3503fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
* [ENHANCEMENT] Ingester: Added new ingester TSDB metrics `cortex_ingester_tsdb_head_samples_appended_total`, `cortex_ingester_tsdb_head_out_of_order_samples_appended_total`, `cortex_ingester_tsdb_snapshot_replay_error_total`, `cortex_ingester_tsdb_sample_ooo_delta` and `cortex_ingester_tsdb_mmap_chunks_total`. #5624
* [ENHANCEMENT] Query Frontend: Handle context error before decoding and merging responses. #5499
* [ENHANCEMENT] Store-Gateway and AlertManager: Add a `wait_instance_time_out` to context to avoid waiting forever. #5581
* [ENHANCEMENT] Store-Gateway: Move the `tenant-deletion-mark.json`` to a global dir. #5676
* [BUGFIX] Compactor: Fix possible division by zero during compactor config validation. #5535
* [BUGFIX] Ruler: Validate if rule group can be safely converted back to rule group yaml from protobuf message #5265
* [BUGFIX] Querier: Convert gRPC `ResourceExhausted` status code from store gateway to 422 limit error. #5286
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/tsdb/caching_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ var chunksMatcher = regexp.MustCompile(`^.*/chunks/\d+$`)
func isTSDBChunkFile(name string) bool { return chunksMatcher.MatchString(name) }

func isMetaFile(name string) bool {
return strings.HasSuffix(name, "/"+metadata.MetaFilename) || strings.HasSuffix(name, "/"+metadata.DeletionMarkFilename) || strings.HasSuffix(name, "/"+TenantDeletionMarkPath)
return strings.HasSuffix(name, "/"+metadata.MetaFilename) || strings.HasSuffix(name, "/"+metadata.DeletionMarkFilename) || strings.HasSuffix(name, "/"+TenantDeletionMarkFile)
}

func isBlockIndexFile(name string) bool {
Expand Down
7 changes: 3 additions & 4 deletions pkg/storage/tsdb/tenant_deletion_mark.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import (
util_log "github.com/cortexproject/cortex/pkg/util/log"
)

// Relative to user-specific prefix.
const TenantDeletionMarkPath = "tenant-deletion-mark.json"
const TenantDeletionMarkFile = "tenant-deletion-mark.json"

type TenantDeletionMark struct {
// Unix timestamp when deletion marker was created.
Expand Down Expand Up @@ -63,11 +62,11 @@ func ReadTenantDeletionMark(ctx context.Context, bkt objstore.BucketReader, user
}

func GetLocalDeletionMarkPath(userID string) string {
return path.Join(userID, "markers", TenantDeletionMarkPath)
return path.Join(userID, "markers", TenantDeletionMarkFile)
}

func GetGlobalDeletionMarkPath(userID string) string {
return path.Join(util.GlobalMarkersDir, userID, TenantDeletionMarkPath)
return path.Join(util.GlobalMarkersDir, userID, TenantDeletionMarkFile)
}

func exists(ctx context.Context, bkt objstore.BucketReader, markerFile string) (bool, error) {
Expand Down

0 comments on commit c3503fd

Please sign in to comment.