Solr
  1. Solr
  2. SOLR-3846

TestReplicationHandler.test always (?) takes many minutes on OS X (lion)

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-BETA, Trunk
    • Fix Version/s: 4.0, Trunk
    • Component/s: Build
    • Labels:
      None
    • Environment:

      Description

      Here's the seed was using, but this is apparently unnecessary:

      <JUnit4> says ¡Hola! Master seed: 6785BB3284A15298

      eventually it seems to complete, but it takes many minutes, for instance this was reported once, but I usually lose patience and ctrl-c out:

      [junit4:junit4] Completed on J2 in 2449.62s, 1 test
      [junit4:junit4] 
      [junit4:junit4] JVM J0:     1.21 ..   266.67 =   265.47s
      [junit4:junit4] JVM J1:     1.21 ..   238.33 =   237.12s
      [junit4:junit4] JVM J2:     1.21 ..  2538.60 =  2537.39s
      [junit4:junit4] JVM J3:     0.97 ..   267.37 =   266.40s
      [junit4:junit4] Execution time total: 42 minutes 18 seconds
      

      and a lot of lines like:
      HEARTBEAT J2: 2012-09-16T17:38:38, no events in: 187s, approx. at: TestReplicationHandler.test

      Yonik reports that he can make this happen 100% of the time on OS X/Lion, which squares with my experience as I recall. Yonik also reports...

      On my linux box (built in '09, PhenomII, HDD) the test takes 50-55 sec.
      On my kids old windows box ('08, athlon64, HDD, Win7) the test takes 88-95 sec.

      On my mac it always takes forever, and I see loops of stuff like this:

      SEVERE Master at: http://localhost:62803/solr is not available. Index
      fetch failed. Exception:
      org.apache.solr.client.solrj.SolrServerException: Server refused
      connection at: http://localhost:62803/solr
      [junit4:junit4]   2> 52751 T219 C17 UPDATE [collection1] webapp=/solr
      path=/update params={wt=javabin&version=2} {add=[150]} 0 0
      [junit4:junit4]   2> 52755 T219 C17 UPDATE [collection1] webapp=/solr
      path=/update params={wt=javabin&version=2} {add=[151]} 0 0
      [junit4:junit4]   2> 62758 T215 oash.SnapPuller.fetchLatestIndex
      SEVERE Master at: http://localhost:62803/solr is not available. Index
      fetch failed. Exception:
      

      And I'm soooo happy it's not happening to others and just being swept under the rug, restores my faith. I should have known better

      See the discussion on the dev list labeled "being a good citizen is hard when you can't successfully run tests" for more context.

      I don't know how much time I'll have to dive in to it but I'll certainly be happy to test anyone's patch.

      1. stacks.txt
        8 kB
        Mark Miller
      2. SOLR-3846.patch
        4 kB
        Uwe Schindler
      3. SOLR-3846.patch
        6 kB
        Erick Erickson
      4. SOLR-3846.patch
        19 kB
        Erick Erickson
      5. SOLR-3846.patch
        19 kB
        Erick Erickson
      6. SOLR-3846.patch
        20 kB
        Erick Erickson

        Activity

        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Erick Erickson made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Erick Erickson made changes -
        Attachment SOLR-3846.patch [ 12545513 ]
        Erick Erickson made changes -
        Attachment SOLR-3846.patch [ 12545497 ]
        Erick Erickson made changes -
        Attachment SOLR-3846.patch [ 12545460 ]
        Erick Erickson made changes -
        Attachment SOLR-3846.patch [ 12545449 ]
        Erick Erickson made changes -
        Attachment SOLR-3846.patch [ 12545404 ]
        Erick Erickson made changes -
        Assignee Erick Erickson [ erickerickson ]
        Erick Erickson made changes -
        Attachment SOLR-3846.patch [ 12545404 ]
        Uwe Schindler made changes -
        Attachment SOLR-3846.patch [ 12545363 ]
        Mark Miller made changes -
        Attachment stacks.txt [ 12545361 ]
        Erick Erickson made changes -
        Field Original Value New Value
        Description Here's the seed was using, but this is apparently unnecessary:

        <JUnit4> says ¡Hola! Master seed: 6785BB3284A15298

        _eventually_ it seems to complete, but it takes many minutes, for instance this was reported once, but I usually lose patience and ctrl-c out:
        [junit4:junit4] Completed on J2 in 2449.62s, 1 test
        [junit4:junit4]
        [junit4:junit4] JVM J0: 1.21 .. 266.67 = 265.47s
        [junit4:junit4] JVM J1: 1.21 .. 238.33 = 237.12s
        [junit4:junit4] JVM J2: 1.21 .. 2538.60 = 2537.39s
        [junit4:junit4] JVM J3: 0.97 .. 267.37 = 266.40s
        [junit4:junit4] Execution time total: 42 minutes 18 seconds

        and a lot of lines like:
        HEARTBEAT J2: 2012-09-16T17:38:38, no events in: 187s, approx. at: TestReplicationHandler.test


        Yonik reports that he can make this happen 100% of the time on OS X/Lion, which squares with my experience as I recall. Yonik also reports...

        On my linux box (built in '09, PhenomII, HDD) the test takes 50-55 sec.
        On my kids old windows box ('08, athlon64, HDD, Win7) the test takes 88-95 sec.

        On my mac it always takes forever, and I see loops of stuff like this:


        SEVERE Master at: http://localhost:62803/solr is not available. Index
        fetch failed. Exception:
        org.apache.solr.client.solrj.SolrServerException: Server refused
        connection at: http://localhost:62803/solr
        [junit4:junit4] 2> 52751 T219 C17 UPDATE [collection1] webapp=/solr
        path=/update params={wt=javabin&version=2} {add=[150]} 0 0
        [junit4:junit4] 2> 52755 T219 C17 UPDATE [collection1] webapp=/solr
        path=/update params={wt=javabin&version=2} {add=[151]} 0 0
        [junit4:junit4] 2> 62758 T215 oash.SnapPuller.fetchLatestIndex
        SEVERE Master at: http://localhost:62803/solr is not available. Index
        fetch failed. Exception:

        And I'm soooo happy it's not happening to others and just being swept under the rug, restores my faith. I should have known better ;)

        See the discussion on the dev list labeled "being a good citizen is hard when you can't successfully run tests" for more context.

        I don't know how much time I'll have to dive in to it but I'll certainly be happy to test anyone's patch.
        Here's the seed was using, but this is apparently unnecessary:

        <JUnit4> says ¡Hola! Master seed: 6785BB3284A15298

        _eventually_ it seems to complete, but it takes many minutes, for instance this was reported once, but I usually lose patience and ctrl-c out:
        {code}
        [junit4:junit4] Completed on J2 in 2449.62s, 1 test
        [junit4:junit4]
        [junit4:junit4] JVM J0: 1.21 .. 266.67 = 265.47s
        [junit4:junit4] JVM J1: 1.21 .. 238.33 = 237.12s
        [junit4:junit4] JVM J2: 1.21 .. 2538.60 = 2537.39s
        [junit4:junit4] JVM J3: 0.97 .. 267.37 = 266.40s
        [junit4:junit4] Execution time total: 42 minutes 18 seconds
        {code}
        and a lot of lines like:
        HEARTBEAT J2: 2012-09-16T17:38:38, no events in: 187s, approx. at: TestReplicationHandler.test


        Yonik reports that he can make this happen 100% of the time on OS X/Lion, which squares with my experience as I recall. Yonik also reports...

        On my linux box (built in '09, PhenomII, HDD) the test takes 50-55 sec.
        On my kids old windows box ('08, athlon64, HDD, Win7) the test takes 88-95 sec.

        On my mac it always takes forever, and I see loops of stuff like this:

        {code}
        SEVERE Master at: http://localhost:62803/solr is not available. Index
        fetch failed. Exception:
        org.apache.solr.client.solrj.SolrServerException: Server refused
        connection at: http://localhost:62803/solr
        [junit4:junit4] 2> 52751 T219 C17 UPDATE [collection1] webapp=/solr
        path=/update params={wt=javabin&version=2} {add=[150]} 0 0
        [junit4:junit4] 2> 52755 T219 C17 UPDATE [collection1] webapp=/solr
        path=/update params={wt=javabin&version=2} {add=[151]} 0 0
        [junit4:junit4] 2> 62758 T215 oash.SnapPuller.fetchLatestIndex
        SEVERE Master at: http://localhost:62803/solr is not available. Index
        fetch failed. Exception:
        {code}

        And I'm soooo happy it's not happening to others and just being swept under the rug, restores my faith. I should have known better ;)

        See the discussion on the dev list labeled "being a good citizen is hard when you can't successfully run tests" for more context.

        I don't know how much time I'll have to dive in to it but I'll certainly be happy to test anyone's patch.
        Erick Erickson created issue -

          People

          • Assignee:
            Erick Erickson
            Reporter:
            Erick Erickson
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development