OpenSearch/plugin
Zachary Tong e8a6c9f5d1 [Rollup] Delegate GetJobs to master (elastic/x-pack-elasticsearch#4247)
If a job is deleted and then GetJobs API is immediately called,
it is possible for a job to be returned in the response.  This is likely
due to the GetJobs API being executed on a node with a slightly
stale cluster state which shows the job as still existing.

So we delegate to the master node so the list of jobs/tasks is current.
After routing to the master, we need to check if the rollup job
is in the PersistentTask's CS.  A job can be acknowledged canceled,
removed from the CS, but the allocated task is still alive.  So we
first check the CS to make sure it's really there before going to the
allocated task to get the status.

As extra precaution, when running local to the task, we also make
sure the task isn't canceled before including it in the response.

relates elastic/x-pack-elasticsearch#4041 


Original commit: elastic/x-pack-elasticsearch@3b6fb65e12
2018-03-30 06:24:29 -07:00
..
bwc Relax remote check for bwc project checkouts (elastic/x-pack-elasticsearch#3924) 2018-02-13 14:54:38 -06:00
core [Rollup] Make Rollup a Basic license feature (elastic/x-pack-elasticsearch#4246) 2018-03-30 06:23:08 -07:00
deprecation Decouple XContentBuilder from BytesReference (elastic/x-pack-elasticsearch#4119) 2018-03-14 13:48:05 -06:00
graph [TEST] Add deterministic routing of docs to shards to prevent 2018-02-19 15:46:51 +00:00
logstash [Logstash][Monitoring] Fix Registered Usage and Add Tests (elastic/x-pack-elasticsearch#4075) 2018-03-08 14:53:05 -08:00
ml [ML] Parsing objects from internal indices should be lenient (elastic/x-pack-elasticsearch#4256) 2018-03-29 17:32:57 +01:00
monitoring [Monitoring] Remove 202 responses in favor of 200 responses (elastic/x-pack-elasticsearch#4213) 2018-03-26 11:36:04 -04:00
rollup [Rollup] Delegate GetJobs to master (elastic/x-pack-elasticsearch#4247) 2018-03-30 06:24:29 -07:00
security Add secure_bind_password to LDAP realm (elastic/x-pack-elasticsearch#4192) 2018-03-29 16:31:45 +10:00
sql SQL: Introduce CSV and TSV tabular output (elastic/x-pack-elasticsearch#4190) 2018-03-23 12:23:00 +02:00
src/test [Rollup] Delegate GetJobs to master (elastic/x-pack-elasticsearch#4247) 2018-03-30 06:24:29 -07:00
upgrade Disable security for trial licenses by default (elastic/x-pack-elasticsearch#4120) 2018-03-21 21:09:44 -06:00
watcher Adjust to XContentBuilder decoupling (elastic/x-pack-elasticsearch#4212) 2018-03-27 12:58:26 -06:00
build.gradle Disable security for trial licenses by default (elastic/x-pack-elasticsearch#4120) 2018-03-21 21:09:44 -06:00