Skip to content

go.mod: bump pool to v0.7.1-beta#1314

Merged
ViktorT-11 merged 2 commits into
masterfrom
bump-pool-v0.7.1-beta
May 25, 2026
Merged

go.mod: bump pool to v0.7.1-beta#1314
ViktorT-11 merged 2 commits into
masterfrom
bump-pool-v0.7.1-beta

Conversation

@Roasbeef

Copy link
Copy Markdown
Member

In this PR, we bump the embedded pool dependency up to v0.7.1-beta. The motivation is a single auctioneer reliability fix that follows the same severity class as the EOF reconnect work we pulled in for v0.7.0-beta.

The fix is for HandleServerShutdown (lightninglabs/pool#521). Before, when the trader's subscription stream went down and the client tried to re-subscribe every account against the new stream, the loop bailed on the first per-account failure. Because the accounts were drained out of the in-memory subscribedAccts map before the loop ran, any account after the failing one in iteration order was silently lost. The trader looked healthy locally, but the auctioneer saw it as offline and filtered its orders at matching time until the process restarted. The symptom was also intermittent in practice, since Go's randomized map iteration meant the set of "survivors" changed between runs.

The new behavior is best-effort: per-account errors are logged with the trader key for operator visibility, every account still gets a re-subscribe attempt against the new stream, and the aggregated error is returned to the caller via errors.Join so the rpcserver still sees a non-nil signal when anything went wrong.

The diff itself is minimal: just go.mod/go.sum and a one-bullet entry under ### Pool in the upcoming 0.17.0 release notes.

Test plan

  • go build . on the main lit module is unaffected by the bump (pre-existing perms/mock.go lnd-API breakage is in a separate sub-module).
  • CI passes.

In this commit, we bump the embedded pool dependency to v0.7.1-beta,
which pulls in the partial re-subscribe fix from lightninglabs/pool#521.
Before, a single per-account failure in HandleServerShutdown would bail
the whole re-subscribe loop and silently leave the remaining accounts
un-subscribed (and filtered as offline at matching time) until the
trader process restarted.

The loop is now best-effort: per-account errors are logged with the
trader key, every account still gets a re-subscribe attempt, and the
aggregated error is returned to the caller via errors.Join so we don't
lose the signal.
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the pool dependency to address a reliability issue in the auctioneer client. The change ensures that account re-subscription attempts are more robust, preventing silent failures where accounts could be dropped during reconnection logic.

Highlights

  • Dependency Update: Updated the embedded pool dependency from v0.7.0-beta to v0.7.1-beta.
  • Reliability Improvement: Includes a fix for HandleServerShutdown to prevent silent account loss during re-subscription attempts after stream interruptions.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the github.com/lightninglabs/pool dependency from version v0.7.0-beta to v0.7.1-beta in go.mod and go.sum. I have no feedback to provide.

@ViktorT-11 ViktorT-11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM 🔥

dying on EOF, jittered reconnect backoff, and a fix for stream
handling in the pending-open-channel consumer.

* Updated [`pool` to

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: We usually remove the old upgrade entry in the release-notes for the sub-servers, if there's a newer one available. I.e. this should replace the above pool entry, and not be added separately.

I can edit this in my upcoming release PRs though, so ok to leave it as is if you want to.

@ViktorT-11 ViktorT-11 merged commit 3e5f36c into master May 25, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants