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

server: create api to trigger table metadata update job #130721

Merged
merged 1 commit into from
Sep 23, 2024

Commits on Sep 23, 2024

  1. server: create api to trigger table metadata update job

    adds a new API v2 endpoint,
    `POST /api/v2/table_metadata/updatejob`.
    
    This new API will trigger the table metadata update job
    to run and refresh the system.table_metadata table.
    
    This will only trigger the job if it isn't already
    running. If the `?onlyIfStale` query param is
    provided, the job won't be triggered unless deemed
    stale, determined by the following setting:
     `obs.tablemetadata.data_valid_duration`
    
    note that `onlyIfStale` with any value other then
    `false` will be treated as true.
    
    Resolves: cockroachdb#128897
    Epic: CRDB-37558
    Release note: None
    kyle-a-wong committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    c992988 View commit details
    Browse the repository at this point in the history