slfan1989 opened a new pull request, #2012:
URL: https://github.com/apache/auron/pull/2012
### Which issue does this PR close?
Closes #2011
### Rationale for this change
The History Server plugin currently crashes during initialization when the
`AuronBuildInfoUIData` record is missing from the KVStore. This causes
applications without BuildInfo events to either fail plugin initialization or
show no Auron tab.
### What changes are included in this PR?
1. **AuronSQLAppStatusStore**: Changed `buildInfo()` to return
`Option[AuronBuildInfoUIData]`, catching `NoSuchElementException` and other
exceptions to return `None` instead of throwing
2. **AuronSQLHistoryServerPlugin**: Removed the null check and always create
the Auron tab, letting the UI handle empty state
3. **AuronAllExecutionsPage**: Added `buildInfoSummary()` method to handle
`Option[AuronBuildInfoUIData]`:
- `Some`: displays BuildInfo table as before
- `None`: shows user-friendly message "Auron build information is not
available for this application."
### Are there any user-facing changes?
Yes. When BuildInfo is not available:
- Before: Plugin initialization fails or no Auron tab appears
- After: Auron tab displays with a clear warning message explaining
BuildInfo is unavailable
### How was this patch tested?
- Existing unit tests pass
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]