You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Roey Shem Tov (Jira)" <ji...@apache.org> on 2020/05/06 17:14:00 UTC

[jira] [Comment Edited] (FLINK-16686) [State TTL] Make user class loader available in native RocksDB compaction thread

    [ https://issues.apache.org/jira/browse/FLINK-16686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17101018#comment-17101018 ] 

Roey Shem Tov edited comment on FLINK-16686 at 5/6/20, 5:13 PM:
----------------------------------------------------------------

Just update it is happens on flink 1.10 too (Kubernetes mode).
 Same exception as mentioned here 

{{}}
{code:java}
Falling back to default Kryo serializer because Chill serializer couldn't be found.
{code}
 

Any suggestion of how to solve it?


was (Author: roeyshemtov):
Just update it is happens on flink 1.10 too (Kubernetes mode).
Same exception as mentioned here 

{{}}
{code:java}
Falling back to default Kryo serializer because Chill serializer couldn't be found.
{code}
 

Any suggestion of how to solve it?

{{    }}

> [State TTL] Make user class loader available in native RocksDB compaction thread
> --------------------------------------------------------------------------------
>
>                 Key: FLINK-16686
>                 URL: https://issues.apache.org/jira/browse/FLINK-16686
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / State Backends
>    Affects Versions: 1.8.0
>            Reporter: Andrey Zagrebin
>            Priority: Major
>
> The issue is initially reported [here|https://stackoverflow.com/questions/60745711/flink-kryo-serializer-because-chill-serializer-couldnt-be-found].
> The problem is that the java code of Flink compaction filter is called from RocksDB native C++ code. It is called in the context of the native compaction thread. RocksDB has utilities to create java Thread context for the Flink java callback. Presumably, the Java thread context class loader is not set at all and if it is queried then it produces NullPointerException.
> The provided report enabled a list state with TTL. The compaction filter has to deserialise elements to check expiration. The deserialiser relies on Kryo which queries the thread context class loader which is expected to be the user class loader of the task but turns out to be null.
> We should investigate how to pass the user class loader to the compaction thread of the list state with TTL.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)