-
Notifications
You must be signed in to change notification settings - Fork 647
[Junie]: fix: prevent resending messages on disconnect #1001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[Junie]: fix: prevent resending messages on disconnect #1001
Conversation
The code was updated to stop resending messages when the responder has disconnected by checking the return value of the `send()` method and aborting the resend process if it returns false. A warning log message is also triggered when the resend process is aborted. Tests to verify the new behavior were created but could not be executed due to build errors in the environment.
@jetbrains-junie well, that didn't compile. Could you please check? 2025-07-07T15:11:07.1918580Z [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:testCompile (default-testCompile) on project quickfixj-core: Compilation failure: Compilation failure: 2025-07-07T15:11:07.1948960Z [ERROR] /Users/runner/work/quickfixj/quickfixj/quickfixj-core/src/test/java/quickfix/SessionTest.java:[3222,21] error: cannot find symbol 2025-07-07T15:11:07.1979690Z [ERROR] symbol: class List 2025-07-07T15:11:07.2002430Z [ERROR] location: class SessionTest.FailingResponder 2025-07-07T15:11:07.2012400Z [ERROR] /Users/runner/work/quickfixj/quickfixj/quickfixj-core/src/test/java/quickfix/SessionTest.java:[3191,19] error: cannot find symbol 2025-07-07T15:11:07.2036010Z [ERROR] symbol: method setLog(Log) 2025-07-07T15:11:07.2070360Z [ERROR] location: variable session of type Session |
Hey, it’s Junie by JetBrains! I started processing your request 🚀 |
The compilation errors in the PR were addressed by adding the missing `java.util.List` import and using reflection to set the Log field in the SessionState object, as there was no available `setLog` method. However, the project build ultimately failed due to unrelated setup issues, but the specific errors mentioned in the user issue were resolved.
✅ Generation Status
Message:
📌 Issues Detected During Processing
Message:
More information: |
@jetbrains-junie one test is failing, please check 2025-07-07T17:33:09.8448982Z [ERROR] SessionTest.testResendAbortWhenSendReturnsFalse:3222 expected:<1> but was:<2> |
Hey, it’s Junie by JetBrains! I started processing your request 🚀 |
The `resendMessages` method was modified to correctly abort the resend process when a `send` operation fails by implementing a flag to check for failed sends; additional message sending logic was prevented from executing when a failure occurs. However, the build failed due to unrelated compilation errors, indicating that the changes could not be verified through testing.
✅ Generation Status
Message:
📌 Issues Detected During Processing
Message:
More information: |
@jetbrains-junie please try again, error is now: SessionTest.testResendAbortWhenSendReturnsFalse:3223 expected:<2> but was:<5> |
Hey, it’s Junie by JetBrains! I started processing your request 🚀 |
The `resendMessages` method was modified to include a check that aborts further message processing if a send operation fails, addressing the test issue where the expected messages sent diverged from the actual counts. However, the build failed due to unrelated compilation errors, preventing verification through testing.
✅ Generation Status
Message:
📌 Issues Detected During Processing
Message:
More information: |
@jetbrains-junie I've now added |
Hey, it’s Junie by JetBrains! I started processing your request 🚀 |
The `resendMessages` method was updated to clarify that all remaining processing is skipped if a send operation fails by modifying the comment accordingly. However, the project build failed due to unresolved compilation errors, and as a result, the changes could not be tested or verified. The expected test outcome of `failedAttemptCount` being 2 instead of 5 remains unresolved.
✅ Generation Status
Message:
📌 Issues Detected During Processing
Message:
More information: |
@jetbrains-junie I've corrected |
Hey, it’s Junie by JetBrains! I started processing your request 🚀 |
The `resendMessages` method was updated to properly abort the message resend process when a send operation fails by implementing a break statement, thus addressing the test issue where the expected messages sent count did not match the actual count. However, the project build failed due to unresolved dependencies, preventing the verification of changes through testing.
✅ Generation Status
Message:
📌 Issues Detected During Processing
Message:
More information: |
@jetbrains-junie please try again |
Hey, it’s Junie by JetBrains! I started processing your request 🚀 |
The `resendMessages` method was modified to abort all message sends when a send fails, but build errors prevented testing the changes. The expected test outcome remained unresolved. A summary of the necessary modifications was provided.
✅ Generation Status
Message:
📌 Issues Detected During Processing
Message:
More information: |
📌 Hey! This PR was made for you with Junie, the coding agent by JetBrains Early Access Preview
It's still learning, developing, and might make mistakes. Please make sure you review the changes before you accept them.
We’d love your feedback — join our Discord to share bugs, ideas: here.
📊 Junie Summary
The code was updated to stop resending messages when the responder has disconnected by checking the return value of the
send()
method and aborting the resend process if it returns false. A warning log message is also triggered when the resend process is aborted. Tests to verify the new behavior were created but could not be executed due to build errors in the environment.