lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Khludnev (Updated) (JIRA)" <>
Subject [jira] [Updated] (SOLR-2933) DIHCacheSupport ignores left side of where="" attribute
Date Wed, 30 Nov 2011 20:29:40 GMT


Mikhail Khludnev updated SOLR-2933:

    Attachment: pick up map class randomly
in all DIH testcases.
It breaks [TestCachedSqlEntityProcessor.withKeyAndLookup|].
More explanations are [1|]
> DIHCacheSupport ignores left side of where="" attribute
> ---------------------------------------------------------------
>                 Key: SOLR-2933
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 4.0
>            Reporter: Mikhail Khludnev
>            Priority: Minor
>              Labels: noob, random
>         Attachments:
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> DIHCacheSupport introduced at SOLR-2382 uses new config attributes cachePk and cacheLookup.
But support old one where="" is broken by [DIHCacheSupport.<init>|]
- it never put where="" sides into the context, but it revealed by [SortedMapBackedCache.<init>|],
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|]
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()|].

> 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:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message