[GitHub] zookeeper issue #294: ZOOKEEPER-2822: Wrong `ObjectName` about `MBeanServer`...

2018-11-27 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/294 You are welcome. ---

[GitHub] zookeeper issue #294: ZOOKEEPER-2822: Wrong `ObjectName` about `MBeanServer`...

2018-11-26 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/294 Hi, @anmolnar @eolivelli . Is there anything I need to do before we merge this PR? ---

[GitHub] zookeeper issue #294: ZOOKEEPER-2822: Wrong `ObjectName` about `MBeanServer`...

2018-11-21 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/294 @eolivelli @anmolnar Thanks for your approval. ---

[GitHub] zookeeper pull request #294: ZOOKEEPER-2822: Wrong `ObjectName` about `MBean...

2018-11-20 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/294#discussion_r234997204 --- Diff: zookeeper-server/src/main/java/org/apache/zookeeper/jmx/ManagedUtil.java --- @@ -69,9 +69,13 @@ public static void registerLog4jMBeans

[GitHub] zookeeper pull request #294: ZOOKEEPER-2822: Wrong `ObjectName` about `MBean...

2018-11-20 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/294#discussion_r234959406 --- Diff: zookeeper-server/src/main/java/org/apache/zookeeper/jmx/ManagedUtil.java --- @@ -69,9 +69,13 @@ public static void registerLog4jMBeans

[GitHub] zookeeper issue #294: ZOOKEEPER-2822: Wrong `ObjectName` about `MBeanServer`...

2018-11-20 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/294 @eolivelli Thanks for your comment. I will describe this variable in `zookeeperJMX.md`. ---

[GitHub] zookeeper issue #294: ZOOKEEPER-2822: Wrong `ObjectName` about `MBeanServer`...

2018-11-18 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/294 @eolivelli Yep, I agree with you. ---

[GitHub] zookeeper pull request #:

2018-11-18 Thread asdf2014
Github user asdf2014 commented on the pull request: https://github.com/apache/zookeeper/commit/82da83a7176bbdd73dedb6fc3d96dac706cefad3#commitcomment-31341678 In zookeeper-server/src/main/java/org/apache/zookeeper/jmx/ManagedUtil.java: In zookeeper-server/src/main/java/org/apache

[GitHub] zookeeper pull request #294: ZOOKEEPER-2822: Wrong `ObjectName` about `MBean...

2018-11-18 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/294#discussion_r234446570 --- Diff: zookeeper-server/src/main/java/org/apache/zookeeper/jmx/ManagedUtil.java --- @@ -71,7 +71,7 @@ public static void registerLog4jMBeans() throws

[GitHub] zookeeper pull request #294: ZOOKEEPER-2822: Wrong `ObjectName` about `MBean...

2018-11-17 Thread asdf2014
GitHub user asdf2014 reopened a pull request: https://github.com/apache/zookeeper/pull/294 ZOOKEEPER-2822: Wrong `ObjectName` about `MBeanServer` in JMX module The wrong `ObjectName` about `MBeanServer` in JMX module, should `log4j:hierarchy=default` rather than `log4j:hiearchy

[GitHub] zookeeper pull request #294: ZOOKEEPER-2822: Wrong `ObjectName` about `MBean...

2018-11-17 Thread asdf2014
Github user asdf2014 closed the pull request at: https://github.com/apache/zookeeper/pull/294 ---

[GitHub] zookeeper pull request #303: ZOOKEEPER-2840: Should using `System.nanoTime()...

2018-04-15 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/303#discussion_r181613274 --- Diff: src/java/main/org/apache/zookeeper/client/StaticHostProvider.java --- @@ -71,7 +71,7 @@ * if serverAddresses is empty

[GitHub] zookeeper issue #296: ZOOKEEPER-2824: `FileChannel#size` info should be adde...

2018-02-01 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/296 @afine You are welcome :-) ---

[GitHub] zookeeper issue #296: ZOOKEEPER-2824: `FileChannel#size` info should be adde...

2018-01-30 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/296 @phunt @afine Thank you for those suggestions. Considered very thoughtful. Already fixed. ---

[GitHub] zookeeper issue #296: ZOOKEEPER-2824: `FileChannel#size` info should be adde...

2018-01-11 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/296 Hi, @anmolnar . Thanks, would you approve this PR? ---

[GitHub] zookeeper issue #296: ZOOKEEPER-2824: `FileChannel#size` info should be adde...

