XA Disk exception when running in multi node environment

33 views
Skip to first unread message

modokof...@gmail.com

unread,
Dec 21, 2014, 7:03:18 PM12/21/14
to xad...@googlegroups.com
Hi Nitin,

We have setup XA disk for the same application that runs in a multi Node setup - 2 nodes to be precise.
XADisk is configured at node level.

It sometimes executes OK but most of the times ends up with the exception of No file found xadisk.log_1 under the txnlogs directory. When we checked the folder it has the file xadisk.log_0 on both nodes.

Can you please advise?

Caused by: java.io.FileNotFoundException: /var/Directory/Appln/resources/XADisk/txnlogs/xadisk.log_1 (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at java.io.FileInputStream.<init>(FileInputStream.java:96)
at org.xadisk.filesystem.NativeSession.commit(NativeSession.java:666)
... 33 more
Thanks.

Nitin Verma

unread,
Jan 4, 2015, 3:53:27 AM1/4/15
to xad...@googlegroups.com, modokof...@gmail.com
Hi,

Sorry for my late response.

This exception is not expected in normal circumstances. Please make sure that none of the contents in the xadisk system directory (xadiskHome, which is "/var/Directory/Appln/resources/XADisk" in your example) are modified manually or by any program.

Can you please check if a simple java program (using the same jdk as above) is able to create FileInputStream(/var/Directory/Appln/
resources/XADisk/txnlogs/the-file-for-which-exception-came). As you mentioned the file is actually present, so I suspect it may be the case of the jdk or the native routines used during new FileInputStream are not able to access the file.

Thanks,
Nitin

Reply all
Reply to author
Forward
0 new messages