Skip to content

kv: Include error information in crdb_internal.active_range_feeds#86876

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
miretskiy:showerr
Aug 26, 2022
Merged

kv: Include error information in crdb_internal.active_range_feeds#86876
craig[bot] merged 1 commit intocockroachdb:masterfrom
miretskiy:showerr

Conversation

@miretskiy
Copy link
Copy Markdown
Contributor

Include error count, and the last error information in
crdb_internal.active_range_feeds table whenever rangefeed
disconnects due to an error.

Release justification: observability improvement.
Release note: None

@miretskiy miretskiy requested a review from tbg August 25, 2022 15:07
@miretskiy miretskiy requested a review from a team as a code owner August 25, 2022 15:07
@miretskiy miretskiy requested a review from a team August 25, 2022 15:07
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@miretskiy
Copy link
Copy Markdown
Contributor Author

Example with synthetically injected error:

Screen Shot 2022-08-25 at 11 08 39 AM

defer a.Unlock()
a.LastErr = errors.Wrapf(err, "disconnect at %s: checkpoint %s/-%s",
timeutil.Now().Format(time.RFC3339), a.Resolved, timeutil.Since(a.Resolved.GoTime()))
a.NumErrs++
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this also reaching some metric?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(Not suggesting you add one here but it would probably be useful?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah; it would be useful; not going to add it now because I think we need to add per-error type metrics instead. This can happen as a follow in PR

@miretskiy miretskiy force-pushed the showerr branch 2 times, most recently from aa27167 to fa0aa95 Compare August 25, 2022 16:49
Include error count, and the last error information in
`crdb_internal.active_range_feeds` table whenever rangefeed
disconnects due to an error.

Release justification: observability improvement.
Release note: None
@miretskiy
Copy link
Copy Markdown
Contributor Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 26, 2022

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