You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/12 00:04:00 UTC

[jira] [Work logged] (KNOX-2121) Zookeeper - Reduce amount of resources required to run tests

     [ https://issues.apache.org/jira/browse/KNOX-2121?focusedWorklogId=341551&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-341551 ]

ASF GitHub Bot logged work on KNOX-2121:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Nov/19 00:03
            Start Date: 12/Nov/19 00:03
    Worklog Time Spent: 10m 
      Work Description: risdenk commented on pull request #190: KNOX-2121 - Zookeeper - Reduce amount of resources required to run tests
URL: https://github.com/apache/knox/pull/190
 
 
   ## What changes were proposed in this pull request?
   
   Our Zookeeper tests don't require 3 instances
   for them to run. We can instead use 1 instance
   and run the tests with fewer resources.
   
   The timeout for cluster starting up is determined
   by hostname lookup speed and can't easily be changed.
   
   https://github.com/apache/curator/blob/master/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java#L74
   
   ## How was this patch tested?
   
   `mvn -T.75C verify -U -Ppackage,release -Dshellcheck`
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 341551)
    Remaining Estimate: 0h
            Time Spent: 10m

> Zookeeper - Reduce amount of resources required to run tests
> ------------------------------------------------------------
>
>                 Key: KNOX-2121
>                 URL: https://issues.apache.org/jira/browse/KNOX-2121
>             Project: Apache Knox
>          Issue Type: Test
>          Components: Tests
>            Reporter: Kevin Risden
>            Assignee: Kevin Risden
>            Priority: Minor
>             Fix For: 1.4.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently, most of the Zookeeper tests spin up 3 test instances using the curator TestingCluster framework. Under heavily loaded test machines or running a bunch of tests in parallel, the nodes don't start quick enough. Curator sets this timeout value based on hostname lookup time. 
> Instead of spinning up multiple Zookeeper instances, we can test with just a single instance. There aren't any tests that rely on multiple ZK instances to be running.
> https://github.com/apache/curator/blob/master/curator-test/src/main/java/org/apache/curator/test/TestingQuorumPeerMain.java#L76
> https://github.com/apache/curator/blob/master/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java#L74



--
This message was sent by Atlassian Jira
(v8.3.4#803005)