sanrajbandre opened a new pull request, #4050:
URL: https://github.com/apache/ambari/pull/4050
## What changes were proposed in this pull request?
Rolling restart batches could fail to chain because the request metadata was
not parsed from the Ambari API response.
**Root cause**
`ExecutionScheduleManager.convertToBatchRequestResponse()` used
`Response#getEntity()`. With Jakarta/Jersey this often returns `null` (or an
unreadable stream), so `"Requests.id"` / `"request_status"` were not parsed.
**Minimal fix (one line)**
```diff
---
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
@@ -... +...
- String responseString = (String) clientResponse.getEntity();
+ String responseString = clientResponse.readEntity(String.class);
```
## How was this patch tested :
- Local env: macOS (Apple Silicon M1), JDK 17.
## Targeted unit tests:
```diff
mvn -pl ambari-server \
-Dtest='**/scheduler/**/*Test.java' \
-DfailIfNoTests=false -DforkCount=1 -DreuseForks=false \
org.apache.maven.plugins:maven-surefire-plugin:test
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]