Resolve Issues with Oplog Populator and Kafka Connect¶
Problem Description¶
The following issues are noticed:
ChangeStreamHistoryLoston theartesca-data-base-queue-connector-XXXpods./var/lib/containerdsize filling up on the host.
Problem Resolution¶
Important
If this procedure is applied on a system with Lifecycle Transition, Lifecycle Replication, or bucket notification, some event will be skipped and the respective features can not work properly.
This procedure enables to reset the change stream tokens and to remove the log files.
Execute into one of the
artesca-data-base-queue-connector-XXXpods.[artesca-os@bootstrap ~]$sudo kubectl --kubeconfig /etc/kubernetes/admin.conf exec -ti -n zenko \ artesca-data-queue-connector-0 -- bash
List the connectors one by one.
(inside)# curl 0:8083/connectors ["backbeat-oplog-source-connector-XXXX", "backbeat-oplog-source-connector-YYYY", ...]
Delete the connectors one by one.
(inside)# curl -XDELETE 0:8083/connectors/backbeat-oplog-source-connector-XXXX (inside)# curl -XDELETE 0:8083/connectors/backbeat-oplog-source-connector-YYYY
Restart all Kafka connect pods.
[artesca-os@bootstrap ~]$sudo kubectl rollout restart -n zenko deploy/artesca-data-base-queue-connector
Restart Oplog Populator.
[artesca-os@bootstrap ~]$sudo kubectl rollout restart -n zenko deploy/artesca-data-backbeat-oplog-populator

