elkhand commented on code in PR #23452:
URL: https://github.com/apache/flink/pull/23452#discussion_r1337654798
##########
flink-clients/src/test/java/org/apache/flink/client/program/rest/RestClusterClientTest.java:
##########
@@ -909,6 +910,17 @@ void testSubmitJobAndWaitForExecutionResult() throws
Exception {
final AtomicBoolean firstSubmitRequestFailed = new
AtomicBoolean(false);
failHttpRequest =
(messageHeaders, messageParameters, requestBody) -> {
+ if (messageHeaders instanceof CustomHeadersDecorator) {
Review Comment:
I see your point. I removed all checks, as now we will always wrap
messageHeaders into `CustomHeadersDecorator(new
UrlPrefixDecorator(messageHeaders))` before sending the request, thus we do not
need those condition checks anymore. UrlPrefixDecorator is needed for full path
support in JM running on K8S and behind some ingress. CustomHeadersDecorator is
needed for adding Auth token related headers into httpRequest.
--
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]