coolmoon101 opened a new issue, #9144: URL: https://github.com/apache/rocketmq/issues/9144
### Before Creating the Bug Report - [x] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions). - [x] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions) of this repository and believe that this is not a duplicate. - [x] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ. ### Runtime platform environment mac ### RocketMQ version 5.3.1 ### JDK Version 1.8 ### Describe the Bug MessageClientIDSetter#createUniqID 在这个方法生成唯一id,方法内容简写如下: char[] sb = new char[LEN * 2]; ... int pos = FIX_STRING.length; UtilAll.writeInt(sb, pos, diff); pos += 8; ... 我的问题: (1)为什么这里要 LEN * 2 呢? (2)pos += 8; 为什么是加8呢,是不是应该加4,如果这里加4,那sb的长度就不用乘2了吧 虽然结果没有问题,但是实现细节是不是可以优化呢? ### Steps to Reproduce 无 ### What Did You Expect to See? 无 ### What Did You See Instead? 无 ### Additional Context 无 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org