There is an issue with the module which causes larger files(>8MB or maybe depending on the memory of the server) to truncate. The issue seems to be the tell() command which returns the position of the IO object but isn't the actual buffer size. The module Tarfile uses the actual size of the buffer while trying to create the tar file. When I replace the tell() command with IOobject.getbuffer().nbytes the issues seems to have resolved. I am not sure if there is any better way of doing this.
There is an issue with the module which causes larger files(>8MB or maybe depending on the memory of the server) to truncate. The issue seems to be the tell() command which returns the position of the IO object but isn't the actual buffer size. The module Tarfile uses the actual size of the buffer while trying to create the tar file. When I replace the tell() command with IOobject.getbuffer().nbytes the issues seems to have resolved. I am not sure if there is any better way of doing this.