open-nomad/nomad/state
Seth Hoenig 81e36b3650
core: eliminate second index on job_submissions table (#17146)
* core: eliminate second index on job_submissions table

This PR refactors the job_submissions state store code to eliminate the
use of a second index formerly used for purging all versions of a given
job. In practice we ended up with duplicate entries on the table. Instead,
use index prefix scanning on the primary index and tidy up any potential
for creating (or removing) duplicates.

* core: pr comments followup
2023-05-11 09:51:08 -05:00
..
indexer [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
paginator [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
autopilot.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
autopilot_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
deployment_events_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
events.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
events_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
iterator.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
schema.go core: eliminate second index on job_submissions table (#17146) 2023-05-11 09:51:08 -05:00
schema_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_changes.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store.go core: eliminate second index on job_submissions table (#17146) 2023-05-11 09:51:08 -05:00
state_store_acl.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_binding_rule.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_binding_rule_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_sso.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_sso_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_restore.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_restore_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_service_regisration_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_service_registration.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_test.go Correct the status description and modify time of canceled evals. (#17071) 2023-05-08 08:50:36 -04:00
state_store_variables.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_variables_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_variables_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
testing.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00