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

refactor: executor class duplicate code #1448

Merged
merged 3 commits into from
Aug 13, 2019

Conversation

andyqian
Copy link
Contributor

Ⅰ. Describe what this PR did

remove duplicate code

@codecov-io
Copy link

codecov-io commented Aug 12, 2019

Codecov Report

Merging #1448 into develop will increase coverage by 0.21%.
The diff coverage is 7.36%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1448      +/-   ##
=============================================
+ Coverage      45.43%   45.65%   +0.21%     
  Complexity      1664     1664              
=============================================
  Files            345      345              
  Lines          12708    12641      -67     
  Branches        1611     1588      -23     
=============================================
- Hits            5774     5771       -3     
+ Misses          6287     6222      -65     
- Partials         647      648       +1
Impacted Files Coverage Δ Complexity Δ
...ta/rm/datasource/exec/SelectForUpdateExecutor.java 0% <0%> (ø) 0 <0> (ø) ⬇️
.../rm/datasource/exec/BaseTransactionalExecutor.java 17.39% <0%> (-16.51%) 6 <0> (ø)
...ource/sql/druid/oracle/OracleUpdateRecognizer.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...va/io/seata/rm/datasource/exec/UpdateExecutor.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...ource/sql/druid/oracle/OracleDeleteRecognizer.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...va/io/seata/rm/datasource/exec/DeleteExecutor.java 0% <0%> (ø) 0 <0> (ø) ⬇️
.../druid/oracle/OracleSelectForUpdateRecognizer.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...rm/datasource/sql/druid/MySQLUpdateRecognizer.java 62.29% <100%> (ø) 10 <0> (ø) ⬇️
...rm/datasource/sql/druid/MySQLDeleteRecognizer.java 74.19% <100%> (ø) 6 <0> (ø) ⬇️
...urce/sql/druid/MySQLSelectForUpdateRecognizer.java 68.18% <100%> (ø) 7 <0> (ø) ⬇️
... and 3 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 4472d9b...f462bce. Read the comment docs.

break;
}
} catch (LockConflictException lce) {
conn.rollback(sp);
Copy link
Member

Choose a reason for hiding this comment

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

should in while block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should in while block?

done

@andyqian andyqian changed the title remove duplicate code refactor executor class duplicate code Aug 13, 2019
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

@slievrly slievrly changed the title refactor executor class duplicate code refactor: executor class duplicate code Aug 13, 2019
Copy link
Contributor

@ujjboy ujjboy left a comment

Choose a reason for hiding this comment

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

LGTM

@slievrly slievrly merged commit 9c9261d into apache:develop Aug 13, 2019
@andyqian andyqian deleted the feature/remove_duplicate_code branch August 14, 2019 15:28
@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