You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One or more errors occurred. (The type initializer for 'Org.Apache.Rocketmq.MessageIdGenerator' threw an exception.)
在 System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
在 System.Threading.Tasks.Task.Wait()
在 examples.QuickStart.Main() 在 .\csharp\examples\QuickStart.cs 中: 第 107 行
关键异常
Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
在 System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
在 System.IO.BinaryWriter.Write(Byte[] buffer, Int32 index, Int32 count)
在 Org.Apache.Rocketmq.MessageIdGenerator..ctor() 在 .\csharp\rocketmq-client-csharp\MessageIdGenerator.cs 中: 第 46 行
在 Org.Apache.Rocketmq.MessageIdGenerator..cctor() 在 .\csharp\rocketmq-client-csharp\MessageIdGenerator.cs 中: 第 31 行
Before Creating the Bug Report
I found a bug, not just asking a question, which should be created in GitHub Discussions.
I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.
I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Programming Language of the Client
C#
Runtime Platform Environment
RocketMQ Version of the Client/Server
430ed16@master
Run or Compiler Version
No response
Describe the Bug
在任何安装了 OpenVPN 的机器上,即网卡的
NetworkInterfaceType
值为53
的机器上,Utilities.GetMacAddress() 函数中未排除物理地址为空的网卡。导致 MessageIdGenerator 实例化异常。Steps to Reproduce
安装 tailscale 后,直接执行 examples 项目中的示例。
What Did You Expect to See?
在 Utilities.GetMacAddress() 函数中,排除
NetworkInterfaceType
值为53
的网卡。What Did You See Instead?
在 Utilities.GetMacAddress() 函数中,加入物理地址的长度检测,如果长度为 0 的话,返回 RandomMacAddressBytes 的值。
Additional Context
The text was updated successfully, but these errors were encountered: