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

feature: support batch message parallel processing #4642

Merged
merged 7 commits into from
Jul 8, 2022

Conversation

lvekee
Copy link
Contributor

@lvekee lvekee commented May 25, 2022

Ⅰ. Describe what this PR did

support batch message parallel processing

@codecov-commenter
Copy link

codecov-commenter commented May 25, 2022

Codecov Report

Merging #4642 (598dac9) into develop (dd7a729) will decrease coverage by 0.23%.
The diff coverage is 2.38%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #4642      +/-   ##
=============================================
- Coverage      48.66%   48.43%   -0.24%     
+ Complexity      4070     4048      -22     
=============================================
  Files            736      736              
  Lines          25643    25671      +28     
  Branches        3163     3167       +4     
=============================================
- Hits           12480    12434      -46     
- Misses         11825    11899      +74     
  Partials        1338     1338              
Impacted Files Coverage Δ
...c/main/java/io/seata/common/ConfigurationKeys.java 0.00% <ø> (ø)
...rpc/processor/server/ServerOnRequestProcessor.java 0.00% <0.00%> (ø)
...oconfigure/properties/server/ServerProperties.java 28.12% <25.00%> (-0.45%) ⬇️
...va/io/seata/server/console/vo/GlobalSessionVO.java 22.05% <0.00%> (-33.83%) ⬇️
...java/io/seata/server/storage/SessionConverter.java 80.00% <0.00%> (-9.10%) ⬇️
...n/src/main/java/io/seata/common/util/IdWorker.java 77.08% <0.00%> (-6.25%) ⬇️
...rage/redis/store/RedisTransactionStoreManager.java 63.17% <0.00%> (-3.69%) ⬇️
...o/seata/server/coordinator/DefaultCoordinator.java 44.89% <0.00%> (-0.41%) ⬇️
...torage/file/store/FileTransactionStoreManager.java 56.27% <0.00%> (+0.64%) ⬆️
...very/registry/zk/ZookeeperRegisterServiceImpl.java 61.76% <0.00%> (+0.73%) ⬆️

for (int i = 0; i < results.length; i++) {
final AbstractMessage subMessage = ((MergedWarpMessage) message).msgs.get(i);
results[i] = transactionMessageHandler.onRequest(subMessage, rpcContext);
List<AbstractResultMessage> results = new CopyOnWriteArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

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

add feature switch and the default value is false.

for (int i = 0; i < results.length; i++) {
final AbstractMessage subMessage = ((MergedWarpMessage) message).msgs.get(i);
results[i] = transactionMessageHandler.onRequest(subMessage, rpcContext);
List<AbstractResultMessage> results = new CopyOnWriteArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

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

add feature switch and the default value is false.

@funky-eyes funky-eyes added this to the 1.5.2 milestone May 31, 2022
@funky-eyes funky-eyes added type: feature Category issues or prs related to feature request. module/core core module labels May 31, 2022
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 merged commit 9af19d4 into apache:develop Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/core core module type: feature Category issues or prs related to feature request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants