You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "ishita-0301 (via GitHub)" <gi...@apache.org> on 2026/07/18 14:23:06 UTC
[PR] perf(test): poll is_compacting instead of a fixed sleep in replication test [kvrocks]
ishita-0301 opened a new pull request, #3561:
URL: https://github.com/apache/kvrocks/pull/3561
### What this does
`TestReplicationShareCheckpoint` runs `COMPACT` and then blindly
`time.Sleep(time.Second)` before starting the replicas. That is slower
than necessary and potentially flaky — on a loaded CI runner one second
may not be enough for the manual compaction to finish, so the test can
proceed while compaction is still running.
This replaces the fixed sleep with the same `is_compacting` poll already
used elsewhere in the same file (`TestReplicationWithHole`), returning as
soon as compaction completes:
```go
require.Eventually(t, func() bool {
return util.FindInfoEntry(masterClient, "is_compacting") == "no"
}, 10*time.Second, 100*time.Millisecond)
```
### Related
Part of #3524, addresses #3527.
### Note on testing
I was not able to run the full Go integration suite locally for this
change; it mirrors an existing, already-tested pattern in the same file
rather than introducing new behavior. Happy to adjust if maintainers
prefer a different approach.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] perf(test): poll is_compacting instead of a fixed sleep in replication test [kvrocks]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #3561:
URL: https://github.com/apache/kvrocks/pull/3561#issuecomment-5022596296
## [](https://sonarcloud.io/dashboard?id=apache_kvrocks&pullRequest=3561) **Quality Gate failed**
Failed conditions
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_kvrocks&pullRequest=3561&metric=new_coverage&view=list) (required ≥ 50%)
<!-- sqra:qg_revision=e8f4ed826706f86158a81b2156f4e750a3278667775ec2dacbe6221ce026d511 -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_kvrocks&pullRequest=3561)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] perf(test): poll is_compacting instead of a fixed sleep in replication test [kvrocks]
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk merged PR #3561:
URL: https://github.com/apache/kvrocks/pull/3561
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] perf(test): poll is_compacting instead of a fixed sleep in replication test [kvrocks]
Posted by "jihuayu (via GitHub)" <gi...@apache.org>.
jihuayu commented on PR #3561:
URL: https://github.com/apache/kvrocks/pull/3561#issuecomment-5020540327
Hi @ishita-0301. If you can't run the tests locally, you can use the GitHub Actions workflow in your repository: [https://github.com/ishita-0301/kvrocks/actions](https://github.com/ishita-0301/kvrocks/actions) to make sure all tests are passing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] perf(test): poll is_compacting instead of a fixed sleep in replication test [kvrocks]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #3561:
URL: https://github.com/apache/kvrocks/pull/3561#issuecomment-5021333289
## [](https://sonarcloud.io/dashboard?id=apache_kvrocks&pullRequest=3561) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_kvrocks&pullRequest=3561&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_kvrocks&pullRequest=3561&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_kvrocks&pullRequest=3561&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_kvrocks&pullRequest=3561&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_kvrocks&pullRequest=3561&metric=new_duplicated_lines_density&view=list)
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_kvrocks&pullRequest=3561)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org