OpenSearch/x-pack/qa/multi-node
Zachary Tong 4dbf498721
[Rollup] Job deletion should be invoked on the allocated task (#34574)
We should delete a job by directly talking to the allocated 
task and telling it to shutdown. Today we shut down a job 
via the persistent task framework. This is not ideal because, 
while the job has been removed from the persistent task 
CS, the allocated task continues to live until it gets the 
shutdown message.

This means a user can delete a job, immediately delete 
the rollup index, and then see new documents appear in
 the just-deleted index. This happens because the indexer
 in the allocated task is still running and indexes a few 
more documents before getting the shutdown command.

In this PR, the transport action is changed to a TransportTasksAction, 
and we invoke onCancelled() directly on the matching job. 
The race condition still exists after this PR (albeit less likely), 
but this was a precursor to fixing the issue and a self-contained
chunk of code. A second PR will followup to fix the race itself.
2018-10-23 12:23:22 -04:00
..
src/test/java/org/elasticsearch/multi_node [Rollup] Job deletion should be invoked on the allocated task (#34574) 2018-10-23 12:23:22 -04:00
build.gradle Build: Rework shadow plugin configuration (#32409) 2018-08-21 20:03:28 -04:00
roles.yml Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00