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

bugfix:the buffer may cause overflows when sql statement is long #1148

Merged
merged 8 commits into from
Jun 4, 2019
Merged

bugfix:the buffer may cause overflows when sql statement is long #1148

merged 8 commits into from
Jun 4, 2019

Conversation

kezhenxu94
Copy link
Member

Ⅰ. Describe what this PR did

Due to the java.nio.ByteBuffer can not grow dynamically, its size is hardcoded now, this patch replaces java.nio.ByteBuffer with io.netty.buffer.ByteBuf, which can grow on demand.

Ⅱ. Does this pull request fix one issue?

fixes issue #976

Ⅲ. Why don't you add test cases (unit test/integration test)?

There is already tests upon this method.

Ⅳ. Describe how to verify it

CI passes

Ⅴ. Special notes for reviews

null

@codecov-io
Copy link

codecov-io commented Jun 2, 2019

Codecov Report

Merging #1148 into develop will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1148      +/-   ##
=============================================
- Coverage      41.97%   41.96%   -0.01%     
  Complexity      1385     1385              
=============================================
  Files            246      246              
  Lines          10240    10239       -1     
  Branches        1343     1343              
=============================================
- Hits            4298     4297       -1     
  Misses          5378     5378              
  Partials         564      564
Impacted Files Coverage Δ Complexity Δ
...java/io/seata/core/protocol/MergedWarpMessage.java 72.09% <100%> (-0.64%) 8 <2> (ø)

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 f5e436b...119d8d9. Read the comment docs.

Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

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

LGTM.

@xingfudeshi xingfudeshi changed the title [SEATA-976] Fix bug that the buffer overflows when sql statement is long bugfix:the buffer may cause overflows when sql statement is long Jun 3, 2019
@leizhiyuan leizhiyuan self-requested a review June 3, 2019 23:37
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM

@xingfudeshi xingfudeshi merged commit 3428623 into apache:develop Jun 4, 2019
@kezhenxu94 kezhenxu94 deleted the gh/976 branch June 4, 2019 07:22
@leizhiyuan leizhiyuan added this to the 0.7.0 milestone Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants