apache / apache/incubator-seata

二阶段提交打印大量日志

Open
#4,615 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

我有个下单业务,会批量修改产品库存,每次执行修改库存时,都会开启一个本地事务分支,二阶段提交时每个分支就会打印3条提交成功的info日志Branch commit result: PhaseTwo_Committed,如果我订单中有100个产品,日志数量太多了,这样是正常情况吗,或者有简短日志的配置吗?

使用@Transactional倒是可以让这些业务使用一个分支brand_id,减少打印数量,但感觉比较冗余

Contributor guide

Open the contributing guide

Research direction

Start by tracing where the `Branch commit result: PhaseTwo_Committed` message is emitted during second-phase commits. Check whether Seata exposes a log-level or aggregation setting for this path; done means the behavior is explained and, if appropriate, a documented or tested way to reduce the repeated messages is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.