Commit 3a6c5fb
fix: Throw exception on deserialization failure in getAllApplicationDescriptors
Fixes #197
Changed HazelcastStateStore.getAllApplicationDescriptors() to throw
RuntimeException when any descriptor fails to deserialize, instead of
silently skipping failed descriptors and returning incomplete data.
Changes:
- Throw RuntimeException with clear message when deserialization fails
- Include application ID in error message
- Indicate cluster state may be corrupted
- Updated existing test to expect the exception
- Ensures callers are always aware of failures
This prevents silent data loss and ensures cluster state integrity.
Consistent with getApplicationDescriptor() behavior.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent eba7a73 commit 3a6c5fb
2 files changed
Lines changed: 10 additions & 7 deletions
File tree
- jplatform-cluster/src
- main/java/org/flossware/jplatform/cluster
- test/java/org/flossware/jplatform/cluster
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
186 | 190 | | |
187 | 191 | | |
188 | 192 | | |
| |||
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
221 | 222 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 223 | + | |
| 224 | + | |
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
| |||
0 commit comments