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

[Bug]: simdv2 responds error: version 15 does not exist on tx send #22469

Closed
1 task done
kocubinski opened this issue Nov 7, 2024 · 1 comment · Fixed by #22435
Closed
1 task done

[Bug]: simdv2 responds error: version 15 does not exist on tx send #22469

kocubinski opened this issue Nov 7, 2024 · 1 comment · Fixed by #22435
Labels

Comments

@kocubinski
Copy link
Member

kocubinski commented Nov 7, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

When running load tests for benchmarks simapp/v2 responds curiously with:

error in json rpc client, with http response metadata: (Status: 500 Internal Server Error, Protocol HTTP/1.1). RPC error -32603 - Internal error: CheckTx request for tx 2B8A868E87E87B6D6C16F5E4545D87120346FB910E2D58C97340B2E5E2CD33F8 failed: version 7 does not exist

Sometimes the HTTP response code is 200 but with the same error.

error in json rpc client, with http response metadata: (Status: 200 OK, Protocol HTTP/1.1). RPC error -32603 - Internal error: version 25 does not exist

This could indicate a synchronization problem around committing a block.

Cosmos SDK Version

main @ ffa74d1

How to reproduce?

To reproduce checkout 0b74dbe, which is on kocu/x-benchmark. Start up simapp, then the load test and wait a few seconds.

git checkout 0b74dbeeef3f651c28ebc06f03eafcb0ecde68aa
COSMOS_BUILD_OPTIONS=v2 make install && make init-simapp-v2 && simdv2 start
# wait for genesis to complete, could be a few seconds
simdv2 tx benchmark load-test alice --yes
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Cosmos-SDK Nov 7, 2024
@kocubinski kocubinski changed the title [Bug]: simdv2 responds failed: version 15 does not exist on tx send [Bug]: simdv2 responds error: version 15 does not exist on tx send Nov 7, 2024
@GNaD13
Copy link
Contributor

GNaD13 commented Nov 8, 2024

As far as I can see, there is a delay between the update of the s.lastCommitInfo value and the actual SC store update. This means that if a TX is sent during this delay, when the StateLatest() function is called in ValidateTx(), there may has an error because the SC store has not been committed in sync with the newly updated version information in lastCommitInfo. This may be the cause of the above error. So to deal with this problem I think we have 2 options:

  • We could change something like update s.lastCommitInfo after SC store is completely commited
  • Always get lastCommitInfo from SC Lastest Version instead of use both s.lastCommitInfo and SCLatestVersion

I've tested with options 2 and it was running stable, no more same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🥳 Done
Development

Successfully merging a pull request may close this issue.

2 participants