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

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

Merged
merged 4 commits into from
May 7, 2022

Conversation

pengxiangyu
Copy link
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...

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

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -321,7 +322,13 @@ Status DeltaWriter::close_wait(google::protobuf::RepeatedPtrField<PTabletInfo>*
}

// return error if previous flush failed
RETURN_NOT_OK(_flush_token->wait());
Status s = Status::OK();
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
Status s = Status::OK();
Status s = _flush_token->wait();
if (!s.ok()) {
...
}

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label May 7, 2022
@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2022

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

@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2022

PR approved by anyone and no changes requested.

@morningman morningman 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-actions github-actions bot 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-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label May 7, 2022
@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2022

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

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label May 7, 2022
@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2022

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

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label May 7, 2022
@yiguolei yiguolei merged commit 7234c96 into apache:master May 7, 2022
@morningman morningman 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
@morningman morningman added this to the v1.1 milestone May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. area/load Issues or PRs related to all kinds of load dev/merged-1.0.1-deprecated PR has been merged into dev-1.0.1 kind/fix Categorizes 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