open-nomad/nomad/structs
Drew Bailey 630babb886
prevent double job status update (#9768)
* Prevent Job Statuses from being calculated twice

https://github.com/hashicorp/nomad/pull/8435 introduced atomic eval
insertion iwth job (de-)registration. This change removes a now obsolete
guard which checked if the index was equal to the job.CreateIndex, which
would empty the status. Now that the job regisration eval insetion is
atomic with the registration this check is no longer necessary to set
the job statuses correctly.

* test to ensure only single job event for job register

* periodic e2e

* separate job update summary step

* fix updatejobstability to use copy instead of modified reference of job

* update envoygatewaybindaddresses copy to prevent job diff on null vs empty

* set ConsulGatewayBindAddress to empty map instead of nil

fix nil assertions for empty map

rm unnecessary guard
2021-01-22 09:18:17 -05:00
..
config
batch_future.go
batch_future_test.go
bitmap.go
bitmap_test.go
csi.go csi: Return error when deleting node (#9803) 2021-01-14 12:44:50 -08:00
csi_test.go csi: Return error when deleting node (#9803) 2021-01-14 12:44:50 -08:00
devices.go
devices_test.go
diff.go
diff_test.go
errors.go
errors_test.go
event.go
funcs.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
funcs_test.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
generate.sh
network.go
network_test.go
node.go
node_class.go
node_class_test.go
node_test.go
operator.go
service_identities.go
services.go
services_test.go prevent double job status update (#9768) 2021-01-22 09:18:17 -05:00
streaming_rpc.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
structs.go validate connect block allowed only within group.service 2021-01-20 14:34:23 -05:00
structs_codegen.go
structs_oss.go
structs_periodic_test.go
structs_test.go Clean up Task Validation tests (#9833) 2021-01-21 11:53:02 -08:00
testing.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
volumes.go