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

[Bugfix]修复删除Kafka集群后,Connect集群任务出现NPE问题 #1129

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

ZQKC
Copy link
Collaborator

@ZQKC ZQKC commented Aug 15, 2023

原因:
首先,删除Kafka集群后,没有将DB中的Connect集群进行删除。随后,进行Connect集群指标采集时,由于所在的Kafka集群已经不存在了。最终,导致NPE;

解决:
发布一个Kafka集群删除事件,触发MetaDataService子类,将其在DB中的数据进行删除。

遗留:
当前MetaDataService仅在部分元信息同步类中实现,导致当前DB中的脏数据清理不彻底,后续等MetaDataService在所有元信息同步类中实现后,便可彻底清理数据。

PS:当前修复已保证NPE问题不会再出现。

原因:
首先,删除Kafka集群后,没有将DB中的Connect集群进行删除。随后,进行Connect集群指标采集时,由于所在的Kafka集群已经不存在了。最终,导致NPE;

解决:
发布一个Kafka集群删除事件,触发MetaDataService子类,将其在DB中的数据进行删除。

遗留:
当前MetaDataService仅在部分元信息同步类中实现,导致当前DB中的脏数据清理不彻底,后续等MetaDataService在所有元信息同步类中实现后,便可彻底清理数据。

PS:当前修复已保证NPE问题不会再出现。
@ZQKC ZQKC linked an issue Aug 15, 2023 that may be closed by this pull request
@ZQKC ZQKC added this to the v3.4.0 milestone Aug 15, 2023
@ZQKC ZQKC self-assigned this Aug 15, 2023
@ZQKC ZQKC merged commit d1417be into master Aug 16, 2023
1 check passed
@ZQKC ZQKC deleted the fix_979 branch November 12, 2023 07:22
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.

集群删除后,后台报NullPointerException
1 participant