You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Antonio Antonucci (Jira)" <ji...@apache.org> on 2022/03/06 14:15:00 UTC

[jira] [Updated] (ZOOKEEPER-4489) Refusing session request for client: zxid misalignment

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Antonucci updated ZOOKEEPER-4489:
-----------------------------------------
    Description: 
Hi everybody, I am having an issue zookeeper 3.6.3

Two things to highlight:
 * 1) The issue I am having is:

INFO Refusing session request for client /192.168.1.163:42230 as it has seen zxid 0xa25 our last zxid is 0x23 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)

>> Initially the zookeeper datadir was configured as per default under /tmp.

>> Following this error I have moved the datadir under /opt/zookeeper, deleted all the logs directory content and rebooted the server. 

>> Soon after the rebooting, the errror message was:

INFO Refusing session request for client /192.168.1.163:41738 as it has seen zxid 0xa25 our last zxid is 0x0 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)

>> However once I started Kafka, the error went back to the original "... it has seen zxid 0xa25 our last zxid is 0x23.. "

>> I don't know how to sort this out
 * 2) I have tried to run the ZkWorkarounderMultiThreaded java file (proposed in ZOOKEEPER-832), however I am getting the following errors:

ZkWorkarounderMultiThreaded.java
ZkWorkarounderMultiThreaded.java:40: error: cannot access ACL
    zk.create(path, data, Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
      ^
  class file for org.apache.zookeeper.data.ACL not found
ZkWorkarounderMultiThreaded.java:45: error: cannot access Stat
    zk.setData(path, data, zk.exists(path, true).getVersion());
                                    ^
  class file for org.apache.zookeeper.data.Stat not found
ZkWorkarounderMultiThreaded.java:58: error: cannot find symbol
    ExecutorService es = Executors.newCachedThreadPool();
    ^
  symbol:   class ExecutorService
  location: class ZkWorkarounderMultiThreaded
ZkWorkarounderMultiThreaded.java:58: error: cannot find symbol
    ExecutorService es = Executors.newCachedThreadPool();
                         ^
  symbol:   variable Executors
  location: class ZkWorkarounderMultiThreaded
4 errors
error: compilation failed

>> I have only included the following lines in the java code, however I guess things have changed with zk 3.6.3?

package core.framework.zookeeper;

import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.concurrent.CountDownLatch;

import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.Watcher.Event.KeeperState;
import org.apache.zookeeper.ZooDefs.Ids;
import org.apache.zookeeper.ZooKeeper;

import org.apache.zookeeper.KeeperException;

>> I don't literally know how to sort this out.

>> Can somebody help me please?

  was:
Hi everybody, I am having an issue zookeeper 3.6.3

Two things to highlight:
 * 1) The issue I am having is:

INFO Refusing session request for client /192.168.1.163:42230 as it has seen zxid 0xa25 our last zxid is 0x23 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)

>> Initially the zookeeper datadir was configured as per default under /tmp.

>> Following this error I have moved the datadir under /opt/zookeeper, deleted all the logs directory content and rebooted the server. 

>> Soon after the rebooting, the errror message was:

INFO Refusing session request for client /192.168.1.163:41738 as it has seen zxid 0xa25 our last zxid is 0x0 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)

>> However once I started Kafka, the error went back to the original "... it has seen zxid 0xa25 our last zxid is 0x23.. "

>> I don't know how to sort this out
 * 2) I have tried to run the ZkWorkarounderMultiThreaded java file, however I am getting the following errors:

