open-nomad/nomad
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
..
deploymentwatcher Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
drainer Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
mock prevent double job status update (#9768) 2021-01-22 09:18:17 -05:00
state prevent double job status update (#9768) 2021-01-22 09:18:17 -05:00
stream Events/acl events (#9595) 2020-12-11 10:40:50 -05:00
structs prevent double job status update (#9768) 2021-01-22 09:18:17 -05:00
types
volumewatcher csi: Postrun hook should not change mode (#9323) 2020-11-11 13:06:30 -05:00
acl.go
acl_endpoint.go
acl_endpoint_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
alloc_endpoint.go updated Allocation.List to properly handle ACL checking for namespace=* 2020-11-05 17:26:33 +00:00
alloc_endpoint_test.go documenting test for #9268 2020-11-05 16:19:55 +00:00
autopilot.go
autopilot_test.go
blocked_evals.go
blocked_evals_system.go
blocked_evals_test.go
client_agent_endpoint.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
client_agent_endpoint_test.go
client_alloc_endpoint.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
client_alloc_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
client_csi_endpoint.go
client_csi_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
client_fs_endpoint.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
client_fs_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
client_rpc.go
client_rpc_test.go
client_stats_endpoint.go
client_stats_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
config.go remove event durability (#9147) 2020-10-22 12:21:03 -04:00
consul.go
consul_policy.go
consul_policy_test.go
consul_test.go
core_sched.go csi: Postrun hook should not change mode (#9323) 2020-11-11 13:06:30 -05:00
core_sched_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
csi_endpoint.go Add gocritic to golangci-lint config (#9556) 2020-12-08 12:47:04 -08:00
csi_endpoint_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
deployment_endpoint.go
deployment_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
deployment_watcher_shims.go
drainer_int_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
drainer_shims.go
endpoints_oss.go
eval_broker.go
eval_broker_test.go
eval_endpoint.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
eval_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
event_endpoint.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
event_endpoint_test.go API: Event stream use full name instead of Eval/Alloc (#9509) 2020-12-03 11:48:18 -05:00
fsm.go Add missing sink.Cancel() in fsm (#9818) 2021-01-14 12:39:20 -08:00
fsm_not_ent.go
fsm_registry_oss.go
fsm_test.go prevent double job status update (#9768) 2021-01-22 09:18:17 -05:00
heartbeat.go
heartbeat_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_endpoint.go Refactor Job.Scale() (#9771) 2021-01-14 12:40:42 -08:00
job_endpoint_hook_connect.go prevent double job status update (#9768) 2021-01-22 09:18:17 -05:00
job_endpoint_hook_connect_test.go prevent double job status update (#9768) 2021-01-22 09:18:17 -05:00
job_endpoint_hook_expose_check.go
job_endpoint_hook_expose_check_test.go
job_endpoint_hooks.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
job_endpoint_oss.go
job_endpoint_test.go nicer error message 2021-01-08 21:13:29 +00:00
leader.go Remove Managed Sinks from Nomad (#9470) 2020-11-30 14:00:31 -05:00
leader_oss.go
leader_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
merge.go
namespace_endpoint.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
namespace_endpoint_test.go core: open source namespaces 2020-10-22 15:26:32 -07:00
node_endpoint.go nomad: try to avoid slice resizing when batching 2020-11-24 09:14:00 -08:00
node_endpoint_test.go core: open source namespaces 2020-10-22 15:26:32 -07:00
operator_endpoint.go
operator_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
periodic.go
periodic_endpoint.go dispatch-job capability to dispatch periodic jobs 2020-10-27 16:33:01 -04:00
periodic_endpoint_test.go dispatch-job capability to dispatch periodic jobs 2020-10-27 16:33:01 -04:00
periodic_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
plan_apply.go
plan_apply_not_ent.go
plan_apply_pool.go
plan_apply_pool_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
plan_apply_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
plan_endpoint.go
plan_endpoint_test.go
plan_normalization_test.go
plan_queue.go
plan_queue_test.go
raft_rpc.go
regions_endpoint.go
regions_endpoint_test.go
rpc.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
rpc_test.go use os.ErrDeadlineExceeded in tests 2020-12-07 10:40:28 -05:00
scaling_endpoint.go fix #9227: use both job and type query on scaling policy list endpoint 2020-11-10 23:26:35 +00:00
scaling_endpoint_test.go simple test to ensure that scaling endpoint methods support IsRead for 2021-01-05 13:42:18 +00:00
search_endpoint.go core: open source namespaces 2020-10-22 15:26:32 -07:00
search_endpoint_oss.go core: open source namespaces 2020-10-22 15:26:32 -07:00
search_endpoint_test.go core: open source namespaces 2020-10-22 15:26:32 -07:00
serf.go tweak bootstrap testing 2021-01-04 09:00:40 -05:00
serf_test.go tweak bootstrap testing 2021-01-04 09:00:40 -05:00
server.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
server_setup_oss.go
server_test.go
stats_fetcher.go
stats_fetcher_test.go
status_endpoint.go
status_endpoint_test.go
system_endpoint.go
system_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
testing.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
timetable.go
timetable_test.go
util.go
util_test.go
vault.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
vault_test.go
vault_testing.go
worker.go
worker_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00