-
Notifications
You must be signed in to change notification settings - Fork 474
Fix exception bug with executeFateOperation #6048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.1
Are you sure you want to change the base?
Fix exception bug with executeFateOperation #6048
Conversation
ThriftPropertyException was declared as thrown by FateServiceHandler.executeFateOperation but not by manager.thrift.executeFateOperation, resulting in the client receiving an exception without info about the cause.
|
Here is a test that demonstrates the problem: Before: After: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a test that demonstrates the problem:
Would it be possible to make that snippet of example code into an IT that ensures we get a nice error message back?
Wondering if there are any other places in the code where server side config validation failure does not result in a useful client side error message.
| 1:client.ThriftSecurityException sec | ||
| 2:client.ThriftTableOperationException tope | ||
| 3:client.ThriftNotActiveServiceException tnase | ||
| 4:ThriftPropertyException tpe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When changing thrift IDL in a bug fix release we need to consider how this will impact something like a 2.1.4 client and 2.1.5 sever or visa versa. Not really sure if this change will cause problems or not for those situations, do you know?
ThriftPropertyException was declared as thrown by
FateServiceHandler.executeFateOperation but not by manager.thrift.executeFateOperation, resulting in the client receiving an exception without info about the cause.
I noticed this working on #6040, where I need to throw a ThriftPropertyException and noticed I was not receiving the expected error to the client