Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Warning about 'old client' missing 'readOnly' flag #86

Description

@JasonRosenberg

We are using the client to connect to a 3.4.6 zookeeper server. On connect, we get these warnings in the zk server log:

- Connection request from old client /127.0.0.1:51335; will be dropped if server is in r-o mode

Looking at the source code in ZooKeeperServer.java, there's this:

        boolean readOnly = false;
        try {
            readOnly = bia.readBool("readOnly");
            cnxn.isOldClient = false;
        } catch (IOException e) {
            // this is ok -- just a packet from an old client which
            // doesn't contain readOnly field
            LOG.warn("Connection request from old client "
                    + cnxn.getRemoteSocketAddress()
                    + "; will be dropped if server is in r-o mode");
        }

It appears this is ok, but the client should probably be updated to look like a current client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions