Skip to content

Conversation

zhaohaidao
Copy link
Contributor

to resolve #2607

@tillrohrmann tillrohrmann self-requested a review March 29, 2025 22:32
Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Thanks a lot for creating this PR @zhaohaidao. The solution to introduce a new type looks really good to me :-) I left a few suggestions how we could extend it a little bit more. Once this is done, I believe that we can merge this PR.

@@ -166,7 +167,7 @@ fn to_read_err(status: Status) -> ReadError {

fn to_write_err(status: Status) -> WriteError {
match status.code() {
Code::FailedPrecondition => WriteError::FailedPrecondition(status.to_string()),
Code::FailedPrecondition => WriteError::FailedPrecondition(SimpleStatus::from(status).to_string()),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use SimpleStatus for the ReadError above as well? We probably need to let SimpleStatus implement Error to make it work. There are also a few other places where it could be beneficial (e.g. NodeOperationError or the StatusError).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense.

@zhaohaidao
Copy link
Contributor Author

Thanks a lot for creating this PR @zhaohaidao. The solution to introduce a new type looks really good to me :-) I left a few suggestions how we could extend it a little bit more. Once this is done, I believe that we can merge this PR.

@tillrohrmann Hi, all comments have been addressed. PLAT

@tillrohrmann tillrohrmann self-requested a review April 5, 2025 09:52
Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Thanks a lot for updating the PR @zhaohaidao. It looks really good. I left one minor comment. If you can address this comment and rebase onto the latest main, then I'll be able to merge this PR :-)

@zhaohaidao
Copy link
Contributor Author

Thanks a lot for updating the PR @zhaohaidao. It looks really good. I left one minor comment. If you can address this comment and rebase onto the latest main, then I'll be able to merge this PR :-)

@tillrohrmann comments are addressed. PTAL

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Thanks a lot for fixing this issue @zhaohaidao. This is a really good improvement. The changes look good to me :-) Merging it once GHA gives green light.

@tillrohrmann tillrohrmann merged commit dcba44c into restatedev:main Apr 10, 2025
28 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't log details and metadata when logging Status error
2 participants