Repository navigation
Commit 867a866
Address code review: simplify exception handling and warn on cleanup failures
- Replace catch (Exception e) + instanceof chain with catch (StartException | RuntimeException e) + throw e, using Java's precise rethrow so each exception type is raised as-is with no wrapping and no loss of suppressed exceptions.
- Add LOGGER.failedToCleanupGrpcResources (WFLYGRPC-0013, WARN) to runSafely() so exceptions swallowed during stop() are visible in the server log rather than silently discarded.
- Fix comment typo: 'service sof' -> 'services of'.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 82efd78 commit 867a866
2 files changed
Lines changed: 9 additions & 6 deletions
File tree
- subsystem/src/main/java/org/wildfly/extension/grpc
- _private
- deployment
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 72 | + | |
76 | 73 | | |
77 | 74 | | |
78 | 75 | | |
| |||
97 | 94 | | |
98 | 95 | | |
99 | 96 | | |
| 97 | + | |
| 98 | + | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
| |||
0 commit comments