2017-12-21 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/296 @afine Could you approve this PR? @phunt @anmolnar PTAL.  Just recently, i experienced this situation again, this time due to the bad disk rather than the huge WAL file

[GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over...

2017-12-14 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/262 Hi, @breed . Thanks for your comment. You are right, we should keep the enough epoch value to avoid meet the epoch overflow. So i offer a better solution is 24-bit epoch in second comment. Even

[GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over...

2017-12-13 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/262 Hi, @phunt . Indeed, the `FastLeaderElection` algorithm is very efficient. Most of the leader election situation would finished in hundreds milliseconds. However, some real-time stream

[GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over...

2017-12-07 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/262 @JarenGlover It's a good idea, but not the best solution. Still we can using the `restart` operation to solve this problem without any changes to Zookeeper for now. (BTW, you are welcome to get

[GitHub] zookeeper pull request #361: ZOOKEEPER-2892: Improve lazy initialize and clo...

2017-09-18 Thread asdf2014
Github user asdf2014 closed the pull request at: https://github.com/apache/zookeeper/pull/361 ---

[GitHub] zookeeper pull request #361: ZOOKEEPER-2892: Improve lazy initialize and clo...

2017-09-18 Thread asdf2014
GitHub user asdf2014 reopened a pull request: https://github.com/apache/zookeeper/pull/361 ZOOKEEPER-2892: Improve lazy initialize and close stream for `PrepRequestProcessor` Improve lazy initialize and close stream for `PrepRequestProcessor` * Delay the initialization

[GitHub] zookeeper issue #361: ZOOKEEPER-2892: Improve lazy initialize and close stre...

2017-09-11 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/361 @hanm Thanks for your suggestion. Conflicts has been fixed. ---

[GitHub] zookeeper issue #361: ZOOKEEPER-2892: Improve lazy initialize and close stre...

2017-09-06 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/361 @hanm It works, thx a lot. 👍 ---

[GitHub] zookeeper pull request #361: ZOOKEEPER-2892: Improve lazy initialize and clo...

2017-09-06 Thread asdf2014
GitHub user asdf2014 reopened a pull request: https://github.com/apache/zookeeper/pull/361 ZOOKEEPER-2892: Improve lazy initialize and close stream for `PrepRequestProcessor` Improve lazy initialize and close stream for `PrepRequestProcessor` * Delay the initialization

[GitHub] zookeeper issue #361: ZOOKEEPER-2892: Improve lazy initialize and close stre...

2017-09-06 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/361 Okay, I'll try it. ---

[GitHub] zookeeper pull request #361: ZOOKEEPER-2892: Improve lazy initialize and clo...

2017-09-06 Thread asdf2014
Github user asdf2014 closed the pull request at: https://github.com/apache/zookeeper/pull/361 ---

[GitHub] zookeeper issue #361: ZOOKEEPER-2892: Improve lazy initialize and close stre...

2017-09-05 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/361 Seems like jenkins cannot work normally? @hanm ```bash GitHub pull request #361 to apache/zookeeper [EnvInject] - Loading node environment variables. ERROR: SEVERE ERROR

[GitHub] zookeeper pull request #361: ZOOKEEPER-2892: Improve lazy initialize and clo...

2017-09-05 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/361 ZOOKEEPER-2892: Improve lazy initialize and close stream for `PrepRequestProcessor` Improve lazy initialize and close stream for `PrepRequestProcessor` * Delay the initialization

[GitHub] zookeeper pull request #298: ZOOKEEPER-2826: Code refactoring for `CLI` modu...

2017-08-08 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/298#discussion_r131848354 --- Diff: src/java/main/org/apache/zookeeper/cli/ReconfigCommand.java --- @@ -52,12 +52,12 @@ private String members; /* version

[GitHub] zookeeper issue #301: ZOOKEEPER-2835: Run server with `-XX:+AlwaysPreTouch` ...

2017-08-03 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/301 Hi @afine . Thanks for your comments. Your consider is entirely correct. But I found the [PR#16937](https://github.com/elastic/elasticsearch/pull/16937) from `elasticsearch`. And every node

[GitHub] zookeeper pull request #304: ZOOKEEPER-2355: Ephemeral node is never deleted...

2017-07-13 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/304#discussion_r127135485 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/EphemeralNodeDeletionTest.java --- @@ -0,0 +1,219 @@ +/** + * Licensed to the Apache

[GitHub] zookeeper pull request #304: ZOOKEEPER-2355: Ephemeral node is never deleted...

2017-07-13 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/304#discussion_r127135317 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/EphemeralNodeDeletionTest.java --- @@ -0,0 +1,219 @@ +/** + * Licensed to the Apache

[GitHub] zookeeper issue #302: ZOOKEEPER-2837: Add a special START_SERVER_JVMFLAGS op...

2017-07-09 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/302 Even if had been fixed the issues by adding the `START_SERVER_JVMFLAGS` option, but i still don't understand why the execution of `mntr` 4lw command would use the `JVMFLAGS` option. I list

[GitHub] zookeeper pull request #304: ZOOKEEPER-2355: Ephemeral node is never deleted...

2017-07-05 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/304#discussion_r125798689 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/EphemeralNodeDeletionTest.java --- @@ -0,0 +1,219 @@ +/** + * Licensed to the Apache

[GitHub] zookeeper pull request #304: ZOOKEEPER-2355: Ephemeral node is never deleted...

2017-07-05 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/304#discussion_r125798526 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/EphemeralNodeDeletionTest.java --- @@ -0,0 +1,219 @@ +/** + * Licensed to the Apache

[GitHub] zookeeper pull request #303: ZOOKEEPER-2840: Should using `System.nanoTime()...

2017-07-05 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/303 ZOOKEEPER-2840: Should using `System.nanoTime() ^ this.hashCode()` fo… Should using `System.nanoTime() ^ this.hashCode()` for StaticHostProvider instead of `System.currentTimeMillis

[GitHub] zookeeper pull request #302: ZOOKEEPER-2837: Add a special START_SERVER_JVMF...

2017-07-04 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/302 ZOOKEEPER-2837: Add a special START_SERVER_JVMFLAGS option only for `start` command to distinguish JVMFLAGS and SERVER_JVMFLAGS Add a special START_SERVER_JVMFLAGS option only for `start

[GitHub] zookeeper pull request #301: ZOOKEEPER-2835: Run server with `-XX:+AlwaysPre...

2017-07-04 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/301 ZOOKEEPER-2835: Run server with `-XX:+AlwaysPreTouch` jvm flag Add `-XX:+AlwaysPreTouch` jvm flag for server, let jvm through demand-zeroed way to allocate memory once in place when the process

[GitHub] zookeeper pull request #296: ZOOKEEPER-2824: `FileChannel#size` info should ...

2017-06-29 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/296#discussion_r124950647 --- Diff: src/java/main/org/apache/zookeeper/server/persistence/FileTxnLog.java --- @@ -332,11 +333,13 @@ public synchronized void commit() throws

[GitHub] zookeeper issue #290: ZOOKEEPER-2817: Using `Collections.singletonList` inst...

2017-06-29 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/290 Hi, @afine. Thank you for code review. It maybe due to... ```java // -ea -Xmx512M -Xms512M -Xmn256M -XX:+AlwaysPreTouch @Test public void testSingletonListPerformance

[GitHub] zookeeper pull request #293: ZOOKEEPER-2821: 1. Fix spell issues; 2. Remove ...

2017-06-29 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/293#discussion_r124947780 --- Diff: src/java/main/org/apache/zookeeper/server/auth/SASLAuthenticationProvider.java --- @@ -28,24 +28,20 @@ public String getScheme

[GitHub] zookeeper pull request #297: ZOOKEEPER-2825: 1. Remove unnecessary import; 2...

2017-06-29 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/297#discussion_r124757125 --- Diff: src/java/main/org/apache/zookeeper/client/ZooKeeperSaslClient.java --- @@ -590,14 +590,13 @@ public boolean

[GitHub] zookeeper pull request #297: ZOOKEEPER-2825: 1. Remove unnecessary import; 2...

2017-06-29 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/297#discussion_r124721264 --- Diff: src/java/main/org/apache/zookeeper/client/ZooKeeperSaslClient.java --- @@ -590,14 +590,13 @@ public boolean

[GitHub] zookeeper pull request #299: ZOOKEEPER-2827: Code refactoring for `JUTE` mod...

2017-06-28 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/299 ZOOKEEPER-2827: Code refactoring for `JUTE` module * Fix spell issues * Simplify `return` clause * Using enhanced `for` loop * Using `try` clause to release the resource of stream

[GitHub] zookeeper pull request #298: ZOOKEEPER-2826: Code refactoring for `CLI` modu...

2017-06-28 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/298 ZOOKEEPER-2826: Code refactoring for `CLI` module * Fix spell issues * Remove unnecessary `import` * Make initialization block that related with `options.addOption` into static

[GitHub] zookeeper pull request #297: ZOOKEEPER-2825: 1. Remove unnecessary import; 2...

2017-06-28 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/297 ZOOKEEPER-2825: 1. Remove unnecessary import; 2. `contains` instead of `indexOf > -1` for more readable; 3. Standardize `StringBuilder#append` usage for CLI module * Remove unnecessary imp

[GitHub] zookeeper pull request #296: ZOOKEEPER-2824: `FileChannel#size` info should ...

2017-06-28 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/296 ZOOKEEPER-2824: `FileChannel#size` info should be added to `FileTxnLog#commit` to solve the confuse that reason is too large log or too busy disk I/O `FileChannel#size` info should be added

[GitHub] zookeeper pull request #295: ZOOKEEPER-2823: 1. Fix spell issues; 2. Standar...

2017-06-27 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/295 ZOOKEEPER-2823: 1. Fix spell issues; 2. Standardize `StringBuilder#append` usage; 3. Using `try` clause for releasing I/O stream for `COMMON` module * Fix spell issues * Standardize

[GitHub] zookeeper pull request #294: ZOOKEEPER-2822: Wrong `ObjectName` about `MBean...

2017-06-27 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/294 ZOOKEEPER-2822: Wrong `ObjectName` about `MBeanServer` in JMX module The wrong `ObjectName` about `MBeanServer` in JMX module, should `log4j:hierarchy=default` rather than `log4j:hiearchy

[GitHub] zookeeper pull request #292: ZOOKEEPER-2819:Changing membership configuratio...

2017-06-27 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/292#discussion_r124185161 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/ReconfigRollingRestartCompatibilityTest.java --- @@ -0,0 +1,94 @@ +/** + * Licensed

[GitHub] zookeeper pull request #293: ZOOKEEPER-2821: 1. Fix spell issues; 2. Remove ...

2017-06-26 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/293 ZOOKEEPER-2821: 1. Fix spell issues; 2. Remove unnecessary boxing / unboxing; 3. Simplify `return` clause; 4. Remove `final` qualifier from `private` method * Fix spell issues * Remove

[GitHub] zookeeper issue #283: ZOOKEEPER-2815: 1. Using try clause to close resource;...

2017-06-25 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/283 @hanm You are welcome :D --- 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

[GitHub] zookeeper pull request #290: Using `Collections.singletonList` instead of `A...

2017-06-22 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/290 Using `Collections.singletonList` instead of `Arrays.asList(oneElement)` Using `Collections.singletonList` instead of `Arrays.asList(oneElement)` for reusing a immutable object instead

[GitHub] zookeeper issue #283: ZOOKEEPER-2815: 1. Using try clause to close resource;...

2017-06-21 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/283 @hanm Already done. --- 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

[GitHub] zookeeper issue #288: ZOOKEEPER-2816: Code refactoring for `ZK_SERVER` modul...

2017-06-21 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/288 @hanm Already done. --- 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

[GitHub] zookeeper issue #283: MINOR: 1. Using try clause to close resource; 2. Other...

2017-06-21 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/283 Hi, @hanm . I got it and i will create the jira. Sorry for bring the `MINOR` habit from Apache Eagle.. --- If your project is set up for it, you can reply to this email and have your reply

[GitHub] zookeeper pull request #288: MINOR: Code refactoring for `ZK_SERVER` module

2017-06-20 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/288 MINOR: Code refactoring for `ZK_SERVER` module * Fix spell issues * Merge exception with `|` character * Remove unnecessary boxing * Remove unused import * Remove unecessary

[GitHub] zookeeper pull request #283: MINOR: 1. Fix streamsToFlush not completely emp...

2017-06-16 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/283 MINOR: 1. Fix streamsToFlush not completely empty problem; 2. Using try clause to close resource; 3. Others code refactoring for PERSISTENCE module MINOR: * Fix streamsToFlush

[GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over...

2017-06-15 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/262 Hi, @yunfan123 . Thank you for your suggestion. As you said in the opinion, so that it can guarantee a smooth upgrade. However, if the 16-bit `epoch` overflow rather than the `counter` overflow

[GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over...

2017-06-05 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/262 @maoling You are welcome. Already changed it into following [code](https://github.com/apache/zookeeper/pull/262/files#diff-f4e58b67b9a4084420cb9b58398a953cR125). Then, i think it can still

[GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over...

2017-05-26 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/262 Hi, @maoling. Thanks for your discussion. Maybe due to my description is problematic, so make you confused. 1. I am worry about if the lower 8 bits of the upper 32 bits are divided

[GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over...

2017-05-24 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/262 Due to this [jvm bug](http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7177813), JDK7 cannot recognition `static import`... I will use fully qualified name replace of it. ```bash

[GitHub] zookeeper pull request #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32b...

2017-05-24 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/262#discussion_r118176130 --- Diff: src/contrib/loggraph/src/java/org/apache/zookeeper/graph/JsonGenerator.java --- @@ -121,8 +121,8 @@ public JsonGenerator(LogIterator iter

[GitHub] zookeeper pull request #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32b...

2017-05-24 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/262#discussion_r118168282 --- Diff: src/contrib/loggraph/src/java/org/apache/zookeeper/graph/JsonGenerator.java --- @@ -121,8 +121,8 @@ public JsonGenerator(LogIterator iter

[GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over...

2017-05-23 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/262 Seems like all test cases [passed](https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/738/testReport/), but some problems happened in `Zookeeper_operations

[GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over...

2017-05-23 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/262 Why `jenkins` reported the following message: ```bash mv: '/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess' and '/home/jenkins/jenkins-slave

[GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over...

2017-05-22 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/262 Thinking about some abnormal situations, maybe 24 bit for `epoch` and 40 bit for `counter` is more better choice: $Math.min(2^{24} / (24 * 365), 2^{40} / (86400 * 1000 * 365)) \approx Math.min

[GitHub] zookeeper pull request #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32b...

2017-05-22 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/262 ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit overflow problem If it is `1k/s` ops, then as long as $2^{32} / (86400 * 1000) \approx 49.7$ days ZXID will exhausted. But, if we reassign

[GitHub] zookeeper issue #257: ZOOKEEPER-2784: Add same `sid` config problem check

2017-05-19 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/257 I don't understand why `jenkins` reports `UnknownHostException`. ```java java.net.UnknownHostException: 10.1.1.-113 at java.net.AbstractPlainSocketImpl.connect

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600833 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -310,8 +311,8 @@ public boolean initiateConnection(Socket sock

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600609 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -620,6 +625,7 @@ public void run() { int

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600503 --- Diff: src/java/test/org/apache/zookeeper/test/CnxManagerTest.java --- @@ -351,15 +351,55 @@ public void testSocketTimeout() throws Exception

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600449 --- Diff: src/java/test/org/apache/zookeeper/test/CnxManagerTest.java --- @@ -351,15 +351,55 @@ public void testSocketTimeout() throws Exception

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600411 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -677,6 +686,7 @@ public void run

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600362 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -657,9 +663,12 @@ public void run

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600268 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -620,6 +625,7 @@ public void run() { int

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600247 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -18,6 +18,12 @@ package

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600228 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -657,9 +663,12 @@ public void run

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600150 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -371,6 +372,10 @@ public void receiveConnection(Socket sock

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600142 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java --- @@ -545,6 +545,7 @@ public void testInconsistentPeerType() throws

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117599897 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -371,6 +372,10 @@ public void receiveConnection(Socket sock

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-19 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117599887 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -310,8 +311,8 @@ public boolean initiateConnection(Socket sock

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-18 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117406260 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -660,6 +665,9 @@ public void run

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-18 Thread asdf2014
Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117400479 --- Diff: src/java/test/org/apache/zookeeper/test/CnxManagerTest.java --- @@ -18,36 +18,32 @@ package org.apache.zookeeper.test

[GitHub] zookeeper issue #257: ZOOKEEPER-2784: Add same `sid` config problem check

2017-05-18 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/257 Finally, it works :smile: ```bash [exec] [junit] 2017-05-18 09:29:00,770 [myid:] - INFO [main:ZKTestCase$1@58] - STARTING testSameSID [exec] [junit] 2017-05-18 09

[GitHub] zookeeper issue #257: ZOOKEEPER-2784: Add same `sid` config problem check

2017-05-17 Thread asdf2014
Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/257 It's total fine in my local IDE... ![image](https://cloud.githubusercontent.com/assets/8108788/26188075/ba301912-3bcf-11e7-92c8-79497eea1a9b.png) --- If your project is set up for it, you

[GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c...

2017-05-17 Thread asdf2014
GitHub user asdf2014 opened a pull request: https://github.com/apache/zookeeper/pull/257 ZOOKEEPER-2784: Add same `sid` config problem check Add some limitations on code level for `SID` to avoid configuration problem You can merge this pull request into a Git repository by running