The problem presented is that when we are executing a long lasting job, it is trying to save the logs into the minio bucket without having finished the job execution. So when it tries to save a third or fourth time it is going to throw an exception complaining that the file's length does not match the one that it is going to upload and that is correct because the job keeps executing.
Hence the approach taken was to catch the exception and let it slipped since it is not causing any problem and it is saving the log into minio after the job is finished.
Fix: 2658
The problem presented is that when we are executing a long lasting job, it is trying to save the logs into the minio bucket without having finished the job execution. So when it tries to save a third or fourth time it is going to throw an exception complaining that the file's length does not match the one that it is going to upload and that is correct because the job keeps executing.
Hence the approach taken was to catch the exception and let it slipped since it is not causing any problem and it is saving the log into minio after the job is finished.