[
https://issues.apache.org/jira/browse/ROCKETMQ-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16273894#comment-16273894
]
ASF GitHub Bot commented on ROCKETMQ-297:
-----------------------------------------
lzk90s commented on issue #31: [ROCKETMQ-297] Support windows platform for
rocketmq-cpp code
URL: https://github.com/apache/rocketmq-externals/pull/31#issuecomment-348394333
你好,windows下有一个bug,具体原因如下:
在LocalFileOffsetStore::LocalFileOffsetStore()接口中,使用了UtilAll::getLocalAddress()来组装offset的保存路径。UtilAll::getLocalAddress()
可能获取到IPV6地址,比如fe80::bc6e:cb4:5f6e:1448%11
这样的。IPV6地址中存在冒号:这个特殊符号,windows不支持冒号:这个特殊符号,会导致创建目录会失败
LocalFileOffsetStore::LocalFileOffsetStore(const string& groupName,
MQClientFactory* pfactory)
: OffsetStore(groupName, pfactory) {
MQConsumer* pConsumer = pfactory->selectConsumer(groupName);
if (pConsumer) {
LOG_INFO("new LocalFileOffsetStore");
string directoryName =
UtilAll::getLocalAddress() + "@" + pConsumer->getInstanceName();
m_storePath = ".rocketmq_offsets/" + directoryName + "/" + groupName;
string homeDir(UtilAll::getHomeDirectory());
m_storeFile = homeDir + "/" + m_storePath + "/offsets.Json";
}
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> support windows platform for rocketmq-cpp code
> -----------------------------------------------
>
> Key: ROCKETMQ-297
> URL: https://issues.apache.org/jira/browse/ROCKETMQ-297
> Project: Apache RocketMQ
> Issue Type: New Feature
> Reporter: wang qiwei
> Assignee: vongosling
>
> support windows platform for rocketmq-cpp code
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)