-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
#751 add event bus mechanism and apply it in tc #768
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #768 +/- ##
==========================================
Coverage ? 43.91%
Complexity ? 1447
==========================================
Files ? 253
Lines ? 10262
Branches ? 1332
==========================================
Hits ? 4507
Misses ? 5173
Partials ? 582
Continue to review full report at Codecov.
|
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.
Is th pull request for monitoring ?There are two more points to consider:
1.server shutdown or close ,the data will be lost.Whether the data should be persisted and split by day?
2.Whether retrycommit, retryRollback and timeout need to monitored
server/src/test/java/com/alibaba/fescar/server/coordinator/TransactionEventListener.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/alibaba/fescar/core/event/GuavaEventBus.java
Outdated
Show resolved
Hide resolved
|
|
6f8e141
to
83aa6a7
Compare
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
} | ||
|
||
@Override | ||
public void register(Object object) { |
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.
maybe Event should be a custom interface, not object, we can limit the type of event。
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.
Good suggestion, done
4456284
to
8527afe
Compare
LGTM |
@zhengyangyong there are errors need to be solved. |
Signed-off-by: zhengyangyong <yangyong.zheng@qq.com>
…ltCoordinator to DefaultCore in order to ensure retrycommit and retryRollback;add timeout event in DefaultCoordinator Signed-off-by: zhengyangyong <yangyong.zheng@qq.com>
Signed-off-by: zhengyangyong <yangyong.zheng@qq.com>
… of event Signed-off-by: zhengyangyong <yangyong.zheng@qq.com>
b265795
to
065b858
Compare
Signed-off-by: zhengyangyong <yangyong.zheng@qq.com>
065b858
to
89c5ec0
Compare
import io.seata.core.event.Event; | ||
import io.seata.core.model.GlobalStatus; | ||
|
||
public class GlobalTransactionEvent implements Event { |
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.
Is it more appropriate to move to the core module?
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.
yes,you are right, Done
@@ -0,0 +1,5 @@ | |||
#reduce delay for test |
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.
Is it necessary?
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.
yes ,this file is for test (in test resources folder) in order to reduce asyn-committing-retry-delay (default is 30 second) and timeout-retry-delay (default is 30 second) , then we can fast check event with TimeoutRollbacking
status come from core.
@@ -0,0 +1,7 @@ | |||
config { |
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.
Is it necessary?
It seems that it is not consistent with the configuration file of the main project.
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.
same as above
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.
For the new file, add the author info.
…m server to core module Signed-off-by: zhengyangyong <yangyong.zheng@qq.com>
All new file had add author info |
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
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
Signed-off-by: zhengyangyong yangyong.zheng@qq.com
#751