-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
97218: jobs: write payload and progress to system.job_info r=dt,fqazi a=adityamaru jobs: introduces an InfoStorage wrapper This change introduces an InfoStorage wrapper that is initialized in the context of a Job and optionally a txn. This wrapper can be used to read/write rows in the system.job_info table that correspond to the Job. Additionally, the write path of InfoStorage checks that the caller updating the row is part of the currently running instance of the job. We do this by checking that the job's sqlliveness session is the same as the one persisted in the job record. Release note: None jobs: write payload and progress to system.job_info Newly created jobs will write their Payload and Progress to the system.job_info table, in addition to the job record that is already created in the system.jobs table. Running jobs that update their Payload or Progress in system.jobs, during their execution, will also write this updated state to the job_info table. Double writes for the Payload and Progress of jobs is the first step to migrating existing job state to the job_info table. Follow up changes will: 1. Add a migration to backfill job_info with the Payload and Progress of all job records in the system.jobs table. 2. Modify read methods in the registry to pull the Payload and Progress from the job_info table instead of the jobs table. Release note: None Epic: CRDB-24874 Co-authored-by: adityamaru <[email protected]>
- Loading branch information
Showing
10 changed files
with
1,004 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 18 additions & 18 deletions
36
pkg/ccl/benchccl/rttanalysisccl/testdata/benchmark_expectations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
exp,benchmark | ||
10,AlterPrimaryRegion/alter_empty_database_alter_primary_region | ||
12,AlterPrimaryRegion/alter_empty_database_set_initial_primary_region | ||
10,AlterPrimaryRegion/alter_populated_database_alter_primary_region | ||
13,AlterPrimaryRegion/alter_populated_database_set_initial_primary_region | ||
9,AlterRegions/alter_empty_database_add_region | ||
11,AlterRegions/alter_empty_database_drop_region | ||
9,AlterRegions/alter_populated_database_add_region | ||
11,AlterRegions/alter_populated_database_drop_region | ||
10,AlterSurvivalGoals/alter_empty_database_from_region_to_zone | ||
10,AlterSurvivalGoals/alter_empty_database_from_zone_to_region | ||
20,AlterSurvivalGoals/alter_populated_database_from_region_to_zone | ||
20,AlterSurvivalGoals/alter_populated_database_from_zone_to_region | ||
12,AlterTableLocality/alter_from_global_to_rbr | ||
11,AlterTableLocality/alter_from_global_to_regional_by_table | ||
8,AlterTableLocality/alter_from_rbr_to_global | ||
8,AlterTableLocality/alter_from_rbr_to_regional_by_table | ||
11,AlterTableLocality/alter_from_regional_by_table_to_global | ||
12,AlterTableLocality/alter_from_regional_by_table_to_rbr | ||
14,AlterPrimaryRegion/alter_empty_database_alter_primary_region | ||
15,AlterPrimaryRegion/alter_empty_database_set_initial_primary_region | ||
14,AlterPrimaryRegion/alter_populated_database_alter_primary_region | ||
16,AlterPrimaryRegion/alter_populated_database_set_initial_primary_region | ||
13,AlterRegions/alter_empty_database_add_region | ||
18,AlterRegions/alter_empty_database_drop_region | ||
13,AlterRegions/alter_populated_database_add_region | ||
18,AlterRegions/alter_populated_database_drop_region | ||
14,AlterSurvivalGoals/alter_empty_database_from_region_to_zone | ||
14,AlterSurvivalGoals/alter_empty_database_from_zone_to_region | ||
24,AlterSurvivalGoals/alter_populated_database_from_region_to_zone | ||
24,AlterSurvivalGoals/alter_populated_database_from_zone_to_region | ||
24,AlterTableLocality/alter_from_global_to_rbr | ||
15,AlterTableLocality/alter_from_global_to_regional_by_table | ||
12,AlterTableLocality/alter_from_rbr_to_global | ||
12,AlterTableLocality/alter_from_rbr_to_regional_by_table | ||
15,AlterTableLocality/alter_from_regional_by_table_to_global | ||
24,AlterTableLocality/alter_from_regional_by_table_to_rbr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.