Skip to content

[Bug](ReportHandler) Fix bug that tabletReport function of ReportHandler in fe may throw NullPointerException due to transaction check logic#8481

Merged
morningman merged 1 commit into
apache:masterfrom
caiconghui:report_bug
Mar 18, 2022
Merged

Conversation

@caiconghui
Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close #8480

Problem Summary:

Describe the overview of changes.

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/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...

…ler in fe may throw NullPointerException due to transaction check logic
tabletMeta.getTableId(), partitionId, tabletId, transactionState.getTransactionId());
} else {
PartitionCommitInfo partitionCommitInfo = tableCommitInfo == null ? null : tableCommitInfo.getPartitionCommitInfo(partitionId);
if (partitionCommitInfo != null) {
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.

May be keep this info log is better ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think print log for normal situation is so necessary if we could not get any useful information

@EmmyMiao87 EmmyMiao87 added kind/fix Categorizes issue or PR as related to a bug. area/tablet-report labels Mar 15, 2022
Copy link
Copy Markdown
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 github-actions Bot added the approved Indicates a PR has been approved by one committer. label Mar 17, 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.

@morningman morningman added the dev/1.0.1-deprecated should be merged into dev-1.0.1 branch label Mar 17, 2022
@morningman morningman merged commit 8470455 into apache:master Mar 18, 2022
zhengte pushed a commit to zhengte/incubator-doris that referenced this pull request Mar 20, 2022
…ler in fe may throw NullPointerException due to transaction check logic (apache#8481)
morningman pushed a commit that referenced this pull request Mar 23, 2022
…ler in fe may throw NullPointerException due to transaction check logic (#8481)
@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 Mar 23, 2022
@caiconghui caiconghui deleted the report_bug branch August 3, 2022 04:41
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/tablet-report 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] tabletReport function of ReportHandler in fe throws NullPointerException

3 participants