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

[INLONG-2877][Agent] Task position manager throws NPE when send dataproxy ack success #2878

Closed
wants to merge 1 commit into from

Conversation

EMsnap
Copy link
Contributor

@EMsnap EMsnap commented Mar 3, 2022

[INLONG-2877][Agent] Task position manager throws NPE when sending dataproxy ack success

Fixes #2877

Motivation

Agent task position manager throws NPE when sending dataproxy ack success

Modifications

Agent task position manager throws NPE when sending dataproxy ack success when there is no source, the position should not be stored locally since we report snapshot to the manager-module already.

Verifying this change

  • Make sure that the change passes the CI checks.

Documentation

  • Does this pull request introduce a new feature? (no)

@aloyszhang aloyszhang added this to the 1.1.0 milestone Mar 3, 2022
Copy link
Contributor

@baomingyu baomingyu left a comment

Choose a reason for hiding this comment

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

+1

@@ -206,7 +206,13 @@ public void onMessageAck(SendResult result) {
return;
}
metric.incSendSuccessNum(bodyList.size());
taskPositionManager.updateSinkPosition(jobId, sourcePath, bodyList.size());
/**
Copy link
Member

Choose a reason for hiding this comment

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

It's not necessary to use Javadoc in any method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's confusing if I don't add this comment

@healchow healchow changed the title [INLONG-2877][Agent]Agent task position manager throws npe when send dataproxy ack success [INLONG-2877][Agent] Task position manager throws npe when send dataproxy ack success Mar 3, 2022
@healchow healchow changed the title [INLONG-2877][Agent] Task position manager throws npe when send dataproxy ack success [INLONG-2877][Agent] Task position manager throws NPE when send dataproxy ack success Mar 3, 2022
Copy link
Contributor Author

@EMsnap EMsnap left a comment

Choose a reason for hiding this comment

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

+1

@@ -206,7 +206,13 @@ public void onMessageAck(SendResult result) {
return;
}
metric.incSendSuccessNum(bodyList.size());
taskPositionManager.updateSinkPosition(jobId, sourcePath, bodyList.size());
/**
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's confusing if I don't add this comment

@EMsnap
Copy link
Contributor Author

EMsnap commented Mar 4, 2022

Solved in #2881 (review)

@EMsnap EMsnap closed this Mar 4, 2022
@EMsnap EMsnap deleted the 2877 branch May 30, 2023 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug][Agent] Task position manager throws NPE when send dataproxy ack success
5 participants