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

[fix](mtmv)add log for resolve pending task #28999

Merged
merged 2 commits into from
Dec 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add lock for resolve pending task
  • Loading branch information
zddr committed Dec 25, 2023
commit d36ced0a4d7d6e4e7101b5d125166804ca21fed3
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,16 @@ public void before() throws JobException {

@Override
public void runTask() throws JobException {
LOG.info("mtmv task start run, taskId: {}", super.getTaskId());
MTMVJob job = (MTMVJob) getJobOrJobException();
try {
LOG.info("mtmv task get writeLock start, taskId: {}", super.getTaskId());
job.writeLock();
LOG.info("mtmv task get writeLock end, taskId: {}", super.getTaskId());
super.runTask();
} finally {
job.writeUnlock();
LOG.info("mtmv task release writeLock, taskId: {}", super.getTaskId());
}
}

Expand Down
Loading