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 Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
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 Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
diff_test.go consul/connect: enable setting datacenter in connect upstream 2020-11-30 10:38:30 -06:00
errors.go
errors_test.go
event.go Events/acl events (#9595) 2020-12-11 10:40:50 -05:00
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 Apply some suggested fixes from staticcheck (#9598) 2020-12-10 07:29:18 -08:00
network_test.go
node.go
node_class.go
node_class_test.go
node_test.go
operator.go
service_identities.go
services.go consul/connect: avoid NPE from unset connect gateway proxy 2021-01-05 09:27:01 -06:00
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 added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
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