This is an automated email from the ASF dual-hosted git repository.
abhishek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 13ffeb50ba should retry when failed to pause realtime task (#11515)
13ffeb50ba is described below
commit 13ffeb50bacd995e99090b502ea441f8634d8369
Author: kaijianding <[email protected]>
AuthorDate: Sat Mar 25 21:33:13 2023 +0800
should retry when failed to pause realtime task (#11515)
---
.../druid/indexing/seekablestream/SeekableStreamIndexTaskRunner.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamIndexTaskRunner.java
b/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamIndexTaskRunner.java
index 794fab2ec5..718b84e55a 100644
---
a/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamIndexTaskRunner.java
+++
b/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamIndexTaskRunner.java
@@ -1770,7 +1770,7 @@ public abstract class
SeekableStreamIndexTaskRunner<PartitionIdType, SequenceOff
/**
* Signals the ingestion loop to pause.
*
- * @return one of the following Responses: 400 Bad Request if the task has
started publishing; 202 Accepted if the
+ * @return one of the following Responses: 409 Bad Request if the task has
started publishing; 202 Accepted if the
* method has timed out and returned before the task has paused; 200 OK with
a map of the current partition sequences
* in the response body if the task successfully paused
*/
@@ -1789,7 +1789,7 @@ public abstract class
SeekableStreamIndexTaskRunner<PartitionIdType, SequenceOff
public Response pause() throws InterruptedException
{
if (!(status == Status.PAUSED || status == Status.READING)) {
- return Response.status(Response.Status.BAD_REQUEST)
+ return Response.status(Response.Status.CONFLICT)
.type(MediaType.TEXT_PLAIN)
.entity(StringUtils.format("Can't pause, task is not in a
pausable state (state: [%s])", status))
.build();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]