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

[Question]: who is the producer of topic(flink-task-app)? #189

Open
yuehan-mm opened this issue Dec 20, 2023 · 4 comments
Open

[Question]: who is the producer of topic(flink-task-app)? #189

yuehan-mm opened this issue Dec 20, 2023 · 4 comments
Labels
question Further information is requested

Comments

@yuehan-mm
Copy link
Contributor

yuehan-mm commented Dec 20, 2023

What would you like to ask or discuss?

who is the producer of topic(flink-task-app)? i could't find the relevant code.
main branch : \task-flink\src\main\java\com\oppo\cloud\flink\consumer\ConsumerMessage.java line 68
thanks

@yuehan-mm yuehan-mm added the question Further information is requested label Dec 20, 2023
@zebozhuang
Copy link
Collaborator

What would you like to ask or discuss?

who is the producer of topic(flink-task-app)? i could't find the relevant code. main branch : \task-flink\src\main\java\com\oppo\cloud\flink\consumer\ConsumerMessage.java line 68 thanks

The code is in the file https://github.com/cubefs/compass/blob/main/task-syncer/src/main/java/com/oppo/cloud/syncer/service/impl/TaskInstanceService.java#L109C39-L109C57.

@Yves-yuan
Copy link
Collaborator

What would you like to ask or discuss?

who is the producer of topic(flink-task-app)? i could't find the relevant code. main branch : \task-flink\src\main\java\com\oppo\cloud\flink\consumer\ConsumerMessage.java line 68 thanks

@yuehan-mm
receiveFlinkTaskApp method is no longer used,we should delete this method later.
receiveDsTaskApplication method is used to sync flink metadata,it consumes task-application topic data which is produced by LogParserServiceImpl.addTaskApplication method.

@yuehan-mm
Copy link
Contributor Author

TaskInstanceService

@zebozhuang i konw this class. but it is writes to topic(task-instance), not flink-task-app

@yuehan-mm
Copy link
Contributor Author

What would you like to ask or discuss?

who is the producer of topic(flink-task-app)? i could't find the relevant code. main branch : \task-flink\src\main\java\com\oppo\cloud\flink\consumer\ConsumerMessage.java line 68 thanks

@yuehan-mm receiveFlinkTaskApp method is no longer used,we should delete this method later. receiveDsTaskApplication method is used to sync flink metadata,it consumes task-application topic data which is produced by LogParserServiceImpl.addTaskApplication method.

thanks for replay @Yves-yuan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants