Skip to content

stacks-node loses outbound peers when broadcasting events  #3145

@CharlieC3

Description

@CharlieC3

The stacks-node is susceptible to losing all outbound peers when broadcasting events to a stacks-blockchain-api, causing it to fall behind the chain tip potentially for hours until the stacks-node is restarted.
During this time, the stacks-node printing plenty of PermanentlyDrained logs like such:
http:id=234,request=false,peer=<redacted>: failed to recv: PermanentlyDrained

Expected behavior
If a stacks-node loses all outbound peers, it should be able to acquire new ones or re-validate old ones relatively quickly.

Debug Information
If this happens again, I'll get more debug information like:

  • running 'select * from frontier;' in the peers.db before/after restarting the stacks-node.
  • checking open network connections before/after restarting the stacks-node

stacks-node version: 2.05.0.2.0

Screen_Shot_2022-05-21_at_12 25 11_PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions