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

[BugFix] Fix the incomplete ok semantic in runPendingJob. #9160

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

Linkerist
Copy link
Contributor

@Linkerist Linkerist commented Jul 25, 2022

What type of PR is this:

  • bug
  • feature
  • enhancement
  • refactor
  • others

Which issues of this PR fixes :

Fixes #8877

Problem Summary(Required) :

The code paths will not enter the right branch when the status of countDownLatch is not ok. If BE failed to create tablet, runPendingJob will transform to next phase as normal, it's not ok. Instead this case should throw an AlterCancelException.

@wanpengfei-git
Copy link
Collaborator

[FE PR Coverage Check]

😞 fail : 0 / 1 (00.00%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 com/starrocks/alter/SchemaChangeJobV2.java 0 1 00.00% [310]

@sonarcloud
Copy link

sonarcloud bot commented Jul 25, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@decster decster left a comment

Choose a reason for hiding this comment

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

better to construct an UT for this scenario
We need more UT to cover schema change code, this is a good start

@wanpengfei-git wanpengfei-git added the Approved Ready to merge label Jul 29, 2022
@wanpengfei-git
Copy link
Collaborator

run starrocks_admit_test

@chaoyli chaoyli merged commit 8d08430 into StarRocks:main Aug 1, 2022
@Linkerist Linkerist deleted the fix_runPendingJob_incomplete_ok branch August 9, 2022 03:06
Linkerist added a commit to Linkerist/starrocks that referenced this pull request Aug 9, 2022
)

The code paths will not enter the right branch when the status of countDownLatch is not ok. If BE failed to create tablet, runPendingJob will transform to next phase as normal, it's not ok. Instead this case should throw an AlterCancelException.
Linkerist added a commit to Linkerist/starrocks that referenced this pull request Aug 9, 2022
)

The code paths will not enter the right branch when the status of countDownLatch is not ok. If BE failed to create tablet, runPendingJob will transform to next phase as normal, it's not ok. Instead this case should throw an AlterCancelException.
chaoyli pushed a commit that referenced this pull request Aug 11, 2022
The code paths will not enter the right branch when the status of countDownLatch is not ok. If BE failed to create tablet, runPendingJob will transform to next phase as normal, it's not ok. Instead this case should throw an AlterCancelException.
chaoyli pushed a commit that referenced this pull request Aug 11, 2022
The code paths will not enter the right branch when the status of countDownLatch is not ok. If BE failed to create tablet, runPendingJob will transform to next phase as normal, it's not ok. Instead this case should throw an AlterCancelException.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

insert/load error after schema change on primary table
4 participants