cockroach
cockroach copied to clipboard
sql,server: execute update table metadata job on chan notify
This commit allows the update table metadata BG job to execute
a run when signalled via a channel. Currently, the channel is
passed to the statusServer which notifies the job via the
newly added gRPC method, UpdateTableMetadataCache, which
forwards the request to the node owning the job.
Summary:
- Added
UpdateTableMetadataCachegrpc method on status server forwards request to node with update table metadata cache job. - Update table metadata cache job observes channel to start execution.
- On every execution, the update job now increments the num runs metric.
Part of: https://github.com/cockroachdb/cockroach/issues/128993 Release note: None
Just realized my crlfmt has been broken 🫠
@stevendanna Any additional comments before I merge this?
bors r+