[GitHub] zookeeper issue #310: [ZOOKEEPER-2845][Test] Test used to reproduce the data...

2018-01-29 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/310 @lvfangmin I am trying to reproduce the issue you have seen here, and I have not been able to do so. The test either fails for me with the same leader being elected each time, or on

[GitHub] zookeeper issue #310: [ZOOKEEPER-2845][Test] Test used to reproduce the data...

2018-01-29 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/310 Apparently for some reason I don't understand if I don't run all of the tests in QuorumPeerMainTest The old leader is elected again each time. ---

[GitHub] zookeeper pull request #453: ZOOKEEPER-2845: Send a SNAP if transactions can...

2018-01-31 Thread revans2
GitHub user revans2 opened a pull request: https://github.com/apache/zookeeper/pull/453 ZOOKEEPER-2845: Send a SNAP if transactions cannot be verified. I will be creating a patch/pull request for 3.4 and 3.5 too, but I wanted to get a pull request up for others to look at ASAP

[GitHub] zookeeper pull request #454: ZOOKEEPER-2845: Send a SNAP if transactions can...

2018-01-31 Thread revans2
GitHub user revans2 opened a pull request: https://github.com/apache/zookeeper/pull/454 ZOOKEEPER-2845: Send a SNAP if transactions cannot be verified. (3.5) This is the version of #453 for the 3.5 branch You can merge this pull request into a Git repository by running: $ git

[GitHub] zookeeper pull request #455: ZOOKEEPER-2845: Send a SNAP if transactions can...

2018-01-31 Thread revans2
GitHub user revans2 opened a pull request: https://github.com/apache/zookeeper/pull/455 ZOOKEEPER-2845: Send a SNAP if transactions cannot be verified. This is the version of #453 for the 3.4 branch You can merge this pull request into a Git repository by running: $ git pull

[GitHub] zookeeper issue #453: ZOOKEEPER-2845: Apply commit log when restarting serve...

2018-02-13 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/453 Thank you to everyone who reviewed the patch, but with the help of Fangmin Lv I found one case that the original patch didn't cover. I have reworked the patch to cover that case, but to do

[GitHub] zookeeper pull request #453: ZOOKEEPER-2845: Apply commit log when restartin...

2018-02-13 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/453#discussion_r167885280 --- Diff: src/java/main/org/apache/zookeeper/server/ZKDatabase.java --- @@ -233,14 +233,32 @@ public long getDataTreeLastProcessedZxid

[GitHub] zookeeper issue #453: ZOOKEEPER-2845: Apply commit log when restarting serve...

2018-02-13 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/453 @anmolnar I will add some kind of a test. I ran into a lot of issues with `testTxnAheadSnapInRetainDB`. I could not get it to run correctly against master as it would always end up electing the

[GitHub] zookeeper issue #453: ZOOKEEPER-2845: Apply commit log when restarting serve...

2018-02-13 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/453 @anmolnar I added in an updated version of the test in #310. The issue turned out to be a race condition where the original leader would time out clients and then would join the new quorum too

[GitHub] zookeeper pull request #453: ZOOKEEPER-2845: Apply commit log when restartin...

2018-02-16 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/453#discussion_r168793764 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java --- @@ -888,4 +888,127 @@ public void testWithOnlyMinSessionTimeout

[GitHub] zookeeper pull request #453: ZOOKEEPER-2845: Apply commit log when restartin...

2018-02-16 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/453#discussion_r168794042 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java --- @@ -888,4 +888,127 @@ public void testWithOnlyMinSessionTimeout

[GitHub] zookeeper pull request #453: ZOOKEEPER-2845: Apply commit log when restartin...

2018-02-16 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/453#discussion_r168795646 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java --- @@ -435,7 +435,7 @@ private void waitForOne(ZooKeeper zk, States

[GitHub] zookeeper pull request #453: ZOOKEEPER-2845: Apply commit log when restartin...

2018-02-16 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/453#discussion_r168807853 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java --- @@ -888,4 +888,127 @@ public void testWithOnlyMinSessionTimeout

[GitHub] zookeeper pull request #453: ZOOKEEPER-2845: Apply commit log when restartin...

2018-02-16 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/453#discussion_r168807914 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java --- @@ -888,4 +888,127 @@ public void testWithOnlyMinSessionTimeout

