[
https://issues.apache.org/jira/browse/ZOOKEEPER-4603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jia Shuo updated ZOOKEEPER-4603:
--------------------------------
Description:
As title, when I read data by c client 3.7 from 3.4.15, the zoo log as:
{code:java}
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1250: Client
environment:zookeeper.version=zookeeper C client 3.7.0
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1254: Client
environment:host.name=host
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1261: Client
environment:os.name=Linux
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1262: Client
environment:os.arch=3.18.6-2.el7.centos.x86_64
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1263: Client
environment:os.version=#1 SMP Mon Oct 24 13:01:33 CST 2016
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1271: Client
environment:user.name=(null)
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1279: Client
environment:user.home=/home/work
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1291: Client
environment:user.dir=/home/work/app/pegasus/tjwqtst-msg/meta
2022-07-28
16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@zookeeper_init_internal@1344:
Initiating client connection, host=host:21000 sessionTimeout=10000
watcher=0x7f2fa97f1fc0 sessionId=0 sessionPasswd=<null> context=0x2082790
flags=0
2022-07-28 16:25:15,449:63056(0x7f2f7c652700):ZOO_INFO@check_events@2988:
initiated connection to server IP:21000
2022-07-28
16:25:15,467:63056(0x7f2f7c652700):ZOO_INFO@finalize_session_establishment@2868:
session establishment complete on server IP:21000,
sessionId=0xff82392b354205db, negotiated timeout=10000
2022-07-28 16:25:47,814:63056(0x7f2f7c652700):ZOO_WARN@zookeeper_interest@2532:
Exceeded deadline by 1021ms
2022-07-28 16:26:13,404:63056(0x7f2f7c652700):ZOO_WARN@zookeeper_interest@2532:
Exceeded deadline by 1021ms
2022-07-28 16:26:29,014:63056(0x7f2f7c652700):ZOO_ERROR@resolve_hosts@947:
getaddrinfo: Name or service not known {code}
But when change the zk host to ip, the error is not 发生!
So why this? is it compatible
was:
As title, when I read data by c client 3.7 from 3.4.15, the zoo log as:
{code:java}
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1250: Client
environment:zookeeper.version=zookeeper C client 3.7.0
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1254: Client
environment:host.name=host
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1261: Client
environment:os.name=Linux
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1262: Client
environment:os.arch=3.18.6-2.el7.centos.x86_64
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1263: Client
environment:os.version=#1 SMP Mon Oct 24 13:01:33 CST 2016
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1271: Client
environment:user.name=(null)
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1279: Client
environment:user.home=/home/work
2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1291: Client
environment:user.dir=/home/work/app/pegasus/tjwqtst-msg/meta
2022-07-28
16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@zookeeper_init_internal@1344:
Initiating client connection, host=host:21000 sessionTimeout=10000
watcher=0x7f2fa97f1fc0 sessionId=0 sessionPasswd=<null> context=0x2082790
flags=0
2022-07-28 16:25:15,449:63056(0x7f2f7c652700):ZOO_INFO@check_events@2988:
initiated connection to server IP:21000
2022-07-28
16:25:15,467:63056(0x7f2f7c652700):ZOO_INFO@finalize_session_establishment@2868:
session establishment complete on server IP:21000,
sessionId=0xff82392b354205db, negotiated timeout=10000
2022-07-28 16:25:47,814:63056(0x7f2f7c652700):ZOO_WARN@zookeeper_interest@2532:
Exceeded deadline by 1021ms
2022-07-28 16:26:13,404:63056(0x7f2f7c652700):ZOO_WARN@zookeeper_interest@2532:
Exceeded deadline by 1021ms
2022-07-28 16:26:29,014:63056(0x7f2f7c652700):ZOO_ERROR@resolve_hosts@947:
getaddrinfo: Name or service not known {code}
But when change the zk host to ip, the error is not occure!
So why this? is it compatible
> C client(3.7) can't read data from server 3.4.15 via host
> -----------------------------------------------------------
>
> Key: ZOOKEEPER-4603
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4603
> Project: ZooKeeper
> Issue Type: Bug
> Components: c client
> Reporter: Jia Shuo
> Priority: Major
>
> As title, when I read data by c client 3.7 from 3.4.15, the zoo log as:
> {code:java}
> 2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1250: Client
> environment:zookeeper.version=zookeeper C client 3.7.0
> 2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1254: Client
> environment:host.name=host
> 2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1261: Client
> environment:os.name=Linux
> 2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1262: Client
> environment:os.arch=3.18.6-2.el7.centos.x86_64
> 2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1263: Client
> environment:os.version=#1 SMP Mon Oct 24 13:01:33 CST 2016
> 2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1271: Client
> environment:user.name=(null)
> 2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1279: Client
> environment:user.home=/home/work
> 2022-07-28 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@log_env@1291: Client
> environment:user.dir=/home/work/app/pegasus/tjwqtst-msg/meta
> 2022-07-28
> 16:25:15,412:63056(0x7f2f8d699700):ZOO_INFO@zookeeper_init_internal@1344:
> Initiating client connection, host=host:21000 sessionTimeout=10000
> watcher=0x7f2fa97f1fc0 sessionId=0 sessionPasswd=<null> context=0x2082790
> flags=0
> 2022-07-28 16:25:15,449:63056(0x7f2f7c652700):ZOO_INFO@check_events@2988:
> initiated connection to server IP:21000
> 2022-07-28
> 16:25:15,467:63056(0x7f2f7c652700):ZOO_INFO@finalize_session_establishment@2868:
> session establishment complete on server IP:21000,
> sessionId=0xff82392b354205db, negotiated timeout=10000
> 2022-07-28
> 16:25:47,814:63056(0x7f2f7c652700):ZOO_WARN@zookeeper_interest@2532: Exceeded
> deadline by 1021ms
> 2022-07-28
> 16:26:13,404:63056(0x7f2f7c652700):ZOO_WARN@zookeeper_interest@2532: Exceeded
> deadline by 1021ms
> 2022-07-28 16:26:29,014:63056(0x7f2f7c652700):ZOO_ERROR@resolve_hosts@947:
> getaddrinfo: Name or service not known {code}
> But when change the zk host to ip, the error is not 发生!
>
> So why this? is it compatible
--
This message was sent by Atlassian Jira
(v8.20.10#820010)