Skip to content
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

Merged
merged 1 commit into from
Apr 20, 2020

Conversation

beyondykk9
Copy link
Contributor

http://jira.cubrid.org/browse/CBRD-23633

It's needed to upgrade cas protocol V8 to V9 for backward compatibility.

@codecov-io
Copy link

codecov-io commented Apr 20, 2020

Codecov Report

Merging #2252 into develop will decrease coverage by 1.87%.
The diff coverage is n/a.

Impacted file tree graph

@@             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     
Impacted Files Coverage Δ
src/object/object_printer.hpp 0.00% <0.00%> (-100.00%) ⬇️
src/object/object_print_util.cpp 0.00% <0.00%> (-100.00%) ⬇️
src/object/object_printer.cpp 0.00% <0.00%> (-41.89%) ⬇️
src/object/class_description.cpp 0.00% <0.00%> (-41.10%) ⬇️
src/parser/xasl_regu_alloc.hpp 11.11% <0.00%> (-22.23%) ⬇️
src/parser/parser_support.c 34.14% <0.00%> (-14.81%) ⬇️
src/parser/xasl_generation.c 49.24% <0.00%> (-14.42%) ⬇️
src/parser/xasl_regu_alloc.cpp 81.78% <0.00%> (-12.56%) ⬇️
src/base/string_buffer.hpp 55.55% <0.00%> (-11.12%) ⬇️
src/parser/semantic_check.c 51.02% <0.00%> (-9.57%) ⬇️
... and 82 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0638ec4...098e08f. Read the comment docs.

Comment on lines +2065 to +2071
public static boolean protoVersionIsLower(int ver) {
if (protocolVersion < ver){
return true;
}
return false;
}

Copy link
Member

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?

Copy link
Contributor Author

@beyondykk9 beyondykk9 Apr 20, 2020

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.

@beyondykk9 beyondykk9 added this to the damson milestone Apr 20, 2020
@beyondykk9 beyondykk9 merged commit cd59b27 into CUBRID:develop Apr 20, 2020
@beyondykk9 beyondykk9 self-assigned this Apr 21, 2020
beyondykk9 added a commit that referenced this pull request Apr 21, 2020
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants