KGLOBAL-1867: Fix the NPE exception in isAutoMirrorTopic() check when the link is failed (#7139)
* KGLOBAL-1867: Fix the NPE exception in isAutoMirrorTopic() check when the link is failed When the link fails, we set the config to null. We're not handling this correctly in isAutoMirrorTopic() check which relies on config to understand if a mirror topic is auto-mirrored. This solution is to simply default the behavior of the check to false when the link is failed. This way we might let the customer delete some auto-mirror topics when the link is in the failed state. But when the link comes back, we'll mirror the topic again. Another approach is to not let customers delete a topic when the link is failed and we're not able to use the config to determine if the topic is auto-mirrored. The restriction is much bigger here and is not the behavior intended for a failed link.
加载中
想要评论请 注册 或 登录