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 : separate the different transaction pattern processing logic #2134

Merged
merged 13 commits into from
Feb 4, 2020

Conversation

ph3636
Copy link
Contributor

@ph3636 ph3636 commented Jan 4, 2020

Ⅰ. Describe what this PR did

Ⅱ. Does this pull request fix one issue?

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented Jan 4, 2020

Codecov Report

Merging #2134 into develop will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2134      +/-   ##
=============================================
+ Coverage      53.04%   53.05%   +<.01%     
  Complexity      2518     2518              
=============================================
  Files            488      488              
  Lines          15341    15341              
  Branches        1749     1749              
=============================================
+ Hits            8138     8139       +1     
+ Misses          6426     6425       -1     
  Partials         777      777
Impacted Files Coverage Δ Complexity Δ
.../java/io/seata/core/context/ContextCoreLoader.java 100% <100%> (ø) 1 <1> (ø) ⬇️
...in/java/io/seata/server/session/GlobalSession.java 84% <0%> (ø) 72% <0%> (ø) ⬇️
...java/io/seata/spring/tcc/TccActionInterceptor.java 13.15% <0%> (ø) 2% <0%> (ø) ⬇️
...n/java/io/seata/rm/datasource/ConnectionProxy.java 26.05% <0%> (ø) 12% <0%> (ø) ⬇️
...a/io/seata/core/rpc/netty/AbstractRpcRemoting.java 9.35% <0%> (ø) 3% <0%> (ø) ⬇️
...ing/annotation/GlobalTransactionalInterceptor.java 10% <0%> (ø) 2% <0%> (ø) ⬇️
...in/java/io/seata/server/session/BranchSession.java 78.1% <0%> (ø) 44% <0%> (ø) ⬇️
...va/io/seata/core/store/db/LogStoreDataBaseDAO.java 55.92% <0%> (ø) 21% <0%> (ø) ⬇️
...very/registry/zk/ZookeeperRegisterServiceImpl.java 63.11% <0%> (+0.81%) 24% <0%> (ø) ⬇️
...ain/java/io/seata/config/ConfigurationFactory.java 53.06% <0%> (ø) 4% <0%> (ø) ⬇️
... and 21 more

@long187
Copy link
Contributor

long187 commented Jan 6, 2020

Are all three models regression tested with unit tests?

@ph3636
Copy link
Contributor Author

ph3636 commented Jan 6, 2020

Are all three models regression tested with unit tests?

Yes, I can add more if it's not enough

Copy link
Contributor

@long187 long187 left a comment

Choose a reason for hiding this comment

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

I have cloned you branch and tested SagaCore. It works OK

@ph3636
Copy link
Contributor Author

ph3636 commented Jan 7, 2020

I have cloned you branch and tested SagaCore. It works OK

ok,thanks

@zjinlei zjinlei added this to the 1.1.0 milestone Jan 22, 2020
@zjinlei
Copy link
Contributor

zjinlei commented Jan 23, 2020

please resolve conflicts

@zjinlei zjinlei added the status: merge-conflict Category prs with merge conflict. label Jan 24, 2020
@zjinlei zjinlei removed the status: merge-conflict Category prs with merge conflict. label Feb 4, 2020
* @return the core
*/
public AbstractCore getCore(BranchType branchType) {
AbstractCore rm = coreMap.get(branchType);
Copy link
Member

Choose a reason for hiding this comment

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

What does rm mean?

@slievrly
Copy link
Member

slievrly commented Feb 4, 2020

@ph3636 DefaultCoordinatorTest test failed.

this.messageSender = messageSender;
}

public abstract BranchType getBranchType();
Copy link
Member

Choose a reason for hiding this comment

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

getHandleBranchType

@ph3636
Copy link
Contributor Author

ph3636 commented Feb 4, 2020

@ph3636 DefaultCoordinatorTest test failed.

done

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 : Server_transaction Refactor : separate the different transaction pattern processing logic Feb 4, 2020
@slievrly slievrly changed the title Refactor : separate the different transaction pattern processing logic refactor : separate the different transaction pattern processing logic Feb 4, 2020
@slievrly slievrly merged commit 738bf70 into apache:develop Feb 4, 2020
@ph3636 ph3636 deleted the RefactorServer_transaction branch March 11, 2020 10:32
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

8 participants