From do-not-reply at jboss.org Thu Jan 12 07:09:48 2012 Content-Type: multipart/mixed; boundary="===============5370600401622071655==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: hornetq-commits at lists.jboss.org Subject: [hornetq-commits] JBoss hornetq SVN: r12014 - in trunk: hornetq-journal/src/main/java/org/hornetq/core/journal/impl and 1 other directory. Date: Thu, 12 Jan 2012 07:09:48 -0500 Message-ID: <201201121209.q0CC9mbX027727@svn01.web.mwc.hst.phx2.redhat.com> --===============5370600401622071655== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: borges Date: 2012-01-12 07:09:47 -0500 (Thu, 12 Jan 2012) New Revision: 12014 Modified: trunk/hornetq-bootstrap/src/main/java/org/hornetq/integration/bootstrap/= HornetQBootstrapServer.java trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/Abstra= ctSequentialFile.java trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/SyncSp= eedTest.java Log: Log error if file fails to delete. Modified: trunk/hornetq-bootstrap/src/main/java/org/hornetq/integration/boo= tstrap/HornetQBootstrapServer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hornetq-bootstrap/src/main/java/org/hornetq/integration/bootstrap= /HornetQBootstrapServer.java 2012-01-12 12:09:19 UTC (rev 12013) +++ trunk/hornetq-bootstrap/src/main/java/org/hornetq/integration/bootstrap= /HornetQBootstrapServer.java 2012-01-12 12:09:47 UTC (rev 12014) @@ -32,9 +32,8 @@ import org.jboss.kernel.spi.deployment.KernelDeployment; = /** - * This is the method in which the HornetQ server can be deployed external= l outside of jBoss. Alternatively a user can embed - * by using the same code as in main - * + * This is the method in which the HornetQ server can be deployed external= ly outside of jBoss. + * Alternatively a user can embed by using the same code as in main * @author Andy Taylor */ public class HornetQBootstrapServer extends BasicBootstrap @@ -84,7 +83,10 @@ final File file =3D new File(dirName + "/STOP_ME"); if (file.exists()) { - file.delete(); + if (!file.delete()) + { + log.error("Failed to delete " + file.getAbsolutePath()); + } } final Timer timer =3D new Timer("HornetQ Server Shutdown Timer", tru= e); timer.scheduleAtFixedRate(new TimerTask() Modified: trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl= /AbstractSequentialFile.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/Abstr= actSequentialFile.java 2012-01-12 12:09:19 UTC (rev 12013) +++ trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/Abstr= actSequentialFile.java 2012-01-12 12:09:47 UTC (rev 12014) @@ -103,7 +103,10 @@ close(); } = - file.delete(); + if (!file.delete()) + { + log.error("Failed to delete file " + this); + } } = public void copyTo(SequentialFile newFileName) throws Exception Modified: trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl= /SyncSpeedTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/SyncS= peedTest.java 2012-01-12 12:09:19 UTC (rev 12013) +++ trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/SyncS= peedTest.java 2012-01-12 12:09:47 UTC (rev 12014) @@ -28,7 +28,7 @@ = /** * A SyncSpeedTest - * = + * * This class just provides some diagnostics on how fast your disk can sync * Useful when determining performance issues * @@ -168,7 +168,11 @@ = if (file.exists()) { - file.delete(); + if (!file.delete()) + { + log.error("failed to delete file " + file); + } + } = file.createNewFile(); --===============5370600401622071655==--