Skip to content

Conversation

@deardeng
Copy link
Contributor

@deardeng deardeng commented Nov 5, 2024

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

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
Contributor

github-actions bot commented Nov 5, 2024

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

@deardeng
Copy link
Contributor Author

deardeng commented Nov 5, 2024

run buildall

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2024

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

Copy link
Contributor

@github-actions github-actions bot left a comment

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

@deardeng
Copy link
Contributor Author

deardeng commented Nov 5, 2024

run builldall

Copy link
Contributor

@github-actions github-actions bot left a comment

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
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;

@deardeng
Copy link
Contributor Author

deardeng commented Nov 6, 2024

run buildall

gavinchou
gavinchou previously approved these changes Nov 8, 2024
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Nov 8, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2024

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2024

PR approved by anyone and no changes requested.

@deardeng
Copy link
Contributor Author

deardeng commented Nov 8, 2024

run buildall

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Nov 8, 2024
@deardeng
Copy link
Contributor Author

deardeng commented Nov 8, 2024

run cloudut

@deardeng
Copy link
Contributor Author

deardeng commented Nov 8, 2024

run buildall

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Nov 11, 2024
@github-actions
Copy link
Contributor

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

@gavinchou gavinchou 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 format Nov 11, 2024
Copy link
Contributor

@dataroaring dataroaring left a comment

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:master Nov 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
@gavinchou gavinchou mentioned this pull request Nov 26, 2024
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. dev/3.0.3-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants