Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-138

Temporary Folder cleanup fails if no temporary files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • None
    • None

    Description

      We test shared storage with Artemis.

      The tests create 2 servers (one shared-store-master and one shared-store-slave) that shares the same directories.

      Both servers are started, then I stop the master (configured with failover-on-server-shutdown=true) and waits for the backup to be activated.
      During its activation, it fails with the error:

      &amp#27;[0m&amp#27;[31m13:52:16,089 ERROR [org.apache.activemq.artemis.core.server] (AMQ119000: Activation for server ActiveMQServerImpl::serverUUID=1fc66cce-141e-11e5-943f-b9d2cecdc731) AMQ224000: Failure in initialisation: java.io.IOException: Failed to list: /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq/bindings-directory
          at org.apache.activemq.artemis.core.journal.impl.AbstractSequentialFileFactory.listFiles(AbstractSequentialFileFactory.java:201)
          at org.apache.activemq.artemis.core.journal.impl.NIOSequentialFileFactory.listFiles(NIOSequentialFileFactory.java:25)
          at org.apache.activemq.artemis.core.journal.impl.JournalImpl.cleanupTmpFiles(JournalImpl.java:2938)
          at org.apache.activemq.artemis.core.journal.impl.JournalImpl.checkControlFile(JournalImpl.java:2926)
          at org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1718)
          at org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1324)
          at org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1307)
          at org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.loadBindingJournal(JournalStorageManager.java:2175)
          at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:1971)
          at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1851)
          at org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation.run(SharedStoreBackupActivation.java:88)
          at java.lang.Thread.run(Thread.java:745)
      

      Locally, the test passes but its fails on our CI (http://brontes.lab.eng.brq.redhat.com/viewLog.html?buildId=56939&buildTypeId=WFPR)

      The shared store directories looks fine just before stopping the master server.

      SHARED_STORE_DIR = /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq
      + /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq/large-messages-directory
      + /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq/bindings-directory
          + /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq/bindings-directory/activemq-bindings-2.bindings
          + /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq/bindings-directory/activemq-jms-2.jms
          + /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq/bindings-directory/activemq-bindings-1.bindings
          + /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq/bindings-directory/activemq-jms-1.jms
      + /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq/journal-directory
          + /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq/journal-directory/activemq-data-1.amq
          + /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq/journal-directory/server.lock
          + /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/manualmode/target/activemq/journal-directory/activemq-data-2.amq
      

      Attachments

        Activity

          People

            clebertsuconic Clebert Suconic
            jmesnil Jeff Mesnil
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: