zentol commented on code in PR #24369:
URL: https://github.com/apache/flink/pull/24369#discussion_r1499199919
##########
flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/json/SerializedThrowableDeserializer.java:
##########
@@ -47,7 +47,7 @@ public SerializedThrowable deserialize(final JsonParser p,
final Deserialization
final byte[] serializedException =
root.get(FIELD_NAME_SERIALIZED_THROWABLE).binaryValue();
try {
return InstantiationUtil.deserializeObject(
- serializedException, ClassLoader.getSystemClassLoader());
+ serializedException,
Thread.currentThread().getContextClassLoader());
Review Comment:
```suggestion
serializedException, getClass().getClassLoader());
```
What we're really trying to do here is use the classloader of Flink, so
let's do just that.
--
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]