-
Notifications
You must be signed in to change notification settings - Fork 342
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
querying empty signal tally causes index panic #4007
Labels
bug
Something isn't working
priority:low
optional label to track the relative priority of planned items
WS: Maintenance 🔧
includes bugs, refactors, flakes, and tech debt etc
Comments
evan-forbes
added
bug
Something isn't working
WS: Maintenance 🔧
includes bugs, refactors, flakes, and tech debt etc
priority:low
optional label to track the relative priority of planned items
and removed
needs:triage
labels
Nov 11, 2024
hmm, I can't repro with that exact command or a few variants of that command:
I think we'll need to write unit tests against the RPC / gRPC endpoint to try and repro |
This comment was marked as outdated.
This comment was marked as outdated.
I reproed this by running single-node.sh from #4041 and then ./scripts/upgrade-to-v3.sh # Query during app version 1
$ celestia-appd query signal tally 3
Error: rpc error: code = Unknown desc = kv store with key KVStoreKey{0x14001209a90, signal} has not been registered in stores: panic
# Query during app version 2
$ celestia-appd query signal tally 3
threshold_power: "4167"
total_voting_power: "5000"
voting_power: "0"
# Query after validator signals for v3
$ celestia-appd query signal tally 3
threshold_power: "4167"
total_voting_power: "5000"
voting_power: "5000"
# Query after the try upgrade but before v3 activation height
$ celestia-appd query signal tally 3
Error: rpc error: code = Unknown desc = runtime error: index out of range [7] with length 6: panic |
The upgrade key is getting iterated over when calculating the tally. I added a unit test and fix. |
mergify bot
pushed a commit
that referenced
this issue
Nov 25, 2024
Closes #4007 ## Testing Using the updated single-node.sh script (see other PR), I can query the version tally even after a successful try upgrade. ``` $ ./scripts/upgrade-to-v3.sh $ celestia-appd query signal tally 3 threshold_power: "4167" total_voting_power: "5000" voting_power: "5000" ``` (cherry picked from commit 0bfd074)
evan-forbes
pushed a commit
that referenced
this issue
Nov 25, 2024
… (#4052) Closes #4007 ## Testing Using the updated single-node.sh script (see other PR), I can query the version tally even after a successful try upgrade. ``` $ ./scripts/upgrade-to-v3.sh $ celestia-appd query signal tally 3 threshold_power: "4167" total_voting_power: "5000" voting_power: "5000" ```<hr>This is an automatic backport of pull request #4045 done by [Mergify](https://mergify.com). Co-authored-by: Rootul P <[email protected]>
rach-id
pushed a commit
that referenced
this issue
Nov 26, 2024
Closes #4007 ## Testing Using the updated single-node.sh script (see other PR), I can query the version tally even after a successful try upgrade. ``` $ ./scripts/upgrade-to-v3.sh $ celestia-appd query signal tally 3 threshold_power: "4167" total_voting_power: "5000" voting_power: "5000" ``` (cherry picked from commit 0bfd074)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
priority:low
optional label to track the relative priority of planned items
WS: Maintenance 🔧
includes bugs, refactors, flakes, and tech debt etc
Found by using the following command on arabica:
❯ celestia-appd query signal tally 3 --node https://rpc.celestia-arabica-11.com:443
Error: rpc error: code = Unknown desc = runtime error: index out of range [7] with length 7: panic
The text was updated successfully, but these errors were encountered: