Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-8872

SPNEGO auth failures using httpcore v4.4.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 3.3.0
    • Impala 3.3.0
    • Frontend
    • None
    • ghx-label-9

    Description

      When deploying a cluster with Ranger publishing audits to SOLR, we noticed that the SPNEGO request consistently fails with the following exception using httpcore 4.4.1 pulled in by thrift.

      The error goes away with httpcore v4.4.6 (manually tested). This could be a library bug but we don't have a solid theory yet.

       E0816 15:13:53.912468 16695 HttpClientUtil.java:181]
          Java exception follows:
          java.lang.IllegalStateException: Content has not been provided
                  at org.apache.http.util.Asserts.check(Asserts.java:34)
                  at org.apache.http.entity.BasicHttpEntity.getContent(BasicHttpEntity.java:77)
                  at org.apache.http.util.EntityUtils.toByteArray(EntityUtils.java:122)
                  at org.apache.http.entity.BufferedHttpEntity.<init>(BufferedHttpEntity.java:63)
                  at org.apache.solr.client.solrj.impl.Krb5HttpClientBuilder.lambda$new$3(Krb5HttpClientBuilder.java:154)
                  at org.apache.solr.client.solrj.impl.HttpClientUtil$DynamicInterceptor$1.accept(HttpClientUtil.java:179)
                  at org.apache.solr.client.solrj.impl.HttpClientUtil$DynamicInterceptor$1.accept(HttpClientUtil.java:174)
                  at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:891)
                  at org.apache.solr.client.solrj.impl.HttpClientUtil$DynamicInterceptor.process(HttpClientUtil.java:174)
                  at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:132)
                  at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:183)
                  at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
                  at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
                  at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
                  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
                  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
                  at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:542)
                  at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:255)
                  at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:244)
                  at org.apache.solr.client.solrj.impl.LBHttpSolrClient.doRequest(LBHttpSolrClient.java:484)
                  at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:414)
                  at org.apache.solr.client.solrj.impl.CloudSolrClient.lambda$directUpdate$0(CloudSolrClient.java:528)
                  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                  at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209)
      

      Attachments

        Activity

          People

            bharathv Bharath Vissapragada
            bharathv Bharath Vissapragada
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: