[ 
https://issues.apache.org/jira/browse/HBASE-8535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13658791#comment-13658791
 ] 

Eric Yu commented on HBASE-8535:
--------------------------------

[[email protected]] I have values for config properties that I believe will 
make the test run faster when exceptions occur. Should I submit a new version 
of patch for this jira or did you want a separate jira and also include the 
change from debug to info level?

{noformat}
Index: hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java
===================================================================
--- hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java      
        (revision 1483058)
+++ hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java      
     (working copy)
@@ -809,7 +814,10 @@
   @Test
   public void testDeleteForZKConnLeak() throws Exception {
     TEST_UTIL.createTable(TABLE_NAME4, FAM_NAM);
-    final Configuration config = TEST_UTIL.getConfiguration();
+    final Configuration config = 
HBaseConfiguration.create(TEST_UTIL.getConfiguration());
+    config.setInt("zookeeper.recovery.retry", 1);
+    config.setInt("zookeeper.recovery.retry.intervalmill", 1000);
+    config.setInt("hbase.rpc.timeout", 2000);

     ThreadPoolExecutor pool = new ThreadPoolExecutor(1, 10,
       5, TimeUnit.SECONDS,
{noformat}
                
> Test for zk leak does not account for unsynchronized access to zk watcher
> -------------------------------------------------------------------------
>
>                 Key: HBASE-8535
>                 URL: https://issues.apache.org/jira/browse/HBASE-8535
>             Project: HBase
>          Issue Type: Test
>          Components: Client
>    Affects Versions: 0.98.0, 0.95.1
>            Reporter: Eric Yu
>            Assignee: stack
>             Fix For: 0.98.0, 0.95.1
>
>         Attachments: HBASE-8535.patch
>
>
> Test can detect a live zk connection in a closed hconnection because it does 
> not accesses the zk watcher in a synchronized manner. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to