----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63458/#review189860 -----------------------------------------------------------
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java Lines 2475 (patched) <https://reviews.apache.org/r/63458/#comment267092> hmm... would it make sense to have 3 limits instead? per user, per ip, and per user+ip (if needed). All would be enforced. Or is it going to be extensible? service/src/java/org/apache/hive/service/cli/session/SessionManager.java Lines 472 (patched) <https://reviews.apache.org/r/63458/#comment267093> nit: map is concurrent, it should be possible to use putIfAbsent and replace w/o synchronize service/src/java/org/apache/hive/service/cli/session/SessionManager.java Lines 493 (patched) <https://reviews.apache.org/r/63458/#comment267094> nit: the null check is outside for increment but inside for decrement - Sergey Shelukhin On Nov. 1, 2017, 2:04 a.m., Prasanth_J wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/63458/ > ----------------------------------------------------------- > > (Updated Nov. 1, 2017, 2:04 a.m.) > > > Review request for hive, Sergey Shelukhin and Thejas Nair. > > > Bugs: HIVE-16917 > https://issues.apache.org/jira/browse/HIVE-16917 > > > Repository: hive-git > > > Description > ------- > > HIVE-16917: HiveServer2 guard rails - Limit concurrent connections from user > > > Diffs > ----- > > common/src/java/org/apache/hadoop/hive/conf/HiveConf.java > a3c853a5c5a2a3e72ae0141d0ad836ec95516280 > service/src/java/org/apache/hive/service/cli/session/SessionManager.java > 9b2ae57ee498e9b712cc87b16ba223995519611c > service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java > 6354c8c5450eaa8ab91dd59387f2eddf0eb84389 > > service/src/test/org/apache/hive/service/cli/TestCLIServiceConnectionLimits.java > PRE-CREATION > > > Diff: https://reviews.apache.org/r/63458/diff/1/ > > > Testing > ------- > > > Thanks, > > Prasanth_J > >