-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the same datahost, disable readHost first, then disable writeHost, report ERROR message, but disable is successful #1843
Comments
the dble3.log shows that when the DataHostResponseListener get the notify from zk the data in PathChildrenCacheEvent is ''.Then the dble try to get the right data for once and go on the data parse as the code shows below:
But the data in zk was still empty, that cause this issue As a result, we thought the issue is caused by the unsynchronized zk data, we may try to fix it in the future |
For developer: public static void setStatusToZK(String nodePath, CuratorFramework curator, String value) throws Exception {
Stat stat = curator.checkExists().forPath(nodePath);
if (null == stat) {
ZKPaths.mkdirs(curator.getZookeeperClient().getZooKeeper(), nodePath); //the reason caused error
}
LOGGER.debug("ZkMultiLoader write file :" + nodePath + ", value :" + value);
curator.setData().inBackground().forPath(nodePath, value.getBytes());
} "ZKPaths.mkdirs" with two arguments will create the last node with empty string. ZKPaths.mkdirs(curator.getZookeeperClient().getZooKeeper(), nodePath , false); Or, replace "setStatusToZK" with "ClusterHelper.setKV". For user:This bug is already fixed in #1849. |
5.6.29-dble-2.20.04.99-76eddf968f3fa3236c08c61c389f9bf0c3d2330f-20200504004651
Use automation code to build a 3-node dble zk cluster
schema.xml
rule.xml
server.xml
step2 succeed without any ERROR code
The text was updated successfully, but these errors were encountered: