Dmitry Isakbayev
2018-Dec-24 19:11 UTC
[Gluster-users] java application crushes while reading a zip file
The core file generated by JVM suggests that it happens because the file is changing while it is being read - https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8186557. The application reads in the zipfile and goes through the zip entries, then reloads the file and goes the zip entries again. It does so 3 times. The application never crushes on the 1st cycle but sometimes crushes on the 2nd or 3rd cycle. The zip file is generated about 20 seconds prior to it being used and is not updated or even used by any other application. I have never seen this problem on a plain file system. I would appreciate any suggestions on how to go debugging this issue. I can change the source code of the java application. Regards, Dmitry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20181224/7c63d7a2/attachment.html>
Dmitry Isakbayev
2018-Dec-27 20:21 UTC
[Gluster-users] java application crushes while reading a zip file
Attempted to set 'performance.read-ahead off` according to https://jira.apache.org/jira/browse/AMQ-7041 That did not help. On Mon, Dec 24, 2018 at 2:11 PM Dmitry Isakbayev <isakdim at gmail.com> wrote:> The core file generated by JVM suggests that it happens because the file > is changing while it is being read - > https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8186557. > The application reads in the zipfile and goes through the zip entries, > then reloads the file and goes the zip entries again. It does so 3 times. > The application never crushes on the 1st cycle but sometimes crushes on the > 2nd or 3rd cycle. > The zip file is generated about 20 seconds prior to it being used and is > not updated or even used by any other application. I have never seen this > problem on a plain file system. > > I would appreciate any suggestions on how to go debugging this issue. I > can change the source code of the java application. > > Regards, > Dmitry > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20181227/0c6a066b/attachment.html>