Re: Jute max buffer size related question

2018-08-24 Thread Benjamin Reed
we stop reading the socket once we hit max buffer size so we don't overflow memory. it was put in when a buggy client cause the server to think it was getting a 1G packet and ran out of memory trying to allocate memory for it. in theory we could read in the data and just drop it on the floor. this

[GitHub] zookeeper pull request #593: [ZOOKEEPER-3111] Add socket buffer size option ...

2018-08-24 Thread breed
Github user breed commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/593#discussion_r212782182 --- Diff: zookeeper-docs/src/documentation/content/xdocs/zookeeperAdmin.xml --- @@ -1641,6 +1641,24 @@ server.3=zoo3:2888:3888 Default

[GitHub] zookeeper pull request #586: Zookeeper 3105:Character coding problem occur w...

2018-08-24 Thread breed
Github user breed commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/586#discussion_r212781950 --- Diff: src/contrib/zkpython/src/c/zookeeper.c --- @@ -387,8 +387,8 @@ int parse_acls(struct ACL_vector *acls, PyObject *pyacls) PyObject *perms

[GitHub] zookeeper pull request #605: [ZOOKEEPER-3125] Fixing pzxid consistent issue ...

2018-08-24 Thread breed
Github user breed commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/605#discussion_r212781611 --- Diff: src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java --- @@ -452,7 +452,7 @@ public void testElectionFraud() throws

[GitHub] zookeeper issue #606: [ZOOKEEPER-3127] Fixing potential data inconsistency d...

2018-08-24 Thread breed
Github user breed commented on the issue: https://github.com/apache/zookeeper/pull/606 +1 thank you @lvfangmin ---

Success: ZOOKEEPER- PreCommit Build #2090

2018-08-24 Thread Apache Jenkins Server
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/2090/ ### ## LAST 60 LINES OF THE CONSOLE ### [...truncated 78.10 MB...] [exec] +1

[jira] [Commented] (ZOOKEEPER-3127) Fixing potential data inconsistency due to update last processed zxid with partial multi-op txn

2018-08-24 Thread Hadoop QA (JIRA)
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16592323#comment-16592323 ] Hadoop QA commented on ZOOKEEPER-3127: -- +1 overall. GitHub Pull Request Build +1

ZooKeeper-trunk - Build # 163 - Still Failing

2018-08-24 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk/163/ ### ## LAST 60 LINES OF THE CONSOLE ### [...truncated 145.18 KB...] [junit] Running

[GitHub] zookeeper issue #567: ZOOKEEPER-3071: Add a config parameter to control tran...

2018-08-24 Thread suyogmapara
Github user suyogmapara commented on the issue: https://github.com/apache/zookeeper/pull/567 Hi @maoling Regarding 1, preAllocSize controls how big the contiguous region of transaction file would be on disk (to reduce number seeks you need to do) while this feature controls

ZooKeeper-trunk-windows-cmake - Build # 2905 - Still Failing

2018-08-24 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk-windows-cmake/2905/ ### ## LAST 60 LINES OF THE CONSOLE ### [...truncated 9.68 KB...] [ivy:retrieve] confs: [javacc]

[GitHub] zookeeper pull request #601: WIP - ZOOKEEPER-3123 MetricsProvider Lifecycle ...

2018-08-24 Thread eolivelli
Github user eolivelli commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/601#discussion_r212587862 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumPeerConfig.java --- @@ -325,6 +327,8 @@ public void parseProperties(Properties zkProp)

[jira] [Comment Edited] (ZOOKEEPER-3037) Add JvmPauseMonitor to ZooKeeper

2018-08-24 Thread Hari Sekhon (JIRA)
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16591412#comment-16591412 ] Hari Sekhon edited comment on ZOOKEEPER-3037 at 8/24/18 10:02 AM: -- I

[jira] [Commented] (ZOOKEEPER-3037) Add JvmPauseMonitor to ZooKeeper

2018-08-24 Thread Hari Sekhon (JIRA)
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16591412#comment-16591412 ] Hari Sekhon commented on ZOOKEEPER-3037: I think this is actually a really good improvement,

[GitHub] zookeeper pull request #601: WIP - ZOOKEEPER-3123 MetricsProvider Lifecycle ...

2018-08-24 Thread eolivelli
Github user eolivelli commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/601#discussion_r212545767 --- Diff: src/java/main/org/apache/zookeeper/server/ZooKeeperServerMain.java --- @@ -117,13 +121,23 @@ public void runFromConfig(ServerConfig config)

