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

MOLT Fetch failback mode #18990

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

MOLT Fetch failback mode #18990

wants to merge 13 commits into from

Conversation

Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit 4cd9b18
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-interactivetutorials-docs/deploys/671a8ab3b8f1d2000817d6cf

Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit 4cd9b18
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-api-docs/deploys/671a8ab3fe321a0008b0dd22

Copy link

github-actions bot commented Oct 4, 2024

Files changed:

Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for cockroachdb-docs failed. Why did it fail? →

Name Link
🔨 Latest commit 5ee36f5
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-docs/deploys/670042c0fc8f7e0009c6cb9d

Copy link

netlify bot commented Oct 4, 2024

Netlify Preview

Name Link
🔨 Latest commit 4cd9b18
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-docs/deploys/671a8ab3f3906400087fc1d8
😎 Deploy Preview https://deploy-preview-18990--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@taroface
Copy link
Contributor Author

@ryanluu12345 Friendly ping for review!

src/current/molt/molt-fetch.md Show resolved Hide resolved
src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
@taroface
Copy link
Contributor Author

@ryanluu12345 Updated. PTAL!

@ryanluu12345
Copy link

@taroface as a note, we want to call attention to this technical advisory: https://www.cockroachlabs.com/docs/advisories/a123371#mitigation

Basically, we want to call out the impact and link it. But basically, you can just link this in the docs and then let people know to do versions greater than:

Mitigation
Users of CockroachDB v22.2, v23.1.0 to v23.1.21, and v23.2.0 to v23.2.5 are encouraged to upgrade to v23.1.22, v23.2.6, v24.1.0, or a later version.

Impact
Changefeeds could drop events during the initial scan in some cases, causing changefeed consumers to receive incomplete data. Versions affected include CockroachDB v22.2, v23.1.0 to v23.1.21, v23.2.0 to v23.2.5, and testing versions of v24.1 through v24.1.0-rc.1.

Questions about any technical alert can be directed to our support team.

Copy link

@rohan-joshi rohan-joshi left a comment

Choose a reason for hiding this comment

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

docs lgtm

Copy link

@ryanluu12345 ryanluu12345 left a comment

Choose a reason for hiding this comment

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

Latest technical advisory changes look good to me. Thanks! I'm good with this PR now.

#### Fail back to source database

{{site.data.alerts.callout_danger}}
Before using `failback` mode, refer to the [technical advisory]({% link advisories/a123371.md %}) about a bug that affects changefeeds on CockroachDB v22.2, v23.1.0 to v23.1.21, v23.2.0 to v23.2.5, and testing versions of v24.1 through v24.1.0-rc.1.

Choose a reason for hiding this comment

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

@Jeremyyang920 FYI here

Copy link
Contributor

@florence-crl florence-crl left a comment

Choose a reason for hiding this comment

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

lgtm pending suggestions.

src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
~~~

{{site.data.alerts.callout_info}}
If both `--changefeeds-path` and `--allow-tls-mode-disable` are not specified in `failback` mode, `molt fetch` will error. At least one of these flags is required. `--changefeeds-path` overrides the default changefeed configuration. `--allow-tls-mode-disable` enables the use of the default changefeed configuration, which is insecure.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
If both `--changefeeds-path` and `--allow-tls-mode-disable` are not specified in `failback` mode, `molt fetch` will error. At least one of these flags is required. `--changefeeds-path` overrides the default changefeed configuration. `--allow-tls-mode-disable` enables the use of the default changefeed configuration, which is insecure.
Either
- `--changefeeds-path` which overrides the default changefeed configuration, or
- `--allow-tls-mode-disable` which enables the use of the default insecure changefeed configuration
must be specified in `failback` mode, otherwise `molt fetch` will error.

Copy link
Contributor Author

@taroface taroface Oct 24, 2024

Choose a reason for hiding this comment

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

Adapted this to be clearer, as you rightly suggest. I'm not a fan of placing bullet points in the middle of a sentence as this doesn't look entirely right to me. Instead, I wrote it into a full sentence without bullet points.

src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
src/current/molt/molt-fetch.md Outdated Show resolved Hide resolved
WITH updated, resolved = '1s', min_checkpoint_frequency = '1s', initial_scan = 'no', cursor = '2024-09-11T16:33:35Z', webhook_sink_config = '{\"Flush\":{\"Bytes\":1048576,\"Frequency\":\"1s\"}}'
~~~

This results in initial output like the following:
Copy link
Contributor

Choose a reason for hiding this comment

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

This may be redundant, but for clarity:

Suggested change
This results in initial output like the following:
Running the preceding `molt fetch` command or the equivalent `CREATE CHANGEFEED` command results in initial output like the following:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't want to suggest manually running that changefeed command, so I slightly reworded.

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.

4 participants