morhidi commented on PR #217:
URL:
https://github.com/apache/flink-kubernetes-operator/pull/217#issuecomment-1128077507
> @wangyang0918 Do you have any idea why the CI test `CI / e2e_ci (Default
configuration, default, flink:1.13, v1_13) (pull_request) ` is braking? Made a
simple test locally to see if it has anything to do with parsing the response
body, without luck so far:
>
> ```
> @Test
> public void testClusterInfoRestCompatibility() throws
JsonProcessingException {
> ObjectMapper objectMapper = new ObjectMapper();
>
> String flink13Response =
"{\"refresh-interval\":3000,\"timezone-name\":\"Coordinated Universal
Time\",\"timezone-offset\":0,\"flink-version\":\"1.13.6\",\"flink-revision\":\"b2ca390
@ 2022-02-03T14:54:22+01:00\",\"features\":{\"web-submit\":false}}";
> String flink14Response =
"{\"refresh-interval\":3000,\"timezone-name\":\"Coordinated Universal
Time\",\"timezone-offset\":0,\"flink-version\":\"1.14.4\",\"flink-revision\":\"895c609
@
2022-02-25T11:57:14+01:00\",\"features\":{\"web-submit\":false,\"web-cancel\":false}}";
> String flink15Response =
"{\"refresh-interval\":3000,\"timezone-name\":\"Coordinated Universal
Time\",\"timezone-offset\":0,\"flink-version\":\"1.15.0\",\"flink-revision\":\"3a4c113
@
2022-04-20T19:50:32+02:00\",\"features\":{\"web-submit\":false,\"web-cancel\":false}}";
>
> var dashboardConfiguration =
objectMapper.readValue(flink13Response, DashboardConfiguration.class);
> dashboardConfiguration = objectMapper.readValue(flink14Response,
DashboardConfiguration.class);
> dashboardConfiguration = objectMapper.readValue(flink15Response,
DashboardConfiguration.class);
> }
> ```
I managed to debug this issue locally finally on an older mac (there's no
Flink v1.13 for silicon :/). It is indeed an 501 on the first try, then a JSON
parsing issue on the retries. (The error handling in the rest client is a mess,
the client side errors are swallowed completely) I'll try to come up with
something tomorrow:
```
org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.exc.MismatchedInputException:
Cannot map `null` into type `boolean` (set
DeserializationConfig.DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES to
'false' to allow)
at [Source: UNKNOWN; line: -1, column: -1] (through reference chain:
org.apache.flink.runtime.rest.messages.DashboardConfiguration["features"]->org.apache.flink.runtime.rest.messages.DashboardConfiguration$Features["web-cancel"])
```
This makes more sense ^^^ than the ones I saw in the CI logs.
.
--
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]