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

consumeThreadMin can't be larger than consumeThreadMax,在前面注解处理器中是否可以做兜底校验 #673

Open
dxt1218 opened this issue Aug 8, 2024 · 1 comment

Comments

@dxt1218
Copy link

dxt1218 commented Aug 8, 2024

The issue tracker is ONLY used for bug report and feature request.

Any question or RocketMQ proposal please use our mailing lists.

BUG REPORT

  1. Please describe the issue you observed:
  • What did you do (The steps to reproduce)?
    我项目在从 rocketmq-spring:2.1.1 升级到 rocketmq-spring:2.3.0的过程
  • What did you expect to see?
    发现一些项目消费者启动失败
    Caused by: org.apache.rocketmq.client.exception.MQClientException: consumeThreadMin (20) is larger than consumeThreadMax (1)
    image
    image

rocketmq-spring:2.1.1项目中的代码是有做兜底的
image

  • What did you see instead?
    项目正常的启动
  1. Please tell us about your environment:
    rocketmq-spring:2.3.0 jdk8 rocketmq-clinet:5.2.0
  2. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):

FEATURE REQUEST

  1. Please describe the feature you are requesting.
    以往可以平滑兼容低版本的代码,不然我需要将项目上的注解都要做 consumeThreadNumber字段的声明,
    或者代码上将 int consumeThreadNumber() default 1; 默认值为1也好。

  2. Provide any additional detail on your proposed use case for this feature.

  3. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?

@dxt1218
Copy link
Author

dxt1218 commented Aug 8, 2024

另外我们项目中希望能用到消息轨迹的功能,但是高版本在注解上做了默认false,是不是可以类似producer, 有个统一配置性质的的属性值。例如 :producer 的rocketmq.producer.enable-msg-trace。有个 rocketmq.consume.enable-msg-trace ? 感觉高版本没有考虑到用户已用的习惯兼容。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant