Skip to content

Commit 2fbbe42

Browse files
committed
Address PR comments
Signed-off-by: Alvin Lin <[email protected]>
1 parent c805e33 commit 2fbbe42

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* [BUGFIX] Ruler: fixed counting of PromQL evaluation errors as user-errors when updating `cortex_ruler_queries_failed_total`. #4335
4242
* [BUGFIX] Ingester: When using block storage, prevent any reads or writes while the ingester is stopping. This will prevent accessing TSDB blocks once they have been already closed. #4304
4343
* [BUGFIX] Ingester: fixed ingester stuck on start up (LEAVING ring state) when `-ingester.heartbeat-period=0` and `-ingester.unregister-on-shutdown=false`. #4366
44-
* [BUGFIX] Querier can have lower concurrency after query-frontend restart. #4417
44+
* [BUGFIX] Querier: After query-frontend restart, querier may have lower than configured concurrency. #4417
4545

4646
## 1.10.0 / 2021-08-03
4747

pkg/querier/worker/worker_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,39 +31,39 @@ func TestResetConcurrency(t *testing.T) {
3131
maxConcurrent: 0,
3232
numTargets: 2,
3333
expectedConcurrency: 2,
34-
exepctedConcurrencyAfterTargetRemoval: 1,
34+
expectedConcurrencyAfterTargetRemoval: 1,
3535
},
3636
{
3737
name: "Test parallelism per target",
3838
parallelism: 4,
3939
maxConcurrent: 0,
4040
numTargets: 2,
4141
expectedConcurrency: 8,
42-
exepctedConcurrencyAfterTargetRemoval: 4,
42+
expectedConcurrencyAfterTargetRemoval: 4,
4343
},
4444
{
4545
name: "Test Total Parallelism with a remainder",
4646
parallelism: 1,
4747
maxConcurrent: 7,
4848
numTargets: 4,
4949
expectedConcurrency: 7,
50-
exepctedConcurrencyAfterTargetRemoval: 7,
50+
expectedConcurrencyAfterTargetRemoval: 7,
5151
},
5252
{
5353
name: "Test Total Parallelism dividing evenly",
5454
parallelism: 1,
5555
maxConcurrent: 6,
5656
numTargets: 2,
5757
expectedConcurrency: 6,
58-
exepctedConcurrencyAfterTargetRemoval: 6,
58+
expectedConcurrencyAfterTargetRemoval: 6,
5959
},
6060
{
6161
name: "Test Total Parallelism at least one worker per target",
6262
parallelism: 1,
6363
maxConcurrent: 3,
6464
numTargets: 6,
6565
expectedConcurrency: 6,
66-
exepctedConcurrencyAfterTargetRemoval: 5,
66+
expectedConcurrencyAfterTargetRemoval: 5,
6767
},
6868
}
6969

@@ -91,7 +91,7 @@ func TestResetConcurrency(t *testing.T) {
9191

9292
// now we remove an address and ensure we still have the expected concurrency
9393
w.AddressRemoved(fmt.Sprintf("127.0.0.1:%d", rand.Intn(tt.numTargets)))
94-
test.Poll(t, 250*time.Millisecond, tt.exepctedConcurrencyAfterTargetRemoval, func() interface{} {
94+
test.Poll(t, 250*time.Millisecond, tt.expectedConcurrencyAfterTargetRemoval, func() interface{} {
9595
return getConcurrentProcessors(w)
9696
})
9797

0 commit comments

Comments
 (0)