From a90fcf089094935622052c2e425bd1a4b167e338 Mon Sep 17 00:00:00 2001 From: Tal Levy Date: Wed, 20 Feb 2019 08:47:04 -0800 Subject: [PATCH] fix dangling tag in TasksClientDocumentationIT (#39157) fix dangling tag in TasksClientDocumentationIT and fix tag mentions from list-tasks to cancel-tasks --- .../documentation/TasksClientDocumentationIT.java | 7 ++++++- docs/java-rest/high-level/tasks/cancel_tasks.asciidoc | 10 +++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/TasksClientDocumentationIT.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/TasksClientDocumentationIT.java index 38c8986e1d9f0..56a7fce498c2a 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/TasksClientDocumentationIT.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/TasksClientDocumentationIT.java @@ -179,11 +179,16 @@ public void testCancelTasks() throws IOException { List tasks = response.getTasks(); // <1> // end::cancel-tasks-response-tasks + // tag::cancel-tasks-response-calc + Map> perNodeTasks = response.getPerNodeTasks(); // <1> + List groups = response.getTaskGroups(); // <2> + // end::cancel-tasks-response-calc + // tag::cancel-tasks-response-failures List nodeFailures = response.getNodeFailures(); // <1> List taskFailures = response.getTaskFailures(); // <2> - // end::-tasks-response-failures + // end::cancel-tasks-response-failures assertThat(response.getNodeFailures(), equalTo(emptyList())); assertThat(response.getTaskFailures(), equalTo(emptyList())); diff --git a/docs/java-rest/high-level/tasks/cancel_tasks.asciidoc b/docs/java-rest/high-level/tasks/cancel_tasks.asciidoc index 089f87c00a2ef..42f31322896e8 100644 --- a/docs/java-rest/high-level/tasks/cancel_tasks.asciidoc +++ b/docs/java-rest/high-level/tasks/cancel_tasks.asciidoc @@ -18,7 +18,7 @@ task selection parameters as the list tasks command. ["source","java",subs="attributes,callouts,macros"] -------------------------------------------------- -include-tagged::{doc-tests}/TasksClientDocumentationIT.java[list-tasks-request-filter] +include-tagged::{doc-tests}/TasksClientDocumentationIT.java[cancel-tasks-request-filter] -------------------------------------------------- <1> Cancel a task <2> Cancel only cluster-related tasks @@ -28,7 +28,7 @@ include-tagged::{doc-tests}/TasksClientDocumentationIT.java[list-tasks-request-f ["source","java",subs="attributes,callouts,macros"] -------------------------------------------------- -include-tagged::{doc-tests}/TasksClientDocumentationIT.java[list-tasks-execute] +include-tagged::{doc-tests}/TasksClientDocumentationIT.java[cancel-tasks-execute] -------------------------------------------------- ==== Asynchronous Execution @@ -62,20 +62,20 @@ provided as an argument ["source","java",subs="attributes,callouts,macros"] -------------------------------------------------- -include-tagged::{doc-tests}/TasksClientDocumentationIT.java[list-tasks-response-tasks] +include-tagged::{doc-tests}/TasksClientDocumentationIT.java[cancel-tasks-response-tasks] -------------------------------------------------- <1> List of cancelled tasks ["source","java",subs="attributes,callouts,macros"] -------------------------------------------------- -include-tagged::{doc-tests}/TasksClientDocumentationIT.java[list-tasks-response-calc] +include-tagged::{doc-tests}/TasksClientDocumentationIT.java[cancel-tasks-response-calc] -------------------------------------------------- <1> List of cancelled tasks grouped by a node <2> List of cancelled tasks grouped by a parent task ["source","java",subs="attributes,callouts,macros"] -------------------------------------------------- -include-tagged::{doc-tests}/TasksClientDocumentationIT.java[list-tasks-response-failures] +include-tagged::{doc-tests}/TasksClientDocumentationIT.java[cancel-tasks-response-failures] -------------------------------------------------- <1> List of node failures <2> List of task cancellation failures