Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-108588

Support DB Partition in Scheduled Jobs and Message Bus Listeners

    Details

      Description

      This story will create a new framework that will execute those scheduled jobs which apply to every instance in every DB Partition. This framework will take into account those global and object jobs to be executed only once. The whole information is included here:

      https://docs.google.com/spreadsheets/d/1Ce3Loryj2bsNN2Pyk8yQfEFAhTrE7x_OZSeQ9rO9dFw

      Other listeners analyzed which don't need to be covered by this framework are:

      • ModelListeners: they are already executed by object in the proper DB partition.
      • PortalInstanceLifecycleListener: they are already executed by instance in the proper DB partition.

      Steps to test it:

      1. Enable data partition, properties:
        database.partition.enabled=true
        database.partition.instance.id=dbpartitionlocal
        
      1. Startup the server with MySQL
      2. Create a new instance (company)
      3. Create a web content in that instance with a future display date and add it to one public page
      4. Create another web content in the default instance with a future display date and add it to one public page

      Expected results:
      As a guest, you can't see both articles. When that date has passed, check that both web contents are published and you can see them (it can take up to 10 minutes)

        Attachments

          Activity

            People

            Assignee:
            kyle.miho Kyle Miho
            Reporter:
            alberto.chaparro Alberto Chaparro
            Engineering Assignee:
            SE Support
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master