guyinyou opened a new pull request, #1255: URL: https://github.com/apache/rocketmq-clients/pull/1255
The ternary condition in Utilities.GetMacAddress() was inverted: - When MAC address length < 6, it returned the short array - When MAC address length >= 6, it returned random bytes This caused MessageIdGenerator to throw ArgumentOutOfRangeException when calling writer.Write(macAddress, 0, 6) with an array shorter than 6 bytes, which occurs on macOS arm64 where some network interfaces return MAC addresses less than 6 bytes. Fixed by changing 'mac.Length < 6' to 'mac.Length >= 6' so that real MAC addresses are used when valid (>=6 bytes), and random bytes are used as fallback when too short. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
