This PR leverages an existing and unused configuration property log.get.changes to evaluate whether the connector should log every GetChangesRequest going to the service, the type and default behaviour is as follows:
log.get.changes = BOOLEAN
If log.get.changes = false (default):
a. If debug logging is enabled then every GetChangesRequest will be logged
b. If connector is being run at the INFO logging level then GetChangesRequest will be logged at an interval of 5 minutes
If log.get.changes = true
a. Every GetChangesRequest will be logged
Additionally, this PR modifies the log statement in all the ChangeEventSource implementations so that they are all uniform and follow the format:
One final change in this PR is that the method OpId#getKeyString now returns an array representation of the key which aligns with the representation of the key in the CdcsdkCheckpoint class in yb-client.
This PR leverages an existing and unused configuration property
log.get.changes
to evaluate whether the connector should log everyGetChangesRequest
going to the service, the type and default behaviour is as follows:log.get.changes
=BOOLEAN
log.get.changes = false
(default): a. If debug logging is enabled then everyGetChangesRequest
will be logged b. If connector is being run at theINFO
logging level thenGetChangesRequest
will be logged at an interval of 5 minuteslog.get.changes = true
a. EveryGetChangesRequest
will be loggedAdditionally, this PR modifies the log statement in all the
ChangeEventSource
implementations so that they are all uniform and follow the format:The statement in case of snapshot would follow the same format except for the word
changes
being replaced withsnapshot
:One final change in this PR is that the method
OpId#getKeyString
now returns an array representation of the key which aligns with the representation of the key in theCdcsdkCheckpoint
class inyb-client
.