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

Message Filter example has incorrect method signature

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-incubating
    • None
    • None

    Description

      org.apache.rocketmq.example.filter.MessageFilterImpl has public boolean match(MessageExt msg) while the correct one is public boolean match(MessageExt msg, FilterContext context). Therefore it fails to compile and load with DynaCode.

      Additionally, org.apache.rocketmq.example.filter.Consumer refers to the path that normally may not exist on users' machines /home/admin/. It should be changed to the resources/ where MessageFilterImpl is placed.

      Attachments

        Issue Links

          Activity

            People

              shroman Roman Shtykh
              shroman Roman Shtykh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: