From 50d453b3c3bf20934412fb12eb9c0ef3b18e3558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=B0=AD=E5=86=9B?= <2799194073@qq.com> Date: Wed, 28 Aug 2019 21:43:02 +0800 Subject: [PATCH] fix-up tsdb-typo (#5954) Signed-off-by: chentanjun <2799194073@qq.com> --- tsdb/CHANGELOG.md | 2 +- tsdb/db_test.go | 2 +- tsdb/querier_test.go | 2 +- tsdb/wal.go | 2 +- tsdb/wal/wal.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tsdb/CHANGELOG.md b/tsdb/CHANGELOG.md index e3da26b06..8f23acc19 100644 --- a/tsdb/CHANGELOG.md +++ b/tsdb/CHANGELOG.md @@ -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 diff --git a/tsdb/db_test.go b/tsdb/db_test.go index d8e94215b..0ca2ef52f 100644 --- a/tsdb/db_test.go +++ b/tsdb/db_test.go @@ -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") diff --git a/tsdb/querier_test.go b/tsdb/querier_test.go index b76a3af5f..88dfe8f33 100644 --- a/tsdb/querier_test.go +++ b/tsdb/querier_test.go @@ -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 diff --git a/tsdb/wal.go b/tsdb/wal.go index 4809889f3..187feabd9 100644 --- a/tsdb/wal.go +++ b/tsdb/wal.go @@ -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{ diff --git a/tsdb/wal/wal.go b/tsdb/wal/wal.go index 1fc496510..3473043a7 100644 --- a/tsdb/wal/wal.go +++ b/tsdb/wal/wal.go @@ -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