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

Configuration values for Destination Workers are saved prior to validation logic

    Details

      Description

      Steps to Reproduce

      1. Run the following script to create a serial destination worker:

      import com.liferay.portal.kernel.messaging.Destination;
      import com.liferay.portal.kernel.messaging.DestinationConfiguration;
      import com.liferay.portal.kernel.messaging.DestinationFactoryUtil;
      import com.liferay.portal.kernel.messaging.MessageBusUtil;
      
      String destinationName = "test/my_destination";
      
      DestinationConfiguration destinationConfiguration = DestinationConfiguration.createSerialDestinationConfiguration(destinationName);
      
      Destination destination = DestinationFactoryUtil.createDestination(destinationConfiguration);
      
      MessageBusUtil.addDestination(destination);
      

      2. Go to Control Panel > System Settings > (Platform) Infrastructure > (System Scope) Destination Worker
      3. Add a new destination worker with the following values:

      • Destination Name: test/my_destination
      • Maximum Queue Size: -1
      • Worker Core Size: 2
      • Worker Max Size: 5

      4. Click on the destination to view its configuration

      Expected Results
      Both Core Size and Max Size are set to 1.

      Actual Result
      Core Size is set to 2 and Max Size is set to 5.

        Attachments

          Activity

            People

            Assignee:
            jayda.wu Jayda Wu
            Reporter:
            jonathan.mccann Jonathan McCann
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Jonathan McCann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 weeks, 3 days ago

                Packages

                Version Package
                7.3.X
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                Master