FYI Reposted in SO:
-
https://stackoverflow.com/questions/78265380/how-to-debug-the-kryo-fallback-in-flink

On Thu, Mar 28, 2024 at 7:24 AM Salva Alcántara <salcantara...@gmail.com>
wrote:

> I wonder which is the simplest way of troubleshooting/debugging what
> causes the Kryo fallback.
>
> Detecting it is just a matter of adding this line to your job:
>
> ```
> env.getConfig().disableGenericTypes();
> ```
>
> or in more recent versions:
>
> ```
> pipeline.generic-types: false
>
> ```
>
> But once you detect the issue, what is the simplest way to debug it? You can 
> of course add a breakpoint in:
> org.apache.flink.api.java.typeutils.TypeExtractor@analyzePojo
>
> but ideally there should be a simpler way to show all the problems 
> encountered to the user without having to get that deep into the code.
>
> Thanks in advance,
>
> Salva
>
>

Reply via email to