Solr
  1. Solr
  2. SOLR-1096

Java Replication stalls and never exits

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: replication (java)
    • Labels:
      None

      Description

      replication hangs
      mail thread : http://markmail.org/thread/xgbptpzn52xprmwo

      The stacktrace

      user time=23940.0000ms at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129) 
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) 
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) 
      at java.io.BufferedInputStream.read(BufferedInputStream.java:317) 
      at org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.jav a:182) 
      at java.io.FilterInputStream.read(FilterInputStream.java:116) 
      at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108) 
      at org.apache.solr.common.util.FastInputStream.read(FastInputStream.java:91) 
      at org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:1 22) 
      at org.apache.solr.handler.SnapPuller$FileFetcher.fetchPackets(SnapPuller.java: 808) 
      at org.apache.solr.handler.SnapPuller$FileFetcher.fetchFile(SnapPuller.java:764 ) 
      ......
      

      the httpclient is created w/o a read_timeout & connection_timeout. . So it may hang indefinitely if there is no data coming out of the server

      1. SOLR-1096.patch
        1 kB
        Shalin Shekhar Mangar
      2. SOLR-1096.patch
        3 kB
        Shalin Shekhar Mangar
      3. SOR-1096.patch
        0.6 kB
        Noble Paul

        Issue Links

          Activity

          Hide
          Noble Paul added a comment -

          read_timeout is set to 10 secs and conn_timeout is set to 5 secs

          Show
          Noble Paul added a comment - read_timeout is set to 10 secs and conn_timeout is set to 5 secs
          Hide
          Shalin Shekhar Mangar added a comment -
          1. Introduces httpConnTimeout and httpReadTimeout configuration parameters
          2. HttpClient is created per core only if timeout is specified. Otherwise the core uses the static shared instance

          I plan to commit shortly.

          Show
          Shalin Shekhar Mangar added a comment - Introduces httpConnTimeout and httpReadTimeout configuration parameters HttpClient is created per core only if timeout is specified. Otherwise the core uses the static shared instance I plan to commit shortly.
          Hide
          Shalin Shekhar Mangar added a comment -

          Committed revision 764371.

          Show
          Shalin Shekhar Mangar added a comment - Committed revision 764371.
          Hide
          Shalin Shekhar Mangar added a comment -

          Changes default connection timeout to 5 seconds and read timeout to 20 seconds.

          Keeping a large read timeout will avoid people tripping over this when downloading 1MB chunks with a single read operation.

          I'll commit shortly.

          Show
          Shalin Shekhar Mangar added a comment - Changes default connection timeout to 5 seconds and read timeout to 20 seconds. Keeping a large read timeout will avoid people tripping over this when downloading 1MB chunks with a single read operation. I'll commit shortly.
          Hide
          Grant Ingersoll added a comment -

          Bulk close for Solr 1.4

          Show
          Grant Ingersoll added a comment - Bulk close for Solr 1.4

            People

            • Assignee:
              Shalin Shekhar Mangar
              Reporter:
              Noble Paul
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development