[GitHub] zookeeper pull request #453: ZOOKEEPER-2845: Apply commit log when restartin...

2018-02-16 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/453#discussion_r168807976 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java --- @@ -888,4 +888,127 @@ public void testWithOnlyMinSessionTimeout

[GitHub] zookeeper pull request #453: ZOOKEEPER-2845: Apply commit log when restartin...

2018-02-16 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/453#discussion_r168807943 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java --- @@ -888,4 +888,127 @@ public void testWithOnlyMinSessionTimeout

[GitHub] zookeeper issue #453: ZOOKEEPER-2845: Apply commit log when restarting serve...

2018-02-16 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/453 @afine and @anmolnar I think I have addressed all of your review comments, except for the one about the change to `waitForOne` and I am happy to adjust however you want there. ---

[GitHub] zookeeper pull request #453: ZOOKEEPER-2845: Apply commit log when restartin...

2018-02-21 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/453#discussion_r169662234 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java --- @@ -888,4 +923,103 @@ public void testWithOnlyMinSessionTimeout

[GitHub] zookeeper issue #453: ZOOKEEPER-2845: Apply commit log when restarting serve...

2018-02-21 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/453 @afine I have addressed you most recent comments. If you want me to squash commits please let me know. I have a pull request for the 3.5 branch #454 and for the 3.4 branch #455

[GitHub] zookeeper issue #454: ZOOKEEPER-2845: Apply commit log when restarting serve...

2018-02-21 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/454 I just rebased this and pulled in all of the changes made to the main test. ---

[GitHub] zookeeper issue #455: ZOOKEEPER-2845: Apply commit log when restarting serve...

2018-02-21 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/455 I just rebased this and pulled in all of the changes made to the main test. ---

[GitHub] zookeeper issue #453: ZOOKEEPER-2845: Apply commit log when restarting serve...

2018-02-21 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/453 @afine all of the changes in this branch are now in the pull requests to the 3.5 and 3.5 branches, ---

[GitHub] zookeeper pull request #454: ZOOKEEPER-2845: Apply commit log when restartin...

2018-02-27 Thread revans2
Github user revans2 closed the pull request at: https://github.com/apache/zookeeper/pull/454 ---

[GitHub] zookeeper pull request #455: ZOOKEEPER-2845: Apply commit log when restartin...

2018-02-27 Thread revans2
Github user revans2 closed the pull request at: https://github.com/apache/zookeeper/pull/455 ---

[GitHub] zookeeper issue #453: ZOOKEEPER-2845: Apply commit log when restarting serve...

2018-02-27 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/453 Thanks @afine I closed them. ---

[GitHub] zookeeper pull request #282: ZOOKEEPER-1782: Let a SASL super user be super

2017-06-14 Thread revans2
GitHub user revans2 opened a pull request: https://github.com/apache/zookeeper/pull/282 ZOOKEEPER-1782: Let a SASL super user be super You can merge this pull request into a Git repository by running: $ git pull https://github.com/revans2/zookeeper ZOOKEEPER-1782

[GitHub] zookeeper issue #282: ZOOKEEPER-1782: Let a SASL super user be super

2017-06-17 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/282 @hanm Thanks for the review. I think I have addressed all of your review comments. I originally put the patch up in 2013 and I have not touched it since so I honestly don't remember a lot

[GitHub] zookeeper pull request #282: ZOOKEEPER-1782: Let a SASL super user be super

2017-06-19 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/282#discussion_r122698936 --- Diff: src/java/main/org/apache/zookeeper/server/auth/SASLAuthenticationProvider.java --- @@ -38,11 +38,6 @@ public String getScheme

[GitHub] zookeeper issue #282: ZOOKEEPER-1782: Let a SASL super user be super

2017-06-19 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/282 @arshadmohammad I think I have addressed your review comments --- 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

[GitHub] zookeeper pull request #282: ZOOKEEPER-1782: Let a SASL super user be super

2017-06-21 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/282#discussion_r123330561 --- Diff: src/java/main/org/apache/zookeeper/server/auth/SASLAuthenticationProvider.java --- @@ -38,11 +38,6 @@ public String getScheme

[GitHub] zookeeper issue #282: ZOOKEEPER-1782: Let a SASL super user be super

2017-06-21 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/282 @arshadmohammad if everything looks good I will squash my commits --- 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

