Fixing porter can strand parcels until daemon restart#2132
Conversation
Summary of ChangesHello, 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 addresses a bug where sweep parcels could become stranded in the chain porter if a failure occurred after the initial response was sent to the caller. It introduces a robust retry mechanism for specific post-delivery states and optimizes how sweeper-originated transactions interact with the porter to prevent unnecessary broadcasts. Highlights
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 AssistThe 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
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 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
|
214b5d6 to
b7633c0
Compare
There was a problem hiding this comment.
Code Review
This pull request introduces a retry mechanism for the chain porter to handle recoverable post-delivery failures, such as those occurring during transaction confirmation or proof transfer. It also refactors the state machine to ensure local addresses are imported even when anchor transaction broadcasts are skipped. Review feedback highlighted a potential deadlock in the advanceState goroutine when handling background parcels with unbuffered error channels. Other improvements suggested include clearing retry bookkeeping upon permanent failure to prevent memory leaks and implementing a maximum retry limit to avoid infinite loops.
97bc49d to
e1b2466
Compare
e1b2466 to
76f2208
Compare
Should close #2120