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

onException callback may capture compressed message body

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.0-incubating, 4.1.0-incubating
    • 4.3.0
    • rocketmq-client
    • None

    Description

      If message body size exceeds specified threshold, client would try to compress the message body.

      Here there are two issues: 1) current implementation changes message body directly, which is not a good practice; 2) if asynchronous send method is employed to deliver message, when onException is invoked, the callback may capture the compressed message body before the finally block restores it.

      Attachments

        Issue Links

          Activity

            People

              lizhanhui Zhanhui Li
              lizhanhui Zhanhui Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: