-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[core] Add a http-report action to reporting partition done to remote servers. #4862
[core] Add a http-report action to reporting partition done to remote servers. #4862
Conversation
...flink-common/src/test/java/org/apache/paimon/flink/action/MarkPartitionDoneActionITCase.java
Show resolved
Hide resolved
paimon-core/src/main/java/org/apache/paimon/partition/actions/HttpReportMarkDoneAction.java
Show resolved
Hide resolved
paimon-core/src/main/java/org/apache/paimon/partition/actions/HttpReportMarkDoneAction.java
Outdated
Show resolved
Hide resolved
paimon-core/src/main/java/org/apache/paimon/partition/actions/HttpReportMarkDoneAction.java
Outdated
Show resolved
Hide resolved
paimon-core/src/main/java/org/apache/paimon/partition/actions/HttpReportMarkDoneAction.java
Outdated
Show resolved
Hide resolved
paimon-core/src/main/java/org/apache/paimon/partition/actions/HttpReportMarkDoneAction.java
Show resolved
Hide resolved
3e89d23
to
166ab3e
Compare
Thanks to @wwj6591812 @xuzifu666 for review, and all comments has been fixed. |
9201a87
to
c678acd
Compare
c678acd
to
84069c5
Compare
+1 |
@Override | ||
public void markDone(String partition) throws Exception { | ||
HttpReportMarkDoneResponse response = | ||
client.post( |
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.
Maybe it is better to introduce a new client for HttpReportMarkDoneAction
?
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.
Done. I implemented a lightweight httpclient in class HttpReportMarkDoneAction
.
4c59d8a
to
c410748
Compare
+1 |
Purpose
In order to coordinate the scheduling of real-time data and offline data, we provide an online web service to receive table partition completion information from the real-time application (flink).
When the real-time program completes writing to a partition,
http-report
action will report the partition to the remote service, when the online service receives the partition done request, it immediately calls the downstream associated offline job.Compared with other actions,
http-report
action is more time-sensitive and does not require polling or blocking to wait for partitioning to complete. It is passive.Linked issue: close #xxx
Tests
API and Format
Documentation