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

Message Filter example has incorrect method signature

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-incubating
    • Component/s: None
    • Labels:
      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

              • Assignee:
                roman_s Roman Shtykh
                Reporter:
                roman_s Roman Shtykh
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: