Skip to content

test_filter_sync_passes_frozen_peers fails when the frozen peers owe many batches #1530

Done

Description

@xdustinface

tests_stall::test_filter_sync_passes_frozen_peers fails now and then in CI with peer ... was dropped before the filters were stored (tests_stall.rs:138). Seen on dev at d643decea (Ubuntu, run) and at a549f32ee (Ubuntu ARM, run), and on #1474 at 3f5195381 (Ubuntu ARM).

Two of three peers are frozen and the third must deliver the filter batches they owe before the request timeout drops one of them. Broker::hedge_filters copies only the lowest batch, once its holder was silent for HEDGE_AFTER (2 s), and the next one only after that was delivered. So the batches go out one after the other, and how many the frozen peers owe decides whether the 10 s timeout comes first.

From the SPV logs of the three runs:

Run Copies before the kick Mean time between copies First copy to kick Filters stored of 40000
dev d643decea, Ubuntu 15 0.59 s 8.0 s 28000
dev a549f32ee, Ubuntu ARM 12 0.66 s 6.5 s 38000
#1474 3f5195381, Ubuntu ARM 16 0.50 s 8.0 s 33000

In a real sync this means that peers which freeze while they owe many batches are dropped before another peer caught up on what they owe. Options:

  • Copy the next batch as soon as the previous copy is on the wire, up to a small number, when the holder is silent.
  • Hand all batches of a peer that stays silent to the peers that answer, keeping it connected.
  • Make the test bound the number of batches the frozen peers owe, if one batch at a time is what we want.

Activity

  1. xdustinface commented on Nov 25, 2026

    @xdustinface
    CollaboratorAuthor

    Also seen on fix/peer-diversity (Ubuntu, run), same panic at tests_stall.rs:138.

  2. added a commit that references this issue on Nov 26, 2026
    5555f01
  3. added a commit that references this issue on Dec 5, 2026
    0a75049
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions