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

[core] Add a http-report action to reporting partition done to remote servers. #4862

Merged

Conversation

LinMingQiang
Copy link
Contributor

@LinMingQiang LinMingQiang commented Jan 8, 2025

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.

e9eb1cc86090b7b3ceec09ef7ec5b767

Linked issue: close #xxx

Tests

API and Format

Documentation

@LinMingQiang LinMingQiang force-pushed the master-feat-http-partition-mark-done branch from 3e89d23 to 166ab3e Compare January 9, 2025 03:31
@LinMingQiang
Copy link
Contributor Author

Thanks to @wwj6591812 @xuzifu666 for review, and all comments has been fixed.

@LinMingQiang LinMingQiang force-pushed the master-feat-http-partition-mark-done branch 3 times, most recently from 9201a87 to c678acd Compare January 9, 2025 08:01
@LinMingQiang LinMingQiang force-pushed the master-feat-http-partition-mark-done branch from c678acd to 84069c5 Compare January 10, 2025 03:56
@xuzifu666
Copy link
Member

+1

@Override
public void markDone(String partition) throws Exception {
HttpReportMarkDoneResponse response =
client.post(
Copy link
Contributor

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?

Copy link
Contributor Author

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 .

@LinMingQiang LinMingQiang force-pushed the master-feat-http-partition-mark-done branch from 4c59d8a to c410748 Compare January 13, 2025 06:37
@JingsongLi
Copy link
Contributor

+1

@JingsongLi JingsongLi merged commit c1d4616 into apache:master Jan 13, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants