Skip to content

DA layer submission failure due to tx timeout #1036

Closed

Description

@Ferret-san

While sending transactions sequentially to a Rollkit sequencing node running Polaris and posting data to a local celestia devnet instance, I encountered an issue which Rollkit reports as:

DA layer submission failed error="Post \"http://localhost:26659/submit_pfb\": EOF" attempt=1 module=BlockManager
5:29PM ERR DA layer submission failed error="Codespace: 'sdk', Code: 19, Message: " attempt=2 module=BlockManager
5:29PM ERR DA layer submission failed error="Codespace: 'sdk', Code: 19, Message: " attempt=3 module=BlockManager
5:29PM ERR DA layer submission failed error="Codespace: 'sdk', Code: 19, Message: " attempt=4 module=BlockManager
5:29PM ERR DA layer submission failed error="Codespace: 'sdk', Code: 19, Message: " attempt=5 module=BlockManager
5:29PM ERR DA layer submission failed error="Codespace: 'sdk', Code: 19, Message: " attempt=6 module=BlockManager
5:29PM ERR DA layer submission failed error="Codespace: 'sdk', Code: 19, Message: " attempt=7 module=BlockManager
5:30PM ERR DA layer submission failed error="Codespace: 'sdk', Code: 19, Message: " attempt=8 module=BlockManage

Eventually after 30 or so attempts, Rollkit uses a pending block to progress the chain, but doing so causes a height mismatch between the client (Rollkit) and the app (Polaris), which can lead to a panic.

Looking at the logs for the local celestia devnet shows that the first failed submission occurs because of ERR Error on broadcastTxCommit err="timed out waiting for tx to be included in a block" module=rpc, while any future attempt by Rollkit to submit the data fails because ERR Error on broadcastTxCommit err="tx already exists in cache" module=rpc.

While it might be possible to change the timeout_commit value locally and resolve the issue, Rollkit might be better off using something like BroadcastTxSync or BrodcastTxAsync, or perhaps the change from go-cnc to open-rpc will fix this issue by allowing Rollkit to wait for the context deadline of the request more accurately, avoiding further attempts to submit a tx already in cache

Activity

  1. added
    T:bug
    and removed on Jun 28, 2023
  2. nashqueue commented on Jun 28, 2023

    @nashqueue
    Contributor

    We will revisit this after the move to open-rpc to see if it resolves the issue. Thank you

  3. Wondertan commented on Jun 28, 2023

    @Wondertan
    Contributor

    JFYI, This won't be fixed in RPC until celestiaorg/celestia-app#1885 is fixed

  4. Manav-Aggarwal commented on Aug 29, 2023

    @Manav-Aggarwal
    Member

    @Ferret-san now that the move to open-rpc is done and celestiaorg/celestia-app#1885 is fixed, is this issue resolved? cc: @Wondertan @nashqueue

  5. Wondertan commented on Aug 30, 2023

    @Wondertan
    Contributor

    We didn't integrate that feature into the node yet. @cmwaters is on it

  6. moved this from Backlog to In Progress in Evolveon Sep 7, 2023
  7. self-assigned this
    on Sep 18, 2023
  8. added this to Evolve and removed this from Evolveon Nov 30, 2023
  9. Manav-Aggarwal commented on Dec 20, 2023

    @Manav-Aggarwal
    Member

    Bumping this for revisiting @Wondertan

  10. added a commit that references this issue on Feb 5, 2024
    6bc4b2a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

T:bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions