Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1749

publishLcmEventBatchAsynchronously is not being called asynchronously

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • Montreal Release
    • Montreal Release
    • NCMP
    • None

      LcmEventsCmHandleStateHandlerImpl#publishLcmEventBatchAsynchronously is annotated with Spring Async annotation.

      However, publishLcmEventBatchAsynchronously is being called by updateCmHandleStateBatch which is in the same class. However, Async has a limitation: self-invocation - calling the async method from within the same class - won't work, as the method needs to be proxied, and calling from the same class bypasses the proxy and calls the underlying method directly.

      Thus the method is being called synchronously.

            danielhanrahan Daniel Hanrahan
            danielhanrahan Daniel Hanrahan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: