[flake]: itest multihop-local_preimage_claim_simple_taproot_final_zero_conf

Aperta
#11,646 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
8.2k
Fork
2.3k
Merge medio
1g 11h
PR unite (30g)
103

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lightningnetwork/lnd

Tutte le issue di lightningnetwork/lnd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.