[flake]: itest watchtower client_session_deletion: expected 10 backups, got 9
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 18/100
Research direction
Start in itest/lnd_watchtower_test.go: testWatchtowerClientSessionDeletion around line 312 calls assertNumBackups, which fails at line 708 after polling for 10 backups. Trace how generateBackups drives the payments and how backup delivery is timed against the defaultTimeout. Done means finding the cause of the missing backup, or a reproduction that shows it, with a fix or a documented timing change.
Written by the indexing model from the issue text.
Description
Flaky itest: watchtower client_session_deletion — expected 10 backups, got 9
Failure signature
--- FAIL: TestLightningNetworkDaemon/tranche09/228-of-384/bitcoind/watchtower-client_session_deletion (61.31s)
lnd_watchtower_test.go:708:
Error Trace: .../itest/lnd_watchtower_test.go:708
.../itest/lnd_watchtower_test.go:312
.../lntest/harness.go:332
.../itest/lnd_test.go:143
Error: Received unexpected error:
expected 10 backups, got 9
Observed in CI run: https://github.com/lightningnetwork/lnd/actions/runs/43430735131/job/131903326304 (bitcoind backend, 2026-11-13 13:23 UTC).
What's failing
In testWatchtowerClientSessionDeletion (itest/lnd_watchtower_test.go:312), the test:
- Opens a Dave→Alice channel and makes 5 payments, which produce 2 state updates each — 10 backups total, exhausting the session (
maxUpdates = 10). - Calls
assertNumBackups(ht, dave.RPC, wallisPk, 10, false), which polls the tower client's session stats until 10 backups appear ordefaultTimeoutelapses (fmt.Errorfat lnd_watchtower_test.go:708).
It timed out with 9 backups — so this failure is in the backup generation/delivery phase, before any of the session-deletion logic the test exists to cover. One backup either never arrived, arrived too late, or a payment produced fewer than its 2 expected updates within the window.
Frequency
One observed instance so far (2026-11-13, bitcoind tranche09). Unknown rate — this issue is for tracking recurrences.
Next steps
- Watch for repeats; if this shows up again, attach the full Dave/Alice/tower logs from the harness artifacts.
- Candidate areas: timing of backup delivery vs. payment completion in
generateBackups, session negotiation timing, and whetherdefaultTimeoutis simply too tight under CI load on the bitcoind backend.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lightningnetwork/lnd
-
funding: failure logs print `<nil>` error and zero channel IDPossibly taken @litbot-9000 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
lightningnetwork/lnd#11676 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 85/100
lightningnetwork/lnd#11674 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lightningnetwork/lnd#11672 ·
Maintainers usually reply within 1 day
-
test flake
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
lightningnetwork/lnd#11663 · 1 comment ·
Maintainers usually reply within 1 day
-
[flake]: lnwallet/test/bitcoind.TestLightningWalletBitcoindRPCPolling/spend_unconfirmed_outputsOpentest flake
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
lightningnetwork/lnd#11642 · 1 comment ·
Maintainers usually reply within 1 day
All issues in lightningnetwork/lnd
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
containers/gvisor-tap-vsock#796 ·
Maintainers usually reply within 2 days
-
external needs:triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
celestiaorg/celestia-node#5448 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
[Bug]: Azure SAS signing uses local time instead of UTC, shifting validity window on non-UTC hostsPossibly taken @huanghaoyuanhhy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zilliztech/milvus-backup#1418 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
projectdiscovery/nuclei#8423 ·
Maintainers usually reply within 1 day