-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
feature: saga-remove spring #6370
feature: saga-remove spring #6370
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code style need change
import java.util.Date; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.concurrent.ConcurrentHashMap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import java.util.Date; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.concurrent.ConcurrentHashMap; |
import java.util.List; | ||
import java.util.Map; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
|
||
import org.apache.seata.common.exception.FrameworkErrorCode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import org.apache.seata.common.exception.FrameworkErrorCode; | |
import java.util.Date; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.concurrent.ConcurrentHashMap; | |
import org.apache.seata.common.exception.FrameworkErrorCode; |
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import org.apache.seata.common.exception.FrameworkErrorCode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import org.apache.seata.common.exception.FrameworkErrorCode; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import org.apache.seata.common.exception.FrameworkErrorCode; |
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
import java.sql.DatabaseMetaData; | ||
import java.sql.SQLException; | ||
|
||
import org.apache.seata.common.ConfigurationKeys; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import org.apache.seata.common.ConfigurationKeys; | |
import javax.sql.DataSource; | |
import java.sql.Connection; | |
import java.sql.DatabaseMetaData; | |
import java.sql.SQLException; | |
import org.apache.seata.common.ConfigurationKeys; |
import java.io.IOException; | ||
import java.io.InputStream; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import java.io.IOException; | |
import java.io.InputStream; |
*/ | ||
package org.apache.seata.saga.engine.impl; | ||
|
||
import org.apache.seata.saga.engine.config.AbstractStateMachineConfig; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import org.apache.seata.saga.engine.config.AbstractStateMachineConfig; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import org.apache.seata.saga.engine.config.AbstractStateMachineConfig; |
import java.io.IOException; | ||
import java.io.InputStream; | ||
import java.util.Date; | ||
import java.util.Map; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.Date; | |
import java.util.Map; |
@@ -16,29 +16,27 @@ | |||
*/ | |||
package org.apache.seata.saga.statelang.parser; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.Date; | |
import java.util.Map; |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #6370 +/- ##
============================================
- Coverage 52.39% 51.06% -1.33%
- Complexity 5242 5262 +20
============================================
Files 924 934 +10
Lines 32068 33029 +961
Branches 3833 4002 +169
============================================
+ Hits 16801 16866 +65
- Misses 13611 14495 +884
- Partials 1656 1668 +12
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ⅰ. Describe what this PR did
Seata saga current is strong dependency on spring. such as:
This is not conducive to saga's multilanguage building, so I has decouple saga with spring.
To ensure code compatibility, make new module named 'seata-saga-spring' and move related classes(not modified path) to this module.
'seata-saga-tm' has spring dependency, this module is not necessary. First I removed this module and move class to 'seata-saga-spring' , I will sink TM's core capabilities ‘seata-saga-engine’ module later pr.
'seata-saga-engine-store' remove the implementation of serialization and make it more pure
'seata-saga-rm' has class named
StateMachineEngineHolder
, i moved to ‘seata-saga-engine’ module, and package name change, it`s not compatible. why ? I think it is inner use, users rarely use it.