8000 sql: report CHECK errors to system.check_errors · Issue #148301 · cockroachdb/cockroach · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
sql: report CHECK errors to system.check_errors #148301
Open
@spilchen

Description

@spilchen

This task updates the CHECK job to persist validation errors in the system.check_errors system table. In #148299, detected errors were only written to the cockroach.log. This change moves error recording into the structured system table to support inspection via SHOW CHECK ERRORS.

Details

  • Modify the integrity check processor to construct and insert rows into system.check_errors for each inconsistency found.
  • Each row should include all relevant fields: job_id, error_type, object ID(s), and detailed context (e.g., stringified primary key, details JSON).
  • This task enables proper integration with the SHOW CHECK ERRORS command and sets the foundation for job-based tracking and observability.

Jira issue: CRDB-51525

Epic CRDB-30356

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sql-scrubC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0