Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

recover panic for partitions #626

Merged
merged 1 commit into from
Mar 11, 2019
Merged

recover panic for partitions #626

merged 1 commit into from
Mar 11, 2019

Conversation

kuba--
Copy link
Contributor

@kuba-- kuba-- commented Feb 27, 2019

Signed-off-by: kuba-- kuba@sourced.tech
Closes: #625

@kuba-- kuba-- added the proposal proposal for new additions or changes label Feb 27, 2019
Copy link
Contributor

@ajnavarro ajnavarro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kuba-- LGTM, but could we add a test?

@kuba--
Copy link
Contributor Author

kuba-- commented Feb 27, 2019

@ajnavarro - what we wanna test in this case?

@ajnavarro
Copy link
Contributor

Per example, a dummy partition throwing a panic. We should test that in this case the panic message is thrown as a standard error, and close is called.

@kuba--
Copy link
Contributor Author

kuba-- commented Feb 27, 2019

OK, this simple thing can be tested, but the main concern was about memory corruption etc.
So checking internally if globally everything was cleared, would be hard.

Signed-off-by: kuba-- <kuba@sourced.tech>
@kuba--
Copy link
Contributor Author

kuba-- commented Feb 27, 2019

Added TestExchangePanicRecover

@ajnavarro ajnavarro merged commit bdd663a into src-d:master Mar 11, 2019
@kuba-- kuba-- deleted the fix-625/panic branch March 11, 2019 12:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
proposal proposal for new additions or changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants