Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3446

MongoDbMessageStore unable to load data after migration to 4.0

    XMLWordPrintable

    Details

      Description

      After upgrade to 4.0.2, our mongo delay store failed to start because it couldn't read data stored by old MongoDbMessageStore. The exact problem was in GenericMessage being in different package than before.

      ...
         "payload" : {
              "_class" : "org.springframework.integration.handler.DelayHandler$DelayedMessageWrapper",
              "requestDate" : NumberLong(1402604538225),
              "original" : {
                  "_class" : "org.springframework.integration.message.GenericMessage",
                  "payload" : {
      ...
      

      Since this is somewhat hidden from the reach of the user, it would be nice to:
      a) mention this problem in spring migration guide and provide some solution such as manually update the collection / let old delay store empty itself / use different collection, or
      b) create support in MongoDbMessageStore to load messages with old package names

      Otherwise it will cause little surprise during deployment.

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            jmisur Juraj Misur
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: