Skip to content

Commit ae28e6e

Browse files
authored
AMBARI-26545: Fix rolling restart: use Response.readEntity(String) in ExecutionScheduleManager #4050
Signed-off-by: SANRAJ RAJENDRA BANDRE <[email protected]>
1 parent d8e48a6 commit ae28e6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ambari-server/src/main/java/org/apache/ambari/server/scheduler/ExecutionScheduleManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ private BatchRequestResponse convertToBatchRequestResponse(Response clientRespon
738738

739739
batchRequestResponse.setReturnCode(retCode);
740740

741-
String responseString = (String) clientResponse.getEntity();
741+
String responseString = clientResponse.readEntity(String.class);
742742
LOG.debug("Processing API response: status={}, body={}", retCode, responseString);
743743
Map<String, Object> httpResponseMap;
744744
try {

0 commit comments

Comments
 (0)