[GitHub] zookeeper pull request #601: WIP - ZOOKEEPER-3123 MetricsProvider Lifecycle ...

2018-08-24 Thread eolivelli
Github user eolivelli commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/601#discussion_r212544888 --- Diff: src/java/main/org/apache/zookeeper/metrics/impl/NullMetricsProvider.java --- @@ -0,0 +1,100 @@ +/** + * Licensed to the Apache

[jira] [Created] (ZOOKEEPER-3128) CLI Commands display Authentication error for Authorization error

2018-08-24 Thread Mohammad Arshad (JIRA)
Mohammad Arshad created ZOOKEEPER-3128: -- Summary: CLI Commands display Authentication error for Authorization error Key: ZOOKEEPER-3128 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3128

[jira] [Commented] (ZOOKEEPER-3099) ZooKeeper cluster is unavailable for session_timeout time when the leader shutdown in a three-node environment.  

2018-08-24 Thread Fangmin Lv (JIRA)
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16591225#comment-16591225 ] Fangmin Lv commented on ZOOKEEPER-3099: --- [~jiangjiafu] please change the title to be explicitly 

Jute max buffer size related question

2018-08-24 Thread Karan Mehta
Hello everyone, Why do we close the clientCnxn whenever a client sends a request which payload larger than jute max buffer size? (and similar for client as well) Is it a security issue if we send a relevant KeeperException instead? Even more, we send the parameter value to the client and client

[GitHub] zookeeper pull request #601: WIP - ZOOKEEPER-3123 MetricsProvider Lifecycle ...

2018-08-24 Thread lvfangmin
Github user lvfangmin commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/601#discussion_r212527464 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumPeerConfig.java --- @@ -325,6 +327,8 @@ public void parseProperties(Properties zkProp)

[GitHub] zookeeper pull request #601: WIP - ZOOKEEPER-3123 MetricsProvider Lifecycle ...

2018-08-24 Thread lvfangmin
Github user lvfangmin commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/601#discussion_r212526201 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumPeerMain.java --- @@ -141,6 +145,16 @@ public void runFromConfig(QuorumPeerConfig

[GitHub] zookeeper pull request #601: WIP - ZOOKEEPER-3123 MetricsProvider Lifecycle ...

2018-08-24 Thread lvfangmin
Github user lvfangmin commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/601#discussion_r212522424 --- Diff: src/java/main/org/apache/zookeeper/server/ServerConfig.java --- @@ -115,4 +118,6 @@ public InetSocketAddress getSecureClientPortAddress() {

[GitHub] zookeeper pull request #601: WIP - ZOOKEEPER-3123 MetricsProvider Lifecycle ...

2018-08-24 Thread lvfangmin
Github user lvfangmin commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/601#discussion_r212526114 --- Diff: src/java/main/org/apache/zookeeper/server/ZooKeeperServerMain.java --- @@ -117,13 +121,23 @@ public void runFromConfig(ServerConfig config)

[GitHub] zookeeper pull request #601: WIP - ZOOKEEPER-3123 MetricsProvider Lifecycle ...

2018-08-24 Thread lvfangmin
Github user lvfangmin commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/601#discussion_r212526680 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumPeerMain.java --- @@ -159,6 +173,7 @@ public void runFromConfig(QuorumPeerConfig

[GitHub] zookeeper pull request #601: WIP - ZOOKEEPER-3123 MetricsProvider Lifecycle ...

2018-08-24 Thread lvfangmin
Github user lvfangmin commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/601#discussion_r212527486 --- Diff: src/java/main/org/apache/zookeeper/metrics/impl/NullMetricsProvider.java --- @@ -0,0 +1,100 @@ +/** + * Licensed to the Apache

[GitHub] zookeeper pull request #601: WIP - ZOOKEEPER-3123 MetricsProvider Lifecycle ...

2018-08-24 Thread lvfangmin
Github user lvfangmin commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/601#discussion_r212526157 --- Diff: src/java/main/org/apache/zookeeper/server/ZooKeeperServerMain.java --- @@ -117,13 +121,23 @@ public void runFromConfig(ServerConfig config)

[GitHub] zookeeper pull request #601: WIP - ZOOKEEPER-3123 MetricsProvider Lifecycle ...

2018-08-24 Thread lvfangmin
Github user lvfangmin commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/601#discussion_r212528161 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumPeerMain.java --- @@ -141,6 +145,16 @@ public void runFromConfig(QuorumPeerConfig