[GitHub] zookeeper issue #282: ZOOKEEPER-1782: Let a SASL super user be super

2017-06-22 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/282 @hanm I didn't add in `zookeeper.superUser`. I am happy to document it if you tell me where to make that change. I don't know where the documentation source is stored. I am happy to

[GitHub] zookeeper issue #282: ZOOKEEPER-1782: Let a SASL super user be super

2017-06-23 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/282 @hanm I added in the docs. --- 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

[GitHub] zookeeper issue #310: [ZOOKEEPER-2845][Test] Test used to reproduce the data...

2017-09-05 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/310 @lvfangmin any update on getting a pull request for the actual fix? ---

[GitHub] zookeeper pull request #148: ZOOKEEPER-2659 Log4j 2 migration

2017-01-17 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/148#discussion_r96435980 --- Diff: ivy.xml --- @@ -41,13 +41,20

[GitHub] zookeeper pull request #157: ZOOKEEPER-2678: Discovery and Sync can take a v...

2017-01-26 Thread revans2
GitHub user revans2 opened a pull request: https://github.com/apache/zookeeper/pull/157 ZOOKEEPER-2678: Discovery and Sync can take a very long time on large DB This patch addresses recovery time when a leader is lost on a large DB. It does this by not clearing the DB

[GitHub] zookeeper pull request #157: ZOOKEEPER-2678: Discovery and Sync can take a v...

2017-01-30 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/157#discussion_r98449817 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/Learner.java --- @@ -364,10 +367,12 @@ else if (qp.getType() == Leader.SNAP

[GitHub] zookeeper issue #157: ZOOKEEPER-2678: Discovery and Sync can take a very lon...

2017-01-30 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/157 @fpj Thanks for the review I will update the comments and start porting it to other lines. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub

[GitHub] zookeeper pull request #159: ZOOKEEPER-2678: Discovery and Sync can take a v...

2017-01-30 Thread revans2
GitHub user revans2 opened a pull request: https://github.com/apache/zookeeper/pull/159 ZOOKEEPER-2678: Discovery and Sync can take a very long time on large DBs This is the master version of #157 You can merge this pull request into a Git repository by running: $ git pull

[GitHub] zookeeper pull request #158: ZOOKEEPER-2678: Discovery and Sync can take a v...

2017-01-30 Thread revans2
GitHub user revans2 opened a pull request: https://github.com/apache/zookeeper/pull/158 ZOOKEEPER-2678: Discovery and Sync can take a very long time on large DBs This is the 3.5 version of #157 You can merge this pull request into a Git repository by running: $ git pull https

[GitHub] zookeeper issue #157: ZOOKEEPER-2678: Discovery and Sync can take a very lon...

2017-01-30 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/157 @fpj I addressed your review comments, and I also found another race in the ZAB test that I addressed. Apparently the log line I removed was taking enough time for the transactions to be fully

[GitHub] zookeeper issue #157: ZOOKEEPER-2678: Discovery and Sync can take a very lon...

2017-01-30 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/157 @eribeiro will do. It is a clean cherry pick between master and 3.5 --- 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

[GitHub] zookeeper issue #158: ZOOKEEPER-2678: Discovery and Sync can take a very lon...

2017-01-30 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/158 Closing this because master applies cleanly to 3.5 as well --- 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

[GitHub] zookeeper issue #159: ZOOKEEPER-2678: Discovery and Sync can take a very lon...

2017-01-30 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/159 This also applies cleanly to the 3.5 line #157 is for the 3.4 line --- 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

[GitHub] zookeeper pull request #158: ZOOKEEPER-2678: Discovery and Sync can take a v...

2017-01-30 Thread revans2
Github user revans2 closed the pull request at: https://github.com/apache/zookeeper/pull/158 --- 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

[GitHub] zookeeper pull request #157: ZOOKEEPER-2678: Discovery and Sync can take a v...

2017-01-31 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/157#discussion_r98744573 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/Zab1_0Test.java --- @@ -839,12 +839,25 @@ public void converseWithFollower(InputArchive ia

[GitHub] zookeeper issue #157: ZOOKEEPER-2678: Discovery and Sync can take a very lon...

2017-01-31 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/157 @hanm I addressed your review comments. --- 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

[GitHub] zookeeper pull request #157: ZOOKEEPER-2678: Discovery and Sync can take a v...

