kubernetes - Zookeeper refuses Kafka connection from an old client -
i have cluster configuration using kubernetes on gce, have pod zookeeper , other kafka; working until zookeeper crashed , restarted, , start refusing connections kafka pod:
refusing session request client
/10.4.4.58:52260
has seenzxid 0x1962630
the complete refusal log here:
2017-08-21 20:05:32,013 [myid:] - info [nioservercxn.factory:0.0.0.0/0.0.0.0:2181:nioservercnxnfactory@192] - accepted socket connection /10.4.4.58:52260 2017-08-21 20:05:32,013 [myid:] - warn [nioservercxn.factory:0.0.0.0/0.0.0.0:2181:zookeeperserver@882] - connection request old client /10.4.4.58:52260; dropped if server in r-o mode 2017-08-21 20:05:32,013 [myid:] - info [nioservercxn.factory:0.0.0.0/0.0.0.0:2181:zookeeperserver@901] - refusing session request client /10.4.4.58:52260 has seen zxid 0x1962630 our last zxid 0xab client must try server 2017-08-21 20:05:32,013 [myid:] - info [nioservercxn.factory:0.0.0.0/0.0.0.0:2181:nioservercnxn@1008] - closed socket connection client /10.4.4.58:52260 (no session established client)
because kafka maintain zookeeper session remember last zxid has seen. when zookeeper sevice go down , come again, zk's zxid begin smaller value. , zkserver think kafka has seen bigger zxid, refuse it.
have try restart kafka.
wiki
Comments
Post a Comment