Keith Wall created QPID-7021:
--------------------------------

             Summary: BDB hot backup (takeBackupNoLock) may fail with 
IOException
                 Key: QPID-7021
                 URL: https://issues.apache.org/jira/browse/QPID-7021
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
    Affects Versions: qpid-java-6.0, 0.32, 0.30, 0.22, 0.18
            Reporter: Keith Wall


The BDB hot backup script may fail with the following exception.

The program is flawed in that it believes acquiring file handles for the JDB 
files is sufficient to ensure that a subsequent *separate* open will succeed.  
This is not true, at least on any UNIX like file system I have seen.  Having an 
open file e handle does not prevent another process removing the entry from the 
filesystem.

{noformat}
Starting Hot Backup Script
BDBBackup Utility: Starting Hot Backup.
java.io.FileNotFoundException: /home/qpid/prod/bdbstore/myvhost/004d1f64.jdb 
(No such file or directory) fromDir:/local/qpid/Prod/bdbstore/myvhost 
toDir:/local/qpid/bdbstore-backup/Prod/QPIDBDBBackup_2016-01-25-11.20.32/bdbstore
java.io.FileNotFoundException: /local/qpid/Prod/bdbstore/myvhost/004d1f64.jdb 
(No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at org.apache.qpid.util.FileUtils.copyCheckedEx(FileUtils.java:203)
        at org.apache.qpid.util.FileUtils.copy(FileUtils.java:185)
        at 
org.apache.qpid.server.store.berkeleydb.BDBBackup.takeBackupNoLock(BDBBackup.java:305)
        at 
org.apache.qpid.server.store.berkeleydb.BDBBackup.main(BDBBackup.java:126)
Backup script encountered an error and has failed: 
java.io.FileNotFoundException: /local/qpid/prod/bdbstore/myvhost/004d1f64.jdb 
(No such file or directory) fromDir:/local/qpid/Prod/bdbstore/myvhost 
toDir:/local/qpid/bdbstore-backup/prod/QPIDBDBBackup_2016-01-25-11.20.32/bdbstore
Backup script got exception: java.io.FileNotFoundException: 
/local/qpid/Prod/bdbstore/myvhost/004d1f64.jdb (No such file or directory) 
fromDir:/local/qpid/Prod/bdbstore/myvhost 
toDir:/local/qpid/bdbstore-backup/Prod/QPIDBDBBackup_2016-01-25-11.20.32/bdbstore
org.apache.qpid.server.store.StoreException: java.io.FileNotFoundException: 
/local/qpid/Prod/bdbstore/myvhost/004d1f64.jdb (No such file or directory) 
fromDir:/local/qpid/prod/bdbstore/myvhost 
toDir:/local/qpid/bdbstore-backup/Prod/QPIDBDBBackup_2016-01-25-11.20.32/bdbstore
        at 
org.apache.qpid.server.store.berkeleydb.BDBBackup.takeBackupNoLock(BDBBackup.java:312)
        at 
org.apache.qpid.server.store.berkeleydb.BDBBackup.main(BDBBackup.java:126)
Caused by: java.io.FileNotFoundException: 
/local/qpid/Prod/bdbstore/myvhost/004d1f64.jdb (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at org.apache.qpid.util.FileUtils.copyCheckedEx(FileUtils.java:203)
        at org.apache.qpid.util.FileUtils.copy(FileUtils.java:185)
        at 
org.apache.qpid.server.store.berkeleydb.BDBBackup.takeBackupNoLock(BDBBackup.java:305)
        ... 1 more
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to