Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 59EB718604 for ; Sat, 23 Apr 2016 00:07:28 +0000 (UTC) Received: (qmail 64375 invoked by uid 500); 23 Apr 2016 00:07:24 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 64306 invoked by uid 500); 23 Apr 2016 00:07:24 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 64292 invoked by uid 99); 23 Apr 2016 00:07:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Apr 2016 00:07:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B43831A0C88 for ; Sat, 23 Apr 2016 00:07:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.43 X-Spam-Level: * X-Spam-Status: No, score=1.43 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_LOTSOFHASH=0.25, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=opensourceconnections.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id AZKayPBChMQm for ; Sat, 23 Apr 2016 00:07:21 +0000 (UTC) Received: from mail-vk0-f42.google.com (mail-vk0-f42.google.com [209.85.213.42]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 4D2EF5F398 for ; Sat, 23 Apr 2016 00:07:20 +0000 (UTC) Received: by mail-vk0-f42.google.com with SMTP id n62so156181844vkb.0 for ; Fri, 22 Apr 2016 17:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=opensourceconnections.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=WEjTp/CjUipA/ZURHbTkWjVm47qqlHYWi9snUTehsLw=; b=iYE6d40S06SbrQQ6cRy65S+80zLvwA0GRoAv/MTSYDcS+HXNvtnxU+agmlSiZSNutu fXbU/tvH0h+4r4VPc7fOQeeaf8QYmftFGviRWMKzVUKMEz3TButMSNBh5fgenuTRB+Ts JsIKqDqujebI5YnCUSGMi9s3oDDUjeI+EC2YQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=WEjTp/CjUipA/ZURHbTkWjVm47qqlHYWi9snUTehsLw=; b=QJ4KudAvnT0D3xE6Md1PvnWfJh4vw1kpdIWVRx+kPfC7pppRS46U9jhN5I9HRLLpJ0 jUEILDVbWLVp66sHZNWK7PbsUKCTepbgaCm2qIoU0zFh15FJoCr51L5Wj85jrOU0PKB8 zr+CDkPvJRDA7c/m+sbLgv/LngN1fFj7JgYrv0QOlEZv+VR8I83OYikOiuY8tLg4tz8c wm/Ys5T5fCl42HXLMi/TNAQibrTKrzmJR8UVTLeEOUt2PbrQAUPNMcD/TszlbQNNUuvS GFBsaFbko225yFZCJ6jOPOL5+L1KPh9R5YSZETWc4wdQKqq1Ib5AOgVUSC4OJVFFQhJp 4O9Q== X-Gm-Message-State: AOPr4FWbFNvdNt+/EI/iW2PpU1mFEHUWbbJpKq1nrsm0wLsaHxzK8ON+8SIofPSnVigSNbPYykr2BLKkXYAJHw== X-Received: by 10.176.5.166 with SMTP id e35mr12212810uae.87.1461370038997; Fri, 22 Apr 2016 17:07:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Doug Turnbull Date: Sat, 23 Apr 2016 00:07:09 +0000 Message-ID: Subject: Re: ConcurrentUpdateSolrClient Invalid version (expected 2, but 60) or the data in not in 'javabin' format To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=94eb2c123fe00f9e8205311bba05 --94eb2c123fe00f9e8205311bba05 Content-Type: text/plain; charset=UTF-8 Joe this might be _version_ as in Solr's optimistic concurrency used in atomic updates, etc http://yonik.com/solr/optimistic-concurrency/ On Fri, Apr 22, 2016 at 5:24 PM Joe Lawson < jlawson@opensourceconnections.com> wrote: > I'm updating from a basic Solr Client to the ConcurrentUpdateSolrClient and > I'm hitting a really strange error. I cannot share the code but the snippet > is like: > > try (ConcurrentUpdateSolrClient solrUpdateClient = > > new ConcurrentUpdateSolrClient(" > > http://localhost:8983/solr", 1000, 1)) { > > String _core = "lots"; > > List batch = docs.subList(batch_start, > > batch_end); > > response = solrUpdateClient.add(_core,batch); > > solrUpdateClient.commit(_core); > > ... > > } > > > > Once the commit is called I get the following error: > > 17:17:22.585 [concurrentUpdateScheduler-1-thread-1-processing-http:// > //localhost:8983//solr] > >> WARN o.a.s.c.s.i.ConcurrentUpdateSolrClient - Failed to parse error > >> response from http://localhost:8983/solr due to: > >> java.lang.RuntimeException: Invalid version (expected 2, but 60) or the > >> data in not in 'javabin' format > > > > 17:17:22.588 [concurrentUpdateScheduler-1-thread-1-processing-http:// > //localhost:8983//solr] > >> ERROR o.a.s.c.s.i.ConcurrentUpdateSolrClient - error > > > > org.apache.solr.common.SolrException: Not Found > > > > > >> > >> > >> request: http://localhost:8983/solr/update?wt=javabin&version=2 > > > > at > >> > org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.sendUpdateStream(ConcurrentUpdateSolrClient.java:290) > >> [solr-solrj-6.0.0.jar:6.0.0 48c80f91b8e5cd9b3a9b48e6184bd53e7619e7e3 - > >> nknize - 2016-04-01 14:41:50] > > > > at > >> > org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.run(ConcurrentUpdateSolrClient.java:161) > >> [solr-solrj-6.0.0.jar:6.0.0 48c80f91b8e5cd9b3a9b48e6184bd53e7619e7e3 - > >> nknize - 2016-04-01 14:41:50] > > > > at > >> > org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229) > >> [solr-solrj-6.0.0.jar:6.0.0 48c80f91b8e5cd9b3a9b48e6184bd53e7619e7e3 - > >> nknize - 2016-04-01 14:41:50] > > > > at > >> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > >> ~[na:1.8.0_92] > > > > at > >> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > >> ~[na:1.8.0_92] > > > > at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_92] > > > > > Any help suggestions is appreciated. > > Cheers, > > Joe Lawson > --94eb2c123fe00f9e8205311bba05--