zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eribeiro <...@git.apache.org>
Subject [GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...
Date Fri, 19 May 2017 04:08:52 GMT
Github user eribeiro commented on a diff in the pull request:

    --- Diff: src/java/test/org/apache/zookeeper/test/CnxManagerTest.java ---
    @@ -18,36 +18,32 @@
     package org.apache.zookeeper.test;
    -import java.io.ByteArrayInputStream;
    -import java.io.ByteArrayOutputStream;
    -import java.io.DataInputStream;
    -import java.io.DataOutputStream;
    -import java.io.File;
    -import java.net.InetSocketAddress;
    -import java.nio.ByteBuffer;
    -import java.nio.channels.SocketChannel;
    -import java.util.ArrayList;
    -import java.util.Date;
    -import java.util.HashMap;
    -import java.util.Random;
    -import java.util.concurrent.TimeUnit;
    -import java.net.Socket;
    -import org.apache.zookeeper.common.Time;
    -import org.slf4j.Logger;
    -import org.slf4j.LoggerFactory;
     import org.apache.zookeeper.PortAssignment;
     import org.apache.zookeeper.ZKTestCase;
    +import org.apache.zookeeper.common.Time;
     import org.apache.zookeeper.server.quorum.QuorumCnxManager;
    -import org.apache.zookeeper.server.quorum.QuorumCnxManager.Message;
     import org.apache.zookeeper.server.quorum.QuorumCnxManager.InitialMessage;
    +import org.apache.zookeeper.server.quorum.QuorumCnxManager.Message;
     import org.apache.zookeeper.server.quorum.QuorumPeer;
     import org.apache.zookeeper.server.quorum.QuorumPeer.LearnerType;
     import org.apache.zookeeper.server.quorum.QuorumPeer.QuorumServer;
     import org.apache.zookeeper.server.quorum.QuorumPeer.ServerState;
     import org.junit.Assert;
     import org.junit.Before;
     import org.junit.Test;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +import java.io.*;
    --- End diff --
    @asdf2014 FYI, ZK codebase gives preference to explicit imports instead of using wildcards.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message