-
Notifications
You must be signed in to change notification settings - Fork 123
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
[CBRD-23633] protocol: Prevent endless busy waiting for query execution in abnormal network circumstance #2252
Conversation
…on in abnormal network circumstance
Codecov Report
@@ Coverage Diff @@
## develop #2252 +/- ##
===========================================
- Coverage 49.19% 47.31% -1.88%
===========================================
Files 491 491
Lines 384879 384892 +13
===========================================
- Hits 189340 182112 -7228
- Misses 195539 202780 +7241
Continue to review full report at Codecov.
|
public static boolean protoVersionIsLower(int ver) { | ||
if (protocolVersion < ver){ | ||
return true; | ||
} | ||
return false; | ||
} | ||
|
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.
there is protoVersionIsUnder(). why we need it?
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.
We need a new method like as protoVersionIsUnder in order to avoid side effect.
The readability could be considered by code refactoring in the future.
…rmal network circumstance (#2219, #2259) (#2259) * [CBRD-23633] Prevent endless busy waiting for query execution in abnormal network circumstance (#2219) * [CBRD-23633] Prevent endless busy waiting for query execution in abnormal network circumstance * [CBRD-23633] Prevent endless busy waiting for query execution in abnormal network circumstance * [CBRD-23633] fix indentation * [CBRD-23633] revised code to be simple and shorten * [CBRD-23633] revised to throw JciException instead of IOException * [CBRD-23633] the omitted code added to check the function status of cas * [CBRD-23633] removed unnecessary exception code * [CBRD-23633] revised sedn_recv_msg without argument * [CBRD-23633] added code to retry once for invalid status of the cas * [CBRD-23633] revised: UInputBuffer constructor modified for compatibility (#2243) * [CBRD-23633] protocol: Prevent endless busy waiting for query execution in abnormal network circumstance (#2252)
http://jira.cubrid.org/browse/CBRD-23633
It's needed to upgrade cas protocol V8 to V9 for backward compatibility.