question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Your question

当前 Bolt 支持 IPV6 地址吗?

我们生产用的 JRaft, 在 IPV6 环境中测试时, 在 Raft 之间进行 RPC 通信时报错, 看报错信息是无法解析 IPV6 形式的 address, 涉 及的 Class 是 RpcAddressParser, 举个例子: [fdbd:dc02:ff:1:9::1b]:6663

除了这个已知问题外, 不知道其他方面 Bolt 支持 IPV6 吗?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
chuailiwucommented, Feb 26, 2022

补一个报错信息

2021-09-15 17:07:05.149 INFO  [JRaft-ElectionTimer-<ipv6_only/[fdbd:dc02:ff:1:9::1b]:6663>0] com.alipay.sofa.jraft.core.NodeImpl - Node <ipv6_only/[fdbd:dc02:ff:1:9::1b]:6663> term 1 start preVote.
2021-09-15 17:07:05.153 ERROR [JRaft-ElectionTimer-<ipv6_only/[fdbd:dc02:ff:1:9::1b]:6663>0] c.a.sofa.jraft.util.RepeatedTimer - Run timer failed.
java.lang.NumberFormatException: For input string: "dc02:ff:1:9::1b]:6661"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at java.lang.Integer.parseInt(Integer.java:615)
	at com.alipay.remoting.rpc.RpcAddressParser.parse(RpcAddressParser.java:150)
	at com.alipay.remoting.rpc.RpcClient.checkConnection(RpcClient.java:441)
	at com.alipay.remoting.rpc.RpcClient.checkConnection(RpcClient.java:435)
	at com.alipay.remoting.rpc.RpcClient.checkConnection(RpcClient.java:430)
	at com.alipay.sofa.jraft.rpc.impl.BoltRpcClient.checkConnection(BoltRpcClient.java:71)
	at com.alipay.sofa.jraft.rpc.impl.AbstractClientService.isConnected(AbstractClientService.java:81)
	at com.alipay.sofa.jraft.rpc.impl.AbstractClientService.connect(AbstractClientService.java:143)
	at com.alipay.sofa.jraft.core.NodeImpl.preVote(NodeImpl.java:2654)
	at com.alipay.sofa.jraft.core.NodeImpl.handleElectionTimeout(NodeImpl.java:629)
	at com.alipay.sofa.jraft.core.NodeImpl.access$1300(NodeImpl.java:138)
	at com.alipay.sofa.jraft.core.NodeImpl$2.onTrigger(NodeImpl.java:928)
	at com.alipay.sofa.jraft.util.RepeatedTimer.run(RepeatedTimer.java:86)
	at com.alipay.sofa.jraft.util.RepeatedTimer.lambda$schedule$0(RepeatedTimer.java:182)
	at com.alipay.sofa.jraft.util.timer.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:609)
	at com.alipay.sofa.jraft.util.timer.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:677)
	at com.alipay.sofa.jraft.util.timer.HashedWheelTimer$Worker.run(HashedWheelTimer.java:395)
	at java.lang.Thread.run(Thread.java:748)

这个问题我这边已经fix,并且本地用sofarpc 验证ipv6可以跑通,后面发版周知下你

1reaction
chuailiwucommented, Dec 6, 2022

已经出 1.6.6 版本支持ivp6

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test your IPv6.
This will test your browser and connection for IPv6 readiness, as well as show you your current IPv4 and IPv6 address.
Read more >
IPv6 - Wikipedia
IPv6 provides other technical benefits in addition to a larger addressing space. In particular, it permits hierarchical address allocation methods that ...
Read more >
IPv6 test - IPv6/4 connectivity and speed test
IPv6 -test.com is a free service that checks your IPv6 and IPv4 connectivity and speed. Diagnose connection problems, discover which address(es) you are ......
Read more >
IPv6 support - IBM
All supported servers and clients for IBM® Security Directory Server 6.2 and above versions are enabled to support IPv6 as well as IPv4...
Read more >
Internet Protocol Version 6: IPv6 for Consumers
Internet service providers (ISPs) will be upgrading to IPv6, and most personal computer operating systems support IPv6. However, many routers and servers ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found