[KYUUBI #4111] JDBC ExecuteStatement operation should contain operationLog#4113
[KYUUBI #4111] JDBC ExecuteStatement operation should contain operationLog#4113yikf wants to merge 1 commit intoapache:masterfrom yikf:KYUUBI-4111
Conversation
|
cc @zhaomin1423 |
|
Hmm, isn't the error handled when an operation log is created? |
|
the original intentions are:
|
2 can't work well now. |
|
Yeah, 2 can not work well; End-user can fetch logs through |
|
After this change, we can not determine whether the log is failed or just not implemented |
This is by contract, these OperationResouce's clients shall be able to benefit from the current implementation too. |
Good point, Have a question is which of the following designs is more reasonable:
If 1, we can handle whether the log is failed or just not implemented;
What are the benefits? (sorry for I didn't know the previous design ) : ) |
The benefits are what I described above for distinguishing errors with unimplemented. The thrift and rest calls have no differences on both the log API and the backend operations. It's up to much higher level APIs(such as JDBC), or end-users, to do the error handling. Currently, the meta operations are no operation logs and are executed synchronously. The rest call can also invoke these operations synchronously, which makes it has no chance to call log fetching |
|
I fix this issue at jdbc engine side, please take a look if you find a moment, thanks @yaooqinn @turboFei @zhaomin1423 |
|
thanks, merged to master |
Why are the changes needed?
Close #4111, JDBC ExecuteStatement operation should contain operationLog
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before make a pull request