Skip to content

Commit

Permalink
fix-up tsdb-typo (#5954)
Browse files Browse the repository at this point in the history
Signed-off-by: chentanjun <2799194073@qq.com>
  • Loading branch information
tanjunchen authored and brian-brazil committed Aug 28, 2019
1 parent 6141a8b commit 50d453b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tsdb/CHANGELOG.md
Expand Up @@ -78,7 +78,7 @@
- [ENHANCEMENT] When closing the db any running compaction will be cancelled so it doesn't block.
- `NewLeveledCompactor` takes a context.
- [CHANGE] `prometheus_tsdb_storage_blocks_bytes_total` is now `prometheus_tsdb_storage_blocks_bytes`.
- [BUGFIX] Improved Postings Merge performance. Fixes a regression from the the previous release.
- [BUGFIX] Improved Postings Merge performance. Fixes a regression from the previous release.
- [BUGFIX] LiveReader can get into an infinite loop on corrupt WALs.

## 0.4.0
Expand Down
2 changes: 1 addition & 1 deletion tsdb/db_test.go
Expand Up @@ -1112,7 +1112,7 @@ func TestSizeRetention(t *testing.T) {
// Test that registered size matches the actual disk size.
testutil.Ok(t, db.reload()) // Reload the db to register the new db size.
testutil.Equals(t, len(blocks), len(db.Blocks())) // Ensure all blocks are registered.
expSize := int64(prom_testutil.ToFloat64(db.metrics.blocksBytes)) // Use the the actual internal metrics.
expSize := int64(prom_testutil.ToFloat64(db.metrics.blocksBytes)) // Use the actual internal metrics.
actSize := testutil.DirSize(t, db.Dir())
testutil.Equals(t, expSize, actSize, "registered size doesn't match actual disk size")

Expand Down
2 changes: 1 addition & 1 deletion tsdb/querier_test.go
Expand Up @@ -570,7 +570,7 @@ func TestBaseChunkSeries(t *testing.T) {

cases := []struct {
series []refdSeries
// Postings should be in the sorted order of the the series
// Postings should be in the sorted order of the series
postings []uint64

expIdxs []int
Expand Down
2 changes: 1 addition & 1 deletion tsdb/wal.go
Expand Up @@ -280,7 +280,7 @@ func (w *SegmentWAL) truncate(err error, file int, lastOffset int64) error {
return err
}

// Reader returns a new reader over the the write ahead log data.
// Reader returns a new reader over the write ahead log data.
// It must be completely consumed before writing to the WAL.
func (w *SegmentWAL) Reader() WALReader {
return &repairingWALReader{
Expand Down
2 changes: 1 addition & 1 deletion tsdb/wal/wal.go
Expand Up @@ -402,7 +402,7 @@ func (w *WAL) Repair(origErr error) error {
return errors.Wrap(err, "delete corrupted segment")
}

// Explicitly close the the segment we just repaired to avoid issues with Windows.
// Explicitly close the segment we just repaired to avoid issues with Windows.
s.Close()

// We always want to start writing to a new Segment rather than an existing
Expand Down

0 comments on commit 50d453b

Please sign in to comment.