2017-02-03 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/157#discussion_r99347551 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/Zab1_0Test.java --- @@ -839,12 +839,25 @@ public void converseWithFollower(InputArchive ia

[GitHub] zookeeper issue #157: ZOOKEEPER-2678: Discovery and Sync can take a very lon...

2017-02-06 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/157 @afine I updated the test to spy on the `LearnerZooKeeperServer` instance and check if and when `takeSnapshot` was called. I think this fulfills your desires, but with tests there can always be

[GitHub] zookeeper issue #157: ZOOKEEPER-2678: Discovery and Sync can take a very lon...

2017-02-09 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/157 Is there any more I need to do to get this merged in? --- 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

[GitHub] zookeeper pull request #159: ZOOKEEPER-2678: Discovery and Sync can take a v...

2017-02-10 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/159#discussion_r100552192 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/Learner.java --- @@ -498,14 +504,19 @@ else if (qp.getType() == Leader.SNAP

[GitHub] zookeeper issue #159: ZOOKEEPER-2678: Discovery and Sync can take a very lon...

2017-02-10 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/159 @hanm thanks for the reviews I removed the incorrect comment. --- 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

[GitHub] zookeeper issue #157: ZOOKEEPER-2678: Discovery and Sync can take a very lon...

2017-02-13 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/157 @rakeshadr If it makes you feel any better we have been running with an older version of this patch in production for a while. We have used it as part of a rolling upgrade at least 10 times in

[GitHub] zookeeper pull request #180: ZOOKEEPER-2700 add `snap` command to take snaps...

2017-02-17 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/180#discussion_r101775786 --- Diff: src/java/main/org/apache/zookeeper/server/command/SnapCommand.java --- @@ -0,0 +1,53 @@ +/** + * Licensed to the Apache Software

[GitHub] zookeeper pull request #180: ZOOKEEPER-2700 add JMX `takeSnapshot` method an...

2017-02-21 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/180#discussion_r102229805 --- Diff: src/java/main/org/apache/zookeeper/server/ZooKeeperServer.java --- @@ -303,15 +305,38 @@ public void loadData() throws IOException

[GitHub] zookeeper pull request #180: ZOOKEEPER-2700 add JMX `takeSnapshot` method an...

2017-02-21 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/180#discussion_r10749 --- Diff: src/java/main/org/apache/zookeeper/server/ZooKeeperServer.java --- @@ -303,15 +305,38 @@ public void loadData() throws IOException

[GitHub] zookeeper issue #180: ZOOKEEPER-2700 add JMX `takeSnapshot` method and Jetty...

2017-02-21 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/180 Oh I also had the idea that it might be nice to provide feedback on the snap command for both JMX and the Admin command. You could provide more then just the last zxid, but you could also

[GitHub] zookeeper pull request #180: ZOOKEEPER-2700 add JMX `takeSnapshot` method an...

2017-02-21 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/180#discussion_r102245094 --- Diff: src/java/main/org/apache/zookeeper/server/ZooKeeperServer.java --- @@ -303,15 +305,38 @@ public void loadData() throws IOException

[GitHub] zookeeper pull request #180: ZOOKEEPER-2700 add JMX `takeSnapshot` method an...

2017-02-21 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/180#discussion_r102283801 --- Diff: src/java/main/org/apache/zookeeper/server/ZooKeeperServer.java --- @@ -303,15 +305,38 @@ public void loadData() throws IOException

[GitHub] zookeeper pull request #157: ZOOKEEPER-2678: Discovery and Sync can take a v...

2017-04-18 Thread revans2
Github user revans2 closed the pull request at: https://github.com/apache/zookeeper/pull/157 --- 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

[GitHub] zookeeper pull request #648: ZOOKEEPER-3156: Add in option to canonicalize h...

2018-09-28 Thread revans2
GitHub user revans2 opened a pull request: https://github.com/apache/zookeeper/pull/648 ZOOKEEPER-3156: Add in option to canonicalize host name You can merge this pull request into a Git repository by running: $ git pull https://github.com/revans2/zookeeper ZOOKEEPER-3156-3.4

[GitHub] zookeeper pull request #648: ZOOKEEPER-3156: Add in option to canonicalize h...

2018-09-28 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/648#discussion_r221376870 --- Diff: src/java/main/org/apache/zookeeper/ClientCnxn.java --- @@ -990,6 +992,27 @@ private void sendPing() { private boolean

