Uploaded image for project: 'Apache RocketMQ'
  1. Apache RocketMQ
  2. ROCKETMQ-323

Release semaphore after callback being finished for async invoke

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-incubating, 4.1.0-incubating
    • 4.2.0
    • rocketmq-client
    • None

    Description

      Currently, the async semaphore will be released before invoking the callback, if the callback is a heavy task which is not recommended, lots of async requests will be queued in `publicExecutor` thread pool, may cause OOM or FGC.

      Attachments

        Issue Links

          Activity

            People

              yukon Xinyu Zhou
              yukon Xinyu Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: