[ 
https://issues.apache.org/jira/browse/FLINK-41706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martijn Visser updated FLINK-41706:
-----------------------------------
    Description: 
{{SpillingAdaptiveSpanningRecordDeserializer}} only fails when a serializer 
reads past the end of a buffer, or past the end of a record that spans buffers. 
A short read of a spanning record skips the rest and works, but a short read of 
a record within one buffer, or an over-read in the middle of a buffer, drops or 
garbles records while the job succeeds. That is why three of the four tests in 
{{CustomSerializationITCase}} have been disabled since FLINK-39124: no 
exception is thrown.

We should check that the serializer reads exactly as many bytes as the record's 
length prefix gives, in the non-spanning, spanning and spilled paths, as 
proposed in FLINK-10356.

  was:Three of the four tests in CustomSerializationITCase have been disabled 
since the JUnit 5 migration in FLINK-39124 with "TODO: This needs to be 
investigated why no exception is thrown". The JUnit 4 versions caught 
JobExecutionException but had no fail() after env.execute(), so they also 
passed when the job succeeded. We should find out whether the record 
deserializer is supposed to reject these records (see FLINK-10356) and either 
fix it or rewrite the tests.


> Network deserializer silently drops records when a serializer reads too few 
> or too many bytes
> ---------------------------------------------------------------------------------------------
>
>                 Key: FLINK-41706
>                 URL: https://issues.apache.org/jira/browse/FLINK-41706
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Network, Tests
>            Reporter: Martijn Visser
>            Assignee: Martijn Visser
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.5.0
>
>
> {{SpillingAdaptiveSpanningRecordDeserializer}} only fails when a serializer 
> reads past the end of a buffer, or past the end of a record that spans 
> buffers. A short read of a spanning record skips the rest and works, but a 
> short read of a record within one buffer, or an over-read in the middle of a 
> buffer, drops or garbles records while the job succeeds. That is why three of 
> the four tests in {{CustomSerializationITCase}} have been disabled since 
> FLINK-39124: no exception is thrown.
> We should check that the serializer reads exactly as many bytes as the 
> record's length prefix gives, in the non-spanning, spanning and spilled 
> paths, as proposed in FLINK-10356.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to