Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
go client run in docker
Description
when go client run in docker, container got IP: 172.17.0.2
net/http.(*conn).serve.func1(0xc4204f3a40)
/usr/local/go/src/net/http/server.go:1721 +0xd0
panic(0x767120, 0x984ca0)
/usr/local/go/src/runtime/panic.go:489 +0x2cf
github.com/apache/incubator-rocketmq-externals/rocketmq-go/util.GetIp4Bytes(0x7, 0x3, 0xc42018e680)
/root/golang/na/src/github.com/apache/incubator-rocketmq-externals/rocketmq-go/util/ip.go:26 +0x6f
github.com/apache/incubator-rocketmq-externals/rocketmq-go/util.generatorMessageClientIdPrefix(0x9ad7d8, 0x7ec080)
/root/golang/na/src/github.com/apache/incubator-rocketmq-externals/rocketmq-go/util/message_client_id_generator.go:77 +0x34
github.com/apache/incubator-rocketmq-externals/rocketmq-go/util.GeneratorMessageClientId(0x0, 0x0)
/root/golang/na/src/github.com/apache/incubator-rocketmq-externals/rocketmq-go/util/message_client_id_generator.go:48 +0x3a4
github.com/apache/incubator-rocketmq-externals/rocketmq-go/model.(*Message).GeneratorMsgUniqueKey(0xc420015100)
/root/golang/na/src/github.com/apache/incubator-rocketmq-externals/rocketmq-go/model/message.go:72 +0x8d
github.com/apache/incubator-rocketmq-externals/rocketmq-go/service.(*DefaultProducerService).doSendMessage(0xc4201b8d20, 0xc420015100, 0x7dde2c, 0x1a, 0xc420019030, 0x8, 0x1, 0x7d5039, 0x4, 0x0, ...)
/root/golang/na/src/github.com/apache/incubator-rocketmq-externals/rocketmq-go/service/producer_service.go:214 +0x1c5
github.com/apache/incubator-rocketmq-externals/rocketmq-go/service.(*DefaultProducerService).sendMsgUseTopicPublishInfo(0xc4201b8d20, 0xc420015100, 0x7d5039, 0x4, 0x0, 0x0, 0xc4201b9bf0, 0xbb8, 0x41179c, 0xc4204d4b58, ...)
/root/golang/na/src/github.com/apache/incubator-rocketmq-externals/rocketmq-go/service/producer_service.go:186 +0x19a
github.com/apache/incubator-rocketmq-externals/rocketmq-go/service.(*DefaultProducerService).SendDefaultImpl(0xc4201b8d20, 0xc420015100, 0x7d5039, 0x4, 0x0, 0x0, 0xbb8, 0x98b7b0, 0x7d4ff1, 0x4)
/root/golang/na/src/github.com/apache/incubator-rocketmq-externals/rocketmq-go/service/producer_service.go:75 +0x2de
github.com/apache/incubator-rocketmq-externals/rocketmq-go.(*DefaultMQProducer).Send(0xc4201b8cf0, 0xc420015100, 0xc420049a40, 0xc4204d4bd8, 0x5ff335)
/root/golang/na/src/github.com/apache/incubator-rocketmq-externals/rocketmq-go/mq_producer.go:34 +0x75