Skip to content

Fix Payara remote instance handling: improve error reporting and version mismatch detection#9333

Draft
jGauravGupta wants to merge 1 commit intoapache:masterfrom
jGauravGupta:FISH-11211
Draft

Fix Payara remote instance handling: improve error reporting and version mismatch detection#9333
jGauravGupta wants to merge 1 commit intoapache:masterfrom
jGauravGupta:FISH-11211

Conversation

@jGauravGupta
Copy link
Copy Markdown
Contributor

Summary

Improve handling of remote Payara instances with better error reporting and version mismatch detection.

Changes

  • Add RemoteInstanceStateListener for remote-specific warnings
  • Introduce new TaskEvents: VERSION_MISMATCH, CONNECTION_FAILED, CMD_URL_FAILED
  • Detect version mismatch and treat as SUCCESS with warning (for remote servers)
  • Replace generic exceptions with specific connection failure event
  • Add user-friendly, throttled warning notifications

Impact

  • Clearer error messages
  • No false failures for version mismatch
  • Improved remote server experience

…ion mismatch detection

Fix Payara remote instance handling: improve error reporting and version mismatch detection

- Add RemoteInstanceStateListener to handle remote server-specific warnings
- Introduce new TaskEvent types: VERSION_MISMATCH, CONNECTION_FAILED, CMD_URL_FAILED
- Improve CommandVersion logic with isVersionMismatch() for accurate comparison
- Treat version mismatch on remote servers as SUCCESS with warning instead of failure
- Update Runner to emit CONNECTION_FAILED instead of generic EXCEPTION
- Add user-facing warning messages for:
  - version mismatch
  - connection failure (host/port issues)
  - command URL construction errors
- Prevent popup spam with throttling in RemoteInstanceStateListener
@jGauravGupta jGauravGupta added the Java EE/Jakarta EE [ci] enable enterprise job label Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java EE/Jakarta EE [ci] enable enterprise job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant