Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serializeTypeCurrentRPC=ROCKETMQ not support pop consuming #5684

Closed
yuz10 opened this issue Dec 10, 2022 · 2 comments
Closed

serializeTypeCurrentRPC=ROCKETMQ not support pop consuming #5684

yuz10 opened this issue Dec 10, 2022 · 2 comments
Labels
API/Protocol Compatibility This issue may cause compatibility problem stale

Comments

@yuz10
Copy link
Member

yuz10 commented Dec 10, 2022

BUG REPORT

  1. Please describe the issue you observed:
  • What did you do (The steps to reproduce)?
    1. first, open pop with mqadmin setConsumeMode -n localhost:9876 -c DefaultCluster -t topic -g group -m POP
    2. start rocketmq pop consumer with -Drocketmq.serialize.type=ROCKETMQ
          System.setProperty(RemotingCommand.SERIALIZE_TYPE_PROPERTY, SerializeType.ROCKETMQ.name());
          DefaultMQPushConsumer consumer = new DefaultMQPushConsumer("group");
          consumer.setNamesrvAddr("localhost:9876");
          consumer.setClientRebalance(false);
          consumer.subscribe("topic", "*");
          consumer.setConsumeFromWhere(ConsumeFromWhere.CONSUME_FROM_LAST_OFFSET);
          consumer.registerMessageListener((MessageListenerConcurrently) (msgs, context) -> {
              System.out.printf("%s Receive New Messages: %s %n", Thread.currentThread().getName(), msgs);
              return ConsumeConcurrentlyStatus.CONSUME_SUCCESS;
          });
          consumer.setClientRebalance(false);
          consumer.start();
          System.out.printf("Consumer Started.%n");
  • What is expected to see?
    no error
  • What did you see instead?
    In /root/logs/rocketmqlogs/rockemq_client.log, error like "CODE: 3 DESC: request type 3442 not supported"
  1. Please tell us about your environment:

  2. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):
    in rocketmq serialize type, the request code is a short, the requestCode "POP_MESSAGE=200050" is larger than short max 65535.
    image

@RongtongJin RongtongJin added the API/Protocol Compatibility This issue may cause compatibility problem label Dec 12, 2022
yuz10 added a commit to yuz10/rocketmq that referenced this issue Jan 20, 2023
yuz10 added a commit to yuz10/rocketmq that referenced this issue Jul 4, 2023
…eTypeCurrentRPC=ROCKETMQ

fix code style

detect occupied request code
yuz10 added a commit to yuz10/rocketmq that referenced this issue Sep 11, 2023
…eTypeCurrentRPC=ROCKETMQ

fix code style

detect occupied request code
Copy link

This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.

@github-actions github-actions bot added the stale label Dec 13, 2023
Copy link

This issue was closed because it has been inactive for 3 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API/Protocol Compatibility This issue may cause compatibility problem stale
Projects
None yet
2 participants