Flink 1.1.3 RollingSink - mismatch in the number of records consumed/produced

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Flink 1.1.3 RollingSink - mismatch in the number of records consumed/produced

Dominik Safaric
Hi everyone,

As I’ve implemented a RollingSink writing messages consumed from a Kafka log, I’ve observed that there is a significant mismatch in the number of messages consumed and written to file system.

Namely, the consumed Kafka topic contains in total 1.000.000 messages. The topology does not perform any data transformation whatsoever, but instead of, data from the source is pushed straight to the RollingSink.

After I’ve checksummed the output files, I’ve observed that the total number of messages written to the output files is greater then 7.000.000 - a different of 6.000.000 records more then consumed/available.

What is the cause of this behaviour?

Regards,
Dominik  
Reply | Threaded
Open this post in threaded view
|

Re: Flink 1.1.3 RollingSink - mismatch in the number of records consumed/produced

Aljoscha Krettek
Hi,
how did you execute this? Did any failures occur in between? If yes, it can be that the sink writes stuff multiple times but marks the valid contents of files using a .valid-length file.

Cheers,
Aljoscha

On Mon, 12 Dec 2016 at 19:54 Dominik Safaric <[hidden email]> wrote:
Hi everyone,

As I’ve implemented a RollingSink writing messages consumed from a Kafka log, I’ve observed that there is a significant mismatch in the number of messages consumed and written to file system.

Namely, the consumed Kafka topic contains in total 1.000.000 messages. The topology does not perform any data transformation whatsoever, but instead of, data from the source is pushed straight to the RollingSink.

After I’ve checksummed the output files, I’ve observed that the total number of messages written to the output files is greater then 7.000.000 - a different of 6.000.000 records more then consumed/available.

What is the cause of this behaviour?

Regards,
Dominik