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: missing some length in GlobalSession and FileTransactionStoreManager #1581

Merged
merged 4 commits into from
Sep 5, 2019

Conversation

AjaxXu
Copy link
Contributor

@AjaxXu AjaxXu commented Sep 3, 2019

Ⅰ. Describe what this PR did

fix missing length in GlobalSession and FileTransactionStoreManager

Ⅱ. Does this pull request fix one issue?

No.

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

No need.

Ⅳ. Describe how to verify it

By logical

Ⅴ. Special notes for reviews

BUG

@codecov-io
Copy link

codecov-io commented Sep 3, 2019

Codecov Report

Merging #1581 into develop will increase coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1581      +/-   ##
=============================================
+ Coverage      46.44%   46.46%   +0.02%     
- Complexity      1713     1714       +1     
=============================================
  Files            350      350              
  Lines          12829    12829              
  Branches        1616     1616              
=============================================
+ Hits            5958     5961       +3     
+ Misses          6224     6223       -1     
+ Partials         647      645       -2
Impacted Files Coverage Δ Complexity Δ
...in/java/io/seata/server/session/GlobalSession.java 84.61% <ø> (ø) 67 <0> (ø) ⬇️
...rver/store/db/DatabaseTransactionStoreManager.java 67.69% <0%> (ø) 22 <0> (ø) ⬇️
...server/store/file/FileTransactionStoreManager.java 47.38% <0%> (+0.34%) 19% <0%> (ø) ⬇️
...o/seata/server/coordinator/DefaultCoordinator.java 51.37% <0%> (+0.91%) 27% <0%> (+1%) ⬆️

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 0cd1d98...4a38453. Read the comment docs.

@@ -416,9 +416,9 @@ private boolean writeDataFile(byte[] bs) {
}
ByteBuffer byteBuffer = null;

if (bs.length > MAX_WRITE_BUFFER_SIZE) {
if (bs.length + INT_BYTE_SIZE > MAX_WRITE_BUFFER_SIZE) {
Copy link
Member

Choose a reason for hiding this comment

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

revert this file change,will duplicate with https://github.com/seata/seata/pull/1552/files

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

Copy link
Contributor

@l81893521 l81893521 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zjinlei zjinlei left a comment

Choose a reason for hiding this comment

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

LGTM

@zjinlei zjinlei merged commit 6c7df96 into apache:develop Sep 5, 2019
@AjaxXu AjaxXu deleted the 20190903 branch September 9, 2019 08:27
@wangliang181230 wangliang181230 added this to the 0.8.1 milestone Aug 9, 2021
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