[GitHub] zookeeper pull request #648: ZOOKEEPER-3156: Add in option to canonicalize h...

2018-09-28 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/648#discussion_r221377101 --- Diff: src/java/main/org/apache/zookeeper/ClientCnxn.java --- @@ -990,6 +992,27 @@ private void sendPing() { private boolean

[GitHub] zookeeper issue #648: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-09-28 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/648 @anmolnar I think I have addressed all of your comments. Please have another look. ---

[GitHub] zookeeper issue #648: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-01 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/648 I just addressed the review comments if things look good I am happy to squash commits. I'll also put up pull requests to the other lines, now that it looks like we have the majority of the

[GitHub] zookeeper pull request #652: ZOOKEEPER-3156: Add in option to canonicalize h...

2018-10-01 Thread revans2
GitHub user revans2 opened a pull request: https://github.com/apache/zookeeper/pull/652 ZOOKEEPER-3156: Add in option to canonicalize host name This is the master and 3.5 version of #648. It should apply cleanly to both lines, but if you want a separate pull request for each I am

[GitHub] zookeeper pull request #652: ZOOKEEPER-3156: Add in option to canonicalize h...

2018-10-01 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/652#discussion_r221749153 --- Diff: src/java/main/org/apache/zookeeper/ClientCnxn.java --- @@ -1102,7 +1103,32 @@ private void startConnect(InetSocketAddress addr) throws

[GitHub] zookeeper issue #648: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-01 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/648 Sorry yes. I'll get on the test case... ---

[GitHub] zookeeper issue #648: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-01 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/648 So I am running into some issues with the tests as all of the methods to InetSocketAddress are marked as final and as such I cannot mock them. This means I would need a set of host names that are

[GitHub] zookeeper issue #648: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-01 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/648 Looks like it is mockito-all not powermock-api-mockito. I can try and change it and see. ---

[GitHub] zookeeper issue #648: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-01 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/648 I tried to add in powermock too, but it conflicts with mockito (power mock uses a much older version of mockito-core). I'll try and use a different API for powermock instead of mockito. ---

[GitHub] zookeeper issue #652: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-01 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/652 Added in the test. ---

[GitHub] zookeeper issue #648: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-01 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/648 I just added in a test and made the code match closer to how master/3.5 work for the canonical host name. ---

[GitHub] zookeeper pull request #652: ZOOKEEPER-3156: Add in option to canonicalize h...

2018-10-02 Thread revans2
Github user revans2 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/652#discussion_r221956355 --- Diff: src/java/main/org/apache/zookeeper/ClientCnxn.java --- @@ -793,7 +794,87 @@ public RWServerFoundException(String msg) { super

[GitHub] zookeeper issue #648: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-02 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/648 There were some comments in the other pull request about the test code. I will address them in both places. ---

[GitHub] zookeeper issue #652: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-02 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/652 @anmolnar and @lvfangmin I think I have addressed all of your review comments. I named the new class SaslServerPrincipal but if you have a different idea for a name I am happy to change it. ---

[GitHub] zookeeper issue #652: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-03 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/652 Ping @eolivelli @lvfangmin @anmolnar I think I have addressed all of the concerns on both branches. The test failure here looks unrelated to the changes that I made. ---

[GitHub] zookeeper issue #648: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-04 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/648 Thanks for all of the reviews I just rebased and squashed commits. ---

[GitHub] zookeeper issue #652: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-04 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/652 Thanks for all of the reviews I just rebased and squashed commits. ---

[GitHub] zookeeper issue #652: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-05 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/652 I just rebased to deal with the directories being moved around. ---

[GitHub] zookeeper issue #652: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-16 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/652 Ping any hope in getting this merged in? ---

[GitHub] zookeeper issue #652: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-10-31 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/652 @anmolnar sorry it took me so long. I was out on vacation. ---

[GitHub] zookeeper issue #648: ZOOKEEPER-3156: Add in option to canonicalize host nam...

2018-11-06 Thread revans2
Github user revans2 commented on the issue: https://github.com/apache/zookeeper/pull/648 Thanks ---

[GitHub] zookeeper pull request #648: ZOOKEEPER-3156: Add in option to canonicalize h...

2018-11-06 Thread revans2
Github user revans2 closed the pull request at: https://github.com/apache/zookeeper/pull/648 ---