ZkWorkarounderMultiThreaded.java
ZkWorkarounderMultiThreaded.java:40: error: cannot access ACL
    zk.create(path, data, Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
      ^
  class file for org.apache.zookeeper.data.ACL not found
ZkWorkarounderMultiThreaded.java:45: error: cannot access Stat
    zk.setData(path, data, zk.exists(path, true).getVersion());
                                    ^
  class file for org.apache.zookeeper.data.Stat not found
ZkWorkarounderMultiThreaded.java:58: error: cannot find symbol
    ExecutorService es = Executors.newCachedThreadPool();
    ^
  symbol:   class ExecutorService
  location: class ZkWorkarounderMultiThreaded
ZkWorkarounderMultiThreaded.java:58: error: cannot find symbol
    ExecutorService es = Executors.newCachedThreadPool();
                         ^
  symbol:   variable Executors
  location: class ZkWorkarounderMultiThreaded
4 errors
error: compilation failed

>> I have only included the following lines in the java code, however I guess things have changed with zk 3.6.3?

package core.framework.zookeeper;

import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.concurrent.CountDownLatch;

import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.Watcher.Event.KeeperState;
import org.apache.zookeeper.ZooDefs.Ids;
import org.apache.zookeeper.ZooKeeper;

import org.apache.zookeeper.KeeperException;

>> I don't literally know how to sort this out.

>> Can somebody help me please?


> Refusing session request for client: zxid misalignment
> ------------------------------------------------------
>
>                 Key: ZOOKEEPER-4489
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4489
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.6.3
>         Environment: Environment is:
>  * OS is Ubuntu 21.10
>  * kafka_2.13-3.1.0, which includes zookeeper 3.6.3–6401e4ad2087061bc6b9f80dec2d69f2e3c8660a.
>  * Configuration is standalone
>            Reporter: Antonio Antonucci
>            Priority: Blocker
>
> Hi everybody, I am having an issue zookeeper 3.6.3
> Two things to highlight:
>  * 1) The issue I am having is:
> INFO Refusing session request for client /192.168.1.163:42230 as it has seen zxid 0xa25 our last zxid is 0x23 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
> >> Initially the zookeeper datadir was configured as per default under /tmp.
> >> Following this error I have moved the datadir under /opt/zookeeper, deleted all the logs directory content and rebooted the server. 
> >> Soon after the rebooting, the errror message was:
> INFO Refusing session request for client /192.168.1.163:41738 as it has seen zxid 0xa25 our last zxid is 0x0 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
> >> However once I started Kafka, the error went back to the original "... it has seen zxid 0xa25 our last zxid is 0x23.. "
> >> I don't know how to sort this out
>  * 2) I have tried to run the ZkWorkarounderMultiThreaded java file (proposed in ZOOKEEPER-832), however I am getting the following errors:
> ZkWorkarounderMultiThreaded.java
> ZkWorkarounderMultiThreaded.java:40: error: cannot access ACL
>     zk.create(path, data, Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
>       ^
>   class file for org.apache.zookeeper.data.ACL not found
> ZkWorkarounderMultiThreaded.java:45: error: cannot access Stat
>     zk.setData(path, data, zk.exists(path, true).getVersion());
>                                     ^
>   class file for org.apache.zookeeper.data.Stat not found
> ZkWorkarounderMultiThreaded.java:58: error: cannot find symbol
>     ExecutorService es = Executors.newCachedThreadPool();
>     ^
>   symbol:   class ExecutorService
>   location: class ZkWorkarounderMultiThreaded
> ZkWorkarounderMultiThreaded.java:58: error: cannot find symbol
>     ExecutorService es = Executors.newCachedThreadPool();
>                          ^
>   symbol:   variable Executors
>   location: class ZkWorkarounderMultiThreaded
> 4 errors
> error: compilation failed
> >> I have only included the following lines in the java code, however I guess things have changed with zk 3.6.3?
> package core.framework.zookeeper;
> import java.io.IOException;
> import java.util.Date;
> import java.util.List;
> import java.util.concurrent.CountDownLatch;
> import org.apache.zookeeper.CreateMode;
> import org.apache.zookeeper.WatchedEvent;
> import org.apache.zookeeper.Watcher;
> import org.apache.zookeeper.Watcher.Event.KeeperState;
> import org.apache.zookeeper.ZooDefs.Ids;
> import org.apache.zookeeper.ZooKeeper;
> import org.apache.zookeeper.KeeperException;
> >> I don't literally know how to sort this out.
> >> Can somebody help me please?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)