Skip to content

[fix](cloud) Check instance_id valid when use cloud_unique_id degrade format - #43253

Merged
dataroaring merged 6 commits into
apache:masterfrom
deardeng:add-check
Nov 12, 2024
Merged

[fix](cloud) Check instance_id valid when use cloud_unique_id degrade format#43253
dataroaring merged 6 commits into
apache:masterfrom
deardeng:add-check

Conversation

@deardeng

@deardengdeardeng commented Nov 5, 2024

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Check List (For Committer)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No colde files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.
  • Release note

    None

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@doris-robot

Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@github-actions

Copy link
Copy Markdown
Contributor

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

@deardeng

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actionsgithub-actionsBot 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.

clang-tidy made some suggestions

Comment threadcloud/src/resource-manager/resource_manager.cpp
Comment threadcloud/src/resource-manager/resource_manager.cpp
Comment threadcloud/src/resource-manager/resource_manager.cpp Outdated
@deardeng

Copy link
Copy Markdown
ContributorAuthor

run builldall

@github-actionsgithub-actionsBot 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.

clang-tidy made some suggestions

if (c0 != TxnErrorCode::TXN_OK) {
LOG(WARNING) << "check instance instance_id=" << instance_id
<< " failed, code=" << format_as(c0) << ", info=" + m0;
return false;

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.

warning: redundant boolean literal in conditional return statement [readability-simplify-boolean-expr]

cloud/src/resource-manager/resource_manager.cpp:227:

- if (c0 != TxnErrorCode::TXN_OK) {- LOG(WARNING) << "check instance instance_id=" << instance_id- << " failed, code=" << format_as(c0) << ", info=" + m0;- return false;- }- return true;+ return !c0 != TxnErrorCode::TXN_OK;

Comment threadcloud/src/common/config.h Outdated
Comment threadcloud/src/resource-manager/resource_manager.cpp Outdated
Comment threadcloud/src/meta-service/meta_service.cpp Outdated
Comment threadcloud/src/resource-manager/resource_manager.h Outdated
Comment threadcloud/src/resource-manager/resource_manager.cpp Outdated
Comment threadcloud/src/resource-manager/resource_manager.h Outdated
@deardeng

Copy link
Copy Markdown
ContributorAuthor

run buildall

gavinchou
gavinchou previously approved these changes Nov 8, 2024
Comment threadcloud/src/meta-service/meta_service.cpp Outdated
@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Nov 8, 2024
@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.

@deardeng

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actionsgithub-actionsBot removed the approved Indicates a PR has been approved by one committer. label Nov 8, 2024
@deardeng

Copy link
Copy Markdown
ContributorAuthor

run cloudut

@deardeng

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Nov 11, 2024
@github-actions

Copy link
Copy Markdown
Contributor

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

@gavinchougavinchou changed the title [fix](cloud) Check instance_id valid when use cloud_unique_id degrade…[fix](cloud) Check instance_id valid when use cloud_unique_id degrade formatNov 11, 2024

@dataroaringdataroaring 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

@dataroaring
dataroaring merged commit d05487c into apache:masterNov 12, 2024
zzzxl1993 pushed a commit to zzzxl1993/doris that referenced this pull request Nov 12, 2024
924060929 pushed a commit to 924060929/incubator-doris that referenced this pull request Nov 12, 2024
deardeng added a commit to deardeng/incubator-doris that referenced this pull request Nov 13, 2024
py023 pushed a commit to py023/doris that referenced this pull request Nov 13, 2024
dataroaring pushed a commit that referenced this pull request Nov 13, 2024
@gavinchougavinchou mentioned this pull request Nov 26, 2024
HappenLee pushed a commit to HappenLee/incubator-doris that referenced this pull request Apr 24, 2026
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.dev/3.0.3-mergedreviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@deardeng@doris-robot@gavinchou@dataroaring