From cb409ee9287a60e77a130458cc1be3fc312682f9 Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Thu, 5 Nov 2015 10:03:49 -0800 Subject: [PATCH] RemoteTaskActionClient: Fix statusCode check. --- .../druid/indexing/common/actions/RemoteTaskActionClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexing-service/src/main/java/io/druid/indexing/common/actions/RemoteTaskActionClient.java b/indexing-service/src/main/java/io/druid/indexing/common/actions/RemoteTaskActionClient.java index b048bf25346..4d736023b1b 100644 --- a/indexing-service/src/main/java/io/druid/indexing/common/actions/RemoteTaskActionClient.java +++ b/indexing-service/src/main/java/io/druid/indexing/common/actions/RemoteTaskActionClient.java @@ -108,7 +108,7 @@ public class RemoteTaskActionClient implements TaskActionClient throw Throwables.propagate(e); } - if (response.getStatus().getCode() / 200 == 1) { + if (response.getStatus().getCode() / 100 == 2) { final Map responseDict = jsonMapper.readValue( response.getContent(), new TypeReference>()