[flake]: invoices.TestInvoiceRegistry/MppPaymentWithOverpayment_Postgres

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, go, postgresql

Research direction

Start with invoiceregistry_test.go:2408 and test_utils_test.go:400, then compare the postgres fixture behavior with issue #11641 and the change in PR #11638. Reproduce the unit-race timeout and trace the blocked migration read and StopContainer call; done means the fixture no longer hangs under this test and the relevant test passes reliably.

Written by the indexing model from the issue text.

Description

test flake

Automated flake report from the lnd flake agent.

Test: invoices.TestInvoiceRegistry/MppPaymentWithOverpayment_Postgres — unit-race leg
Occurrences:

Failure: the package's 1 m test watchdog (test_utils_test.go:400) fired. The test goroutine was blocked in the postgres fixture, not in invoice-registry logic:

NewTestPostgresDB -> ApplyAllMigrations -> pgx socket read (invoiceregistry_test.go:2408 -> 666)

A second goroutine was simultaneously blocked in a dockertest StopContainer HTTP call. This is the same watchdog class as #11641 (MultipleSetHeightExpiry_Postgres), where the fixture's postgres container hangs and the watchdog aborts the test.

Note: distinct failure mode from the MppPaymentWithOverpayment_KV occurrence in run 45472518444 (postgres connection-limit pressure, fixed on master by cbfd0e482). PR #11638 makes the invoices postgres fixture lazy, which may reduce exposure here. Single occurrence so far; tracking.

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.