Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 425169540 for ; Thu, 16 Feb 2012 15:53:26 +0000 (UTC) Received: (qmail 32627 invoked by uid 500); 16 Feb 2012 15:53:25 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 32552 invoked by uid 500); 16 Feb 2012 15:53:24 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 32537 invoked by uid 99); 16 Feb 2012 15:53:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 15:53:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 15:53:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D3C0C1BB232 for ; Thu, 16 Feb 2012 15:52:59 +0000 (UTC) Date: Thu, 16 Feb 2012 15:52:59 +0000 (UTC) From: "James Dyer (Updated) (JIRA)" To: dev@lucene.apache.org Message-ID: <734918877.46522.1329407579868.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <495952270.27462.1322684499968.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-2933) DIHCacheSupport ignores left side of where="xid=x.id" attribute MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Dyer updated SOLR-2933: ----------------------------- Fix Version/s: 4.0 3.6 for 3.6, we should backport the test improvement (only). > DIHCacheSupport ignores left side of where="xid=x.id" attribute > --------------------------------------------------------------- > > Key: SOLR-2933 > URL: https://issues.apache.org/jira/browse/SOLR-2933 > Project: Solr > Issue Type: Sub-task > Components: contrib - DataImportHandler > Affects Versions: 4.0 > Reporter: Mikhail Khludnev > Assignee: James Dyer > Priority: Minor > Labels: noob, random > Fix For: 3.6, 4.0 > > Attachments: AbstractDataImportHandlerTestCase.java-choose-map-randomly.patch, SOLR-2933.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > DIHCacheSupport introduced at SOLR-2382 uses new config attributes cachePk and cacheLookup. But support old one where="xid=x.id" is broken by [DIHCacheSupport.|http://svn.apache.org/viewvc/lucene/dev/trunk/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHCacheSupport.java?view=markup] - it never put where="" sides into the context, but it revealed by [SortedMapBackedCache.|http://svn.apache.org/viewvc/lucene/dev/trunk/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/SortedMapBackedCache.java?view=markup], which takes just first column as a primary key. That's why all tests are green. > To reproduce the issue I need just reorder entry at [line 219|http://svn.apache.org/viewvc/lucene/dev/trunk/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestCachedSqlEntityProcessor.java?revision=1201659&view=markup] and make desc first and picked up as a primary key. > To do that I propose to chose concrete map class randomly for all DIH test cases at [createMap()|http://svn.apache.org/viewvc/lucene/dev/trunk/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/AbstractDataImportHandlerTestCase.java?revision=1149600&view=markup]. > I'm attaching test breaking patch and seed. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org