-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix the panic in loading state from storage
When importing clusters from a file, grow the used buffer to the correct size of the next cluster, so that it does not panic when unmarshaling it. Handle panics on the storage's save & load, so that it will never crash the discovery service when it fails. Additionally: - fix the slice growing logic when exporting clusters so that we avoid over-growing the slices for the affiliates and the endpoints. - modify the storage tests to use the real state instead of a mock, replace the assertions to ignore the order accordingly. Signed-off-by: Utku Ozdemir <[email protected]>
- Loading branch information
1 parent
10c83d2
commit 417251c
Showing
3 changed files
with
131 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters