Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QuorumStore] fix insert/expire issue #7070

Merged
merged 1 commit into from
Mar 13, 2023
Merged

[QuorumStore] fix insert/expire issue #7070

merged 1 commit into from
Mar 13, 2023

Conversation

gelash
Copy link
Contributor

@gelash gelash commented Mar 12, 2023

Fix the issue of not holding the lock while checking expiration and inserting a new entry (that can extend expiration but could end up truncating).

Simple test that replicates the panic without the fix.

More tests (more coverage, concurrent, proptests, injecting pause) coming separately.

@gelash gelash requested review from bchocho and sasha8 as code owners March 12, 2023 00:28
@gelash gelash added the CICD:run-e2e-tests when this label is present github actions will run all land-blocking e2e tests from the PR label Mar 12, 2023
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@gelash gelash force-pushed the gelash/qsbatchreaderexp branch from aae41f8 to 997adb0 Compare March 12, 2023 08:26
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@gelash gelash force-pushed the gelash/qsbatchreaderexp branch from 997adb0 to 6cec025 Compare March 12, 2023 17:30
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

✅ Forge suite compat success on testnet_2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 6cec025cc0e79e4725e032062a00cde9847dc89b

Compatibility test results for testnet_2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 6cec025cc0e79e4725e032062a00cde9847dc89b (PR)
1. Check liveness of validators at old version: testnet_2d8b1b57553d869190f61df1aaf7f31a8fc19a7b
compatibility::simple-validator-upgrade::liveness-check : 8279 TPS, 4616 ms latency, 6100 ms p99 latency,no expired txns
2. Upgrading first Validator to new version: 6cec025cc0e79e4725e032062a00cde9847dc89b
compatibility::simple-validator-upgrade::single-validator-upgrade : 4730 TPS, 8482 ms latency, 11000 ms p99 latency,no expired txns
3. Upgrading rest of first batch to new version: 6cec025cc0e79e4725e032062a00cde9847dc89b
compatibility::simple-validator-upgrade::half-validator-upgrade : 4982 TPS, 7967 ms latency, 10100 ms p99 latency,no expired txns
4. upgrading second batch to new version: 6cec025cc0e79e4725e032062a00cde9847dc89b
compatibility::simple-validator-upgrade::rest-validator-upgrade : 7139 TPS, 5332 ms latency, 9600 ms p99 latency,no expired txns
5. check swarm health
Compatibility test for testnet_2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 6cec025cc0e79e4725e032062a00cde9847dc89b passed
Test Ok

@github-actions
Copy link
Contributor

✅ Forge suite land_blocking success on 6cec025cc0e79e4725e032062a00cde9847dc89b

performance benchmark with full nodes : 6085 TPS, 6512 ms latency, 9300 ms p99 latency,(!) expired 140 out of 2598500 txns
Test Ok

@github-actions
Copy link
Contributor

✅ Forge suite framework_upgrade success on cb4ba0a57c998c60cbab65af31a64875d2588ca5 ==> 6cec025cc0e79e4725e032062a00cde9847dc89b

Compatibility test results for cb4ba0a57c998c60cbab65af31a64875d2588ca5 ==> 6cec025cc0e79e4725e032062a00cde9847dc89b (PR)
Upgrade the nodes to version: 6cec025cc0e79e4725e032062a00cde9847dc89b
framework_upgrade::framework-upgrade::full-framework-upgrade : 6486 TPS, 5903 ms latency, 8800 ms p99 latency,no expired txns
5. check swarm health
Compatibility test for cb4ba0a57c998c60cbab65af31a64875d2588ca5 ==> 6cec025cc0e79e4725e032062a00cde9847dc89b passed
Test Ok

@gelash gelash merged commit 2607a26 into main Mar 13, 2023
@gelash gelash deleted the gelash/qsbatchreaderexp branch March 13, 2023 19:39
@bchocho bchocho mentioned this pull request Mar 13, 2023
bchocho pushed a commit that referenced this pull request Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CICD:run-e2e-tests when this label is present github actions will run all land-blocking e2e tests from the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants