-
Notifications
You must be signed in to change notification settings - Fork 533
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
Conversation
…dataproxy ack success
...ng-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sinks/SenderManager.java
Show resolved
Hide resolved
There was a problem hiding this 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()); | |||
/** |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this 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()); | |||
/** |
There was a problem hiding this comment.
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
Solved in #2881 (review) |
[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
Documentation