Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-2310

Legacy store load failed: java.io.FileNotFoundException scheduleDB.free

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.3.x
    • JBoss A-MQ 6.3
    • broker
    • None
    • Workaround Exists
    • Hide

      see description in comments

      Show
      see description in comments
    • Hide

      Send 5k scheduled messages on 5.9 and then read them with 5.11.
      I used the standard configuration only enabling the scheduler support.

      Show
      Send 5k scheduled messages on 5.9 and then read them with 5.11. I used the standard configuration only enabling the scheduler support.

      CU is trying to migrate the scheduler data store from 5.9.0.redhat-611442 to 5.11.0.redhat-630371.

      These are the relevant logs (full log attached):

      2019-06-13 16:20:50,186 | INFO  | AMQ-1-thread-1   | JobSchedulerStoreImpl            | .scheduler.JobSchedulerStoreImpl  314 | 162 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-630371 | Attempting to move old store files from /Users/fvaleri/cases/02403351/data/amq/amq/scheduler to /Users/fvaleri/cases/02403351/data/amq/amq/scheduler/legacySchedulerStore
      2019-06-13 16:20:50,414 | WARN  | AMQ-1-thread-1   | LegacyStoreReplayer              | duler.legacy.LegacyStoreReplayer   64 | 162 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-630371 | Legacy store load failed: 
      java.io.FileNotFoundException: /Users/fvaleri/cases/02403351/data/amq/amq/scheduler/legacySchedulerStore/scheduleDB.free (No such file or directory)
      2019-06-13 16:20:50,416 | ERROR | AMQ-1-thread-1   | BrokerService                    | he.activemq.broker.BrokerService  694 | 162 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-630371 | Failed to start job scheduler store: JobSchedulerStore: /Users/fvaleri/cases/02403351/data/amq/amq/scheduler
      java.io.FileNotFoundException: /Users/fvaleri/cases/02403351/data/amq/amq/scheduler/legacySchedulerStore/scheduleDB.free (No such file or directory)
      

      This is the layout of the scheduler data store before and after the migration:

      as received by 5.9

      fvaleri-mac:02403351 fvaleri$ ll data/amq/amq/scheduler/
      total 4680
      drwxr-xr-x  7 fvaleri  staff   224B Jun 13 16:14 ./
      drwxr-xr-x  3 fvaleri  staff    96B Jun 13 16:07 ../
      -rw-r--r--  1 fvaleri  staff    32M Jun 13 16:13 db-1.log
      -rw-r--r--  1 fvaleri  staff     0B Jun 13 16:11 lock
      -rw-r--r--  1 fvaleri  staff   572K Jun 13 16:14 scheduleDB.data
      -rw-r--r--  1 fvaleri  staff   111B Jun 13 16:14 scheduleDB.free
      -rw-r--r--  1 fvaleri  staff   180K Jun 13 16:13 scheduleDB.redo
      

      after 5.11 startup

      fvaleri-mac:data fvaleri$ ll data/amq/amq/scheduler/
      total 120
      drwxr-xr-x  7 fvaleri  staff   224B Jun 13 16:20 ./
      drwxr-xr-x  3 fvaleri  staff    96B Jun 13 16:07 ../
      -rw-r--r--  1 fvaleri  staff    32M Jun 13 16:21 db-1.log
      drwxr-xr-x  6 fvaleri  staff   192B Jun 13 16:20 legacySchedulerStore/
      -rw-r--r--  1 fvaleri  staff     8B Jun 13 16:21 lock
      -rw-r--r--  1 fvaleri  staff    24K Jun 13 16:41 scheduleDB.data
      -rw-r--r--  1 fvaleri  staff    20K Jun 13 16:41 scheduleDB.redo
      
      fvaleri-mac:data fvaleri$ ll data/amq/amq/scheduler/legacySchedulerStore/
      total 4680
      drwxr-xr-x  6 fvaleri  staff   192B Jun 13 16:20 ./
      drwxr-xr-x  7 fvaleri  staff   224B Jun 13 16:20 ../
      -rw-r--r--  1 fvaleri  staff    32M Jun 13 16:13 db-1.log
      -rw-r--r--  1 fvaleri  staff     8B Jun 13 16:20 lock
      -rw-r--r--  1 fvaleri  staff   572K Jun 13 16:20 scheduleDB.data
      -rw-r--r--  1 fvaleri  staff   180K Jun 13 16:13 scheduleDB.redo
      

              gtully@redhat.com Gary Tully
              rhn-support-fvaleri Federico Valeri
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: