Skip to content

[Improvement](writer) make DeltaWriter close idempotent to be more robust#16558

Merged
morningman merged 1 commit intoapache:masterfrom
xiaokang:delta_writer_close_idempotence
Feb 9, 2023
Merged

[Improvement](writer) make DeltaWriter close idempotent to be more robust#16558
morningman merged 1 commit intoapache:masterfrom
xiaokang:delta_writer_close_idempotence

Conversation

@xiaokang
Copy link
Contributor

@xiaokang xiaokang commented Feb 9, 2023

Proposed changes

Issue Number: releated to #16453

Problem summary

return Status::OK() instead of Status::Error<ALREADY_CLOSED>() for close() in DeltaWriter if it's already closed.

Checklist(Required)

  1. Does it affect the original behavior:
    • Yes
    • No
    • I don't know
  2. Has unit tests been added:
    • Yes
    • No
    • No Need
  3. Has document been added or modified:
    • Yes
    • No
    • No Need
  4. Does it need to update dependencies:
    • Yes
    • No
  5. Are there any changes that cannot be rolled back:
    • Yes (If Yes, please explain WHY)
    • 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...

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

clang-tidy review says "All clean, LGTM! 👍"

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

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

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Feb 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

PR approved by anyone and no changes requested.

@morningman morningman merged commit 130b359 into apache:master Feb 9, 2023
YangShaw pushed a commit to YangShaw/doris that referenced this pull request Feb 17, 2023
…bust (apache#16558)

return `Status::OK()` instead of `Status::Error<ALREADY_CLOSED>()` for close() in `DeltaWriter` if it's already closed.
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. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants