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

Shifting bootstrap function inside retry logic for the connector #30

Merged
merged 5 commits into from
May 31, 2022
Merged

Shifting bootstrap function inside retry logic for the connector #30

merged 5 commits into from
May 31, 2022

Conversation

vaibhav-yb
Copy link
Collaborator

This PR aims to make the following amendment:

  • Shifting the bootstrap function inside the block for connector retry so that is there's a failure at the bootstrap level, the connector should go for retry.

Copy link
Collaborator

@suranjan suranjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we bootstrapping when there is a failure in case of getchanges? Do we need that?

@@ -321,6 +318,12 @@ private void getChanges2(ChangeEventSourceContext context,
short retryCount = 0;
while (retryCount <= connectorConfig.maxConnectorRetries()) {
try {
// Iterate over all the tablets to bootstrap them
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we bootstrapping in case of failure in getchanges?

@@ -318,6 +315,34 @@ private void getChanges2(ChangeEventSourceContext context,
final Metronome pollIntervalMetronome = Metronome.parker(Duration.ofMillis(connectorConfig.cdcPollIntervalms()), Clock.SYSTEM);
final Metronome retryMetronome = Metronome.parker(Duration.ofMillis(connectorConfig.connectorRetryDelayMs()), Clock.SYSTEM);

short retryCountForBootstrapping = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a different function

@vaibhav-yb vaibhav-yb merged commit 257757c into yugabyte:final-connector-ybdb May 31, 2022
vrajat added a commit to yugabyte/debezium-connector-yugabytedb that referenced this pull request Jun 3, 2022
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.

2 participants