mirror of https://github.com/apache/druid.git
Merge pull request #1917 from gianm/math-is-hard
RemoteTaskActionClient: Fix statusCode check.
This commit is contained in:
commit
7cbff731e3
|
@ -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<String, Object> responseDict = jsonMapper.readValue(
|
||||
response.getContent(),
|
||||
new TypeReference<Map<String, Object>>()
|
||||
|
|
Loading…
Reference in New Issue