Skip to content

Conversation

@ovr
Copy link
Member

@ovr ovr commented Mar 14, 2023

Hello!

Issue: Single panic in the rw loop can break the whole processing

Example:

image

mysql> cache get “1”;
ERROR 1815 (HY000): channel closed

# another operation without panic will not be processed
mysql> cache set “1" “1”;
ERROR 1815 (HY000): channel closed

Thanks

@ovr ovr requested a review from a team as a code owner March 14, 2023 21:01
log::error!("Error during read write loop send: {}", e);
log::error!("Error during scheduling read task in loop: {}", e);

return Err(CubeError::internal(format!(
Copy link
Member Author

Choose a reason for hiding this comment

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

fast exit

e
);

return Err(CubeError::internal(format!(
Copy link
Member Author

Choose a reason for hiding this comment

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

fast exit

@ovr ovr changed the title feat(cubestore): RocksStore - panic protection for broken rw loop feat(cubestore): RocksStore - panic protection for RW loop Mar 15, 2023
@ovr ovr merged commit 1f2db32 into master Mar 15, 2023
@ovr ovr deleted the cubestore-broken-loop branch March 15, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants