Skip to content

cdc: reapply commit with malformed message#98338

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
jayshrivastava:schemareg-revert
Mar 9, 2023
Merged

cdc: reapply commit with malformed message#98338
craig[bot] merged 2 commits intocockroachdb:masterfrom
jayshrivastava:schemareg-revert

Conversation

@jayshrivastava
Copy link
Copy Markdown
Contributor

@jayshrivastava jayshrivastava commented Mar 9, 2023

cdc: revert commit with malformed message

This reverts commit 972b85e from #98135.
The above commit has a maflormed commit message. This commit will be reapplied subsequently.

Epic: None
Release Note: None


cdc: copy request body when registering schemas

Note: This commit message reapplies the commit 972b85e,
which was previously reverted for having an incorrect commit message.

Previously, when the schema registry encountered an error when
registering a schema, it would retry the request. The problem
is that upon hitting an error, we clean the body before retrying.
Retrying with an empty body results in a obscure error message.
With this change, we now retry with the original request body
so the original error is sustained.

This change also adds the metric changefeed.schema_registry.retry_count
which is a counter for the number of retries performed by the schema
registry. Seeing nonzero values indicates that there is an issue
with contacting the schema registry and/or registering schemas.

Release note (ops change): A new metric changefeed.schema_registry.retry_count
is added. This measures the number of request retries performed when
sending requests to the schema registry. Observing a nonzero value may indicate
improper configuration of the schema registry or changefeed parameters.
Epic: None

Informs: https://github.com/cockroachlabs/support/issues/2131
Informs: https://github.com/cockroachlabs/support/issues/2129

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

This reverts commit 972b85e from cockroachdb#98135.
The above commit has a maflormed commit message. This commit will be reapplied subsequently.

Epic: None
Release Note: None
@jayshrivastava jayshrivastava requested a review from samiskin March 9, 2023 20:52
@jayshrivastava jayshrivastava marked this pull request as ready for review March 9, 2023 20:52
@jayshrivastava jayshrivastava changed the title Schemareg revert cdc: reapply commit 972b85e5268e3b89304fe89638389027bf5ba0c0 Mar 9, 2023
@jayshrivastava jayshrivastava changed the title cdc: reapply commit 972b85e5268e3b89304fe89638389027bf5ba0c0 cdc: reapply commit with malformed message Mar 9, 2023
Copy link
Copy Markdown
Contributor

@samiskin samiskin left a comment

Choose a reason for hiding this comment

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

Probably needs the ol' "Resolves #....."

Note: This commit message reapplies the commit 972b85e,
which was previously reverted for having an incorrect commit message.

Previously, when the schema registry encountered an error when
registering a schema, it would retry the request. The problem
is that upon hitting an error, we clean the body before retrying.
Retrying with an empty body results in a obscure error message.
With this change, we now retry with the original request body
so the original error is sustained.

This change also adds the metric changefeed.schema_registry.retry_count
which is a counter for the number of retries performed by the schema
registry. Seeing nonzero values indicates that there is an issue
with contacting the schema registry and/or registering schemas.

Release note (ops change): A new metric changefeed.schema_registry.retry_count
is added. This measures the number of request retries performed when
sending requests to the schema registry. Observing a nonzero value may indicate
improper configuration of the schema registry or changefeed parameters.
Epic: None

Informs: https://github.com/cockroachlabs/support/issues/2131
Informs: https://github.com/cockroachlabs/support/issues/2129
@jayshrivastava
Copy link
Copy Markdown
Contributor Author

bors r=samiskin

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 9, 2023

Build succeeded:

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.

3 participants