Skip to content

Commit

Permalink
fix: change Kafka to use stats for pending
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Oct 2, 2021
1 parent dc03e6c commit 647d0a6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions test/kafka-stress/kafka_stress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ func TestKafkaSourceStress(t *testing.T) {

defer StartTPSReporter(t, "main", prefix, n)()
go PumpKafkaTopic(topic, n, prefix, Params.MessageSize)
WaitForPending()
WaitForNothingPending()
WaitForTotalSunkMessages(n, Params.Timeout)
}

Expand Down
4 changes: 0 additions & 4 deletions test/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ func WaitForPending() {
ExpectMetric("sources_pending", Gt(0))
}

func WaitForNothingPending() {
ExpectMetric("sources_pending", Eq(0))
}

func WaitForTotalSourceMessages(v int) {
ExpectMetric("sources_total", Eq(float64(v)))
}
Expand Down
1 change: 0 additions & 1 deletion test/stan-stress/stan_stress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func TestStanSourceStress(t *testing.T) {
defer StartTPSReporter(t, "main", prefix, n)()

go PumpSTANSubject(longSubject, n, prefix, Params.MessageSize)
WaitForPending()
WaitForTotalSunkMessages(n, Params.Timeout)
}

Expand Down
2 changes: 1 addition & 1 deletion test/stan-stress/test-results.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"TestStanSinkStress/replicas=3.tps": 300,
"TestStanSinkStress/replicas=4.tps": 300,
"TestStanSinkStress/replicas=5.tps": 350,
"TestStanSourceStress/.tps": 1650,
"TestStanSourceStress/.tps": 1150,
"TestStanSourceStress/N=10,messageSize=100.tps": 850,
"TestStanSourceStress/N=10,messageSize=1000.tps": 400,
"TestStanSourceStress/currentContext=gke_jesse-sb_us-central1-c_dataflow-test,N=10,messageSize=5000000.tps": 40300,
Expand Down

0 comments on commit 647d0a6

Please sign in to comment.