Skip to content

[Bug] Missing error tablet list when close_wait return error - #9418

Merged
yiguolei merged 4 commits into
apache:masterfrom
pengxiangyu:fix_bug
May 7, 2022
Merged

[Bug] Missing error tablet list when close_wait return error#9418
yiguolei merged 4 commits into
apache:masterfrom
pengxiangyu:fix_bug

Conversation

@pengxiangyu

Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close#9417

Problem Summary:

In function close_wait() of delta_writer.cpp, if _flush_token->wait() return an error, it will not be returned to front.
Because in PInternalServiceImpl::tablet_writer_add_batch, _exec_env->load_channel_mgr()->add_batch(*request, response); will not return an error, but only return error_tablets. However error_tablets in close_wait() is not returned.

Checklist(Required)

  1. Does it affect the original behavior: (No)
  2. Has unit tests been added: (No)
  3. Has document been added or modified: (No)
  4. Does it need to update dependencies: (No)
  5. Are there any changes that cannot be rolled back: (No)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@pengxiangyupengxiangyu changed the title Return error tablet list when close_wait return error[Bug]Return error tablet list when close_wait return errorMay 7, 2022
@pengxiangyupengxiangyu changed the title [Bug]Return error tablet list when close_wait return error[Bug] Return error tablet list when close_wait return errorMay 7, 2022
@pengxiangyupengxiangyu changed the title [Bug] Return error tablet list when close_wait return error[Bug] Missing error tablet list when close_wait return errorMay 7, 2022
morningman
morningman previously approved these changes May 7, 2022

@morningmanmorningman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Comment threadbe/src/olap/delta_writer.cpp Outdated

// return error if previous flush failed
RETURN_NOT_OK(_flush_token->wait());
Status s = Status::OK();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Status s = Status::OK();
Status s = _flush_token->wait();
if (!s.ok()) {
...
}

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label May 7, 2022
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@morningmanmorningman added kind/fix Categorizes issue or PR as related to a bug. area/load Issues or PRs related to all kinds of load dev/1.0.1-deprecated should be merged into dev-1.0.1 branch labels May 7, 2022
@github-actionsgithub-actionsBot removed the approved Indicates a PR has been approved by one committer. label May 7, 2022
morningman
morningman previously approved these changes May 7, 2022
@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label May 7, 2022
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actionsgithub-actionsBot removed the approved Indicates a PR has been approved by one committer. label May 7, 2022
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label May 7, 2022
@yiguolei
yiguolei merged commit 7234c96 into apache:masterMay 7, 2022
@morningmanmorningman added dev/merged-1.0.1-deprecated PR has been merged into dev-1.0.1 and removed dev/1.0.1-deprecated should be merged into dev-1.0.1 branch labels May 16, 2022
@morningmanmorningman added this to the v1.1 milestone May 16, 2022
@pengxiangyu
pengxiangyu deleted the fix_bug branch May 18, 2022 02:27
starocean999 pushed a commit to starocean999/incubator-doris that referenced this pull request May 19, 2022
englefly pushed a commit to englefly/incubator-doris that referenced this pull request May 23, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.area/loadIssues or PRs related to all kinds of loaddev/merged-1.0.1-deprecatedPR has been merged into dev-1.0.1kind/fixCategorizes issue or PR as related to a bug.reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Error for close_wait() is lost for data loading

3 participants

@pengxiangyu@morningman@yiguolei