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

[Enhancement] Introduce TxnStateDispatcher for merge commit sync mode #55001 #55071

Merged
merged 6 commits into from
Jan 15, 2025

Conversation

banmoy
Copy link
Contributor

@banmoy banmoy commented Jan 14, 2025

Why I'm doing:

This is the second PR of merge commit sync mode optimization #54995. Introduce TxnStateDispatcher on FE side. You can see #54995 for details

What I'm doing:

Fixes #issue

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.4
    • 3.3
    • 3.2
    • 3.1
    • 3.0

@wanpengfei-git wanpengfei-git requested a review from a team January 14, 2025 10:59
@banmoy banmoy force-pushed the txn_state_dispatcher branch from dd6e11c to 2136860 Compare January 14, 2025 11:58
@banmoy banmoy force-pushed the txn_state_dispatcher branch from 2136860 to 7f09a8f Compare January 14, 2025 12:22
@ConfField(mutable = true)
public static int merge_commit_txn_state_dispatch_retry_interval_ms = 200;

public static int merge_commit_be_assigner_schedule_interval_ms = 5000;
Copy link
Contributor

Choose a reason for hiding this comment

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

Must add @confField

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment on lines +30 to +31
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

@wyb wyb enabled auto-merge (squash) January 15, 2025 07:03
Signed-off-by: PengFei Li <[email protected]>
Signed-off-by: PengFei Li <[email protected]>
Signed-off-by: PengFei Li <[email protected]>
Signed-off-by: PengFei Li <[email protected]>
Signed-off-by: PengFei Li <[email protected]>
Signed-off-by: PengFei Li <[email protected]>
auto-merge was automatically disabled January 15, 2025 07:25

Head branch was pushed to by a user without write access

@banmoy banmoy force-pushed the txn_state_dispatcher branch from d77f521 to 26e5e5a Compare January 15, 2025 07:25
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link

[Java-Extensions Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

[FE Incremental Coverage Report]

pass : 166 / 183 (90.71%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 com/starrocks/transaction/TransactionStatus.java 3 8 37.50% [78, 81, 87, 90, 92]
🔵 com/starrocks/load/batchwrite/IsomorphicBatchWrite.java 10 14 71.43% [254, 271, 272, 273]
🔵 com/starrocks/load/batchwrite/LoadExecutor.java 10 11 90.91% [269]
🔵 com/starrocks/load/batchwrite/TxnStateDispatcher.java 131 138 94.93% [68, 89, 90, 122, 123, 203, 206]
🔵 com/starrocks/common/Config.java 7 7 100.00% []
🔵 com/starrocks/load/batchwrite/BatchWriteMgr.java 3 3 100.00% []
🔵 com/starrocks/load/batchwrite/CoordinatorBackendAssignerImpl.java 2 2 100.00% []

Copy link

[BE Incremental Coverage Report]

pass : 0 / 0 (0%)

@gengjun-git gengjun-git merged commit d650aa8 into StarRocks:main Jan 15, 2025
48 of 49 checks passed
banmoy added a commit to banmoy/starrocks that referenced this pull request Jan 15, 2025
…tarRocks#55001 (StarRocks#55071)

This is the second PR of merge commit sync mode optimization StarRocks#54995. Introduce TxnStateDispatcher on FE side. You can see StarRocks#54995 for details

Signed-off-by: PengFei Li <[email protected]>
banmoy added a commit to banmoy/starrocks that referenced this pull request Jan 15, 2025
…tarRocks#55001 (StarRocks#55071)

This is the second PR of merge commit sync mode optimization StarRocks#54995. Introduce TxnStateDispatcher on FE side. You can see StarRocks#54995 for details

Signed-off-by: PengFei Li <[email protected]>
gengjun-git pushed a commit that referenced this pull request Jan 15, 2025
gengjun-git pushed a commit that referenced this pull request Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants