This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new ae28e6e74d AMBARI-26545: Fix rolling restart: use
Response.readEntity(String) in ExecutionScheduleManager #4050
ae28e6e74d is described below
commit ae28e6e74d5f7af0af73745a09f1cfa65da5c4ac
Author: SANRAJ RAJENDRA BANDRE <[email protected]>
AuthorDate: Thu Sep 11 06:11:22 2025 +0530
AMBARI-26545: Fix rolling restart: use Response.readEntity(String) in
ExecutionScheduleManager #4050
Signed-off-by: SANRAJ RAJENDRA BANDRE <[email protected]>
---
.../org/apache/ambari/server/scheduler/ExecutionScheduleManager.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/ambari-server/src/main/java/org/apache/ambari/server/scheduler/ExecutionScheduleManager.java
b/ambari-server/src/main/java/org/apache/ambari/server/scheduler/ExecutionScheduleManager.java
index dd43a788bc..9b241bd93d 100644
---
a/ambari-server/src/main/java/org/apache/ambari/server/scheduler/ExecutionScheduleManager.java
+++
b/ambari-server/src/main/java/org/apache/ambari/server/scheduler/ExecutionScheduleManager.java
@@ -738,7 +738,7 @@ public class ExecutionScheduleManager {
batchRequestResponse.setReturnCode(retCode);
- String responseString = (String) clientResponse.getEntity();
+ String responseString = clientResponse.readEntity(String.class);
LOG.debug("Processing API response: status={}, body={}", retCode,
responseString);
Map<String, Object> httpResponseMap;
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]