[flake]: itest multihop-local_preimage_claim_simple_taproot_final_zero_conf

Open
#11,646 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
backend, testing

Research direction

Start with the failing integration test at lnd_multi-hop_force_close_test.go:2784 and inspect how it waits for the sweeps in the mempool before mining. Then read the sweeper and channel arbitrator logs described in the report to trace when Bob's commit-output sweep is registered and attempted. The issue is resolved when the chosen test-side or production-side behavior avoids this timeout; maintainers need to decide which approach is appropriate.

Written by the indexing model from the issue text.

Description

test flake

Automated flake report from the lnd flake agent.

Test: itest multihop-local_preimage_claim_simple_taproot_final_zero_conf — nightly bitcoind-sqlite leg
Occurrences:

Failure: lnd_multi-hop_force_close_test.go:2784 — MineBlocksAndAssertNumTxes(1, 2) times out after ~61 s:

want 2, got 1 in mempool: [d7f3da7db2ed70cd556382ccd4c7290e440a22b63941c2704eb880c01cfdee24]
assert tx in mempool timeout

The test expects Carol's incoming-HTLC sweep and Bob's commit-output sweep in the mempool before it mines the next block. Only Carol's tx d7f3da7d... was there.

Diagnosis (from node log artifacts): a millisecond-scale deadlock between Bob's block-triggered sweeper and the test gating the next block on the mempool.

Bob is suspended and restarted right after Carol's force close confirms:

  • 03:31:44.847 Bob's ZMQ listeners up (restart)
  • 03:31:45.127 Bob's sweeper processes tip block 874: Received new block: height=874, attempt sweeping 1 inputs — at this point only the uneconomical Alice⇒Bob anchor is registered (skipped: budget 330 sat < min fee 577 sat)
  • 03:31:45.134/135 Bob's channel arbitrator finishes processing the same block and registers the commit-output sweep 35c59bf8...:3 (TaprootRemoteCommitSpendFinal) — ~8 ms after the sweeper's block-874 attempt
  • no further block arrives, because the test is waiting for Bob's sweep tx in the mempool before mining; the sweeper only attempts sweeps on new blocks, so Bob's tx is never published
  • 03:32:46 test times out (AssertNumPendingSweeps(bob, 3) had already passed at registration time, so the wait helper gives no protection)

In production the sweep would simply go out with the next block, so this is not a funds-loss bug; but whether the right fix is test-side (don't gate mining on a block-triggered sweep) or production-side (sweep attempt on registration/timer, not only on new blocks) is a maintainer call, so this stays at diagnosis. First seen; single occurrence so far.

Dominant language
Go
Stars
8.2k
Forks
2.3k
Avg merge
1d 11h
Merged PRs (30d)
103

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lightningnetwork/lnd

All issues in lightningnetwork/lnd

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.