[jira] [Commented] (SOLR-247) Allow facet.field=* to facet on all fields (without knowing what they are)

2015-07-02 Thread Philip Willoughby (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611625#comment-14611625
 ] 

Philip Willoughby commented on SOLR-247:


[~erickerickson] Yes, we could do that. We don't use the schema browser on this 
core because it crashes or locks up the browser. The underlying /admin/luke 
endpoint takes over 12 seconds to respond (with 20280 known fields already this 
is not surprising) so we wouldn't be able to meet our <100ms SLA without 
re-architecting our application so that it's no longer stateless, which is a 
big step we aren't willing to take.

We are working around this by using both indexing approaches I outlined above 
and mixing the facets together correctly in application logic.

> Allow facet.field=* to facet on all fields (without knowing what they are)
> --
>
> Key: SOLR-247
> URL: https://issues.apache.org/jira/browse/SOLR-247
> Project: Solr
>  Issue Type: Improvement
>Reporter: Ryan McKinley
>Priority: Minor
>  Labels: beginners, newdev
> Attachments: SOLR-247-FacetAllFields.patch, SOLR-247.patch, 
> SOLR-247.patch, SOLR-247.patch
>
>
> I don't know if this is a good idea to include -- it is potentially a bad 
> idea to use it, but that can be ok.
> This came out of trying to use faceting for the LukeRequestHandler top term 
> collecting.
> http://www.nabble.com/Luke-request-handler-issue-tf3762155.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6639) LRUQueryCache.CachingWrapperWeight not calling policy.onUse() if the first scorer is skipped

2015-07-02 Thread Adrien Grand (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611649#comment-14611649
 ] 

Adrien Grand commented on LUCENE-6639:
--

One issue I have with putting the call in createWeight is that you might 
sometimes only pull a Weight in order to extract terms (eg. for highlighting or 
computing distributed term frequencies), so incrementing the counter here would 
not work.

That said, you made good arguments against the current logic. In particular 
it's true that reusing weights for multiple collections should not be common so 
maybe we can just call policy.onUse on the first time that Weight.scorer is 
called?

> LRUQueryCache.CachingWrapperWeight not calling policy.onUse() if the first 
> scorer is skipped
> 
>
> Key: LUCENE-6639
> URL: https://issues.apache.org/jira/browse/LUCENE-6639
> Project: Lucene - Core
>  Issue Type: Bug
>Affects Versions: 5.3
>Reporter: Terry Smith
>Priority: Minor
> Attachments: LUCENE-6639.patch
>
>
> The method 
> {{org.apache.lucene.search.LRUQueryCache.CachingWrapperWeight.scorer(LeafReaderContext)}}
>  starts with
> {code}
> if (context.ord == 0) {
> policy.onUse(getQuery());
> }
> {code}
> which can result in a missed call for queries that return a null scorer for 
> the first segment.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[JENKINS] Lucene-Solr-trunk-Windows (64bit/jdk1.8.0_45) - Build # 4986 - Failure!

2015-07-02 Thread Policeman Jenkins Server
Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Windows/4986/
Java: 64bit/jdk1.8.0_45 -XX:-UseCompressedOops -XX:+UseG1GC

2 tests failed.
FAILED:  org.apache.solr.cloud.AliasIntegrationTest.test

Error Message:
Test abandoned because suite timeout was reached.

Stack Trace:
java.lang.Exception: Test abandoned because suite timeout was reached.
at __randomizedtesting.SeedInfo.seed([66D5C4548D0D066E]:0)


FAILED:  junit.framework.TestSuite.org.apache.solr.cloud.AliasIntegrationTest

Error Message:
Suite timeout exceeded (>= 720 msec).

Stack Trace:
java.lang.Exception: Suite timeout exceeded (>= 720 msec).
at __randomizedtesting.SeedInfo.seed([66D5C4548D0D066E]:0)




Build Log:
[...truncated 11030 lines...]
   [junit4] Suite: org.apache.solr.cloud.AliasIntegrationTest
   [junit4]   2> Creating dataDir: 
C:\Users\JenkinsSlave\workspace\Lucene-Solr-trunk-Windows\solr\build\solr-core\test\J1\temp\solr.cloud.AliasIntegrationTest_66D5C4548D0D066E-001\init-core-data-001
   [junit4]   2> 472696 INFO  
(SUITE-AliasIntegrationTest-seed#[66D5C4548D0D066E]-worker) [] 
o.a.s.SolrTestCaseJ4 Randomized ssl (false) and clientAuth (false)
   [junit4]   2> 472696 INFO  
(SUITE-AliasIntegrationTest-seed#[66D5C4548D0D066E]-worker) [] 
o.a.s.BaseDistributedSearchTestCase Setting hostContext system property: /oa/g
   [junit4]   2> 472699 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.ZkTestServer STARTING ZK TEST SERVER
   [junit4]   2> 472701 INFO  (Thread-1572) [] o.a.s.c.ZkTestServer client 
port:0.0.0.0/0.0.0.0:0
   [junit4]   2> 472701 INFO  (Thread-1572) [] o.a.s.c.ZkTestServer 
Starting server
   [junit4]   2> 472787 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.ZkTestServer start zk server on port:55080
   [junit4]   2> 472787 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.SolrZkClient Using default ZkCredentialsProvider
   [junit4]   2> 472789 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.ConnectionManager Waiting for client to connect to ZooKeeper
   [junit4]   2> 472795 INFO  (zkCallback-444-thread-1) [] 
o.a.s.c.c.ConnectionManager Watcher 
org.apache.solr.common.cloud.ConnectionManager@329509a4 
name:ZooKeeperConnection Watcher:127.0.0.1:55080 got event WatchedEvent 
state:SyncConnected type:None path:null path:null type:None
   [junit4]   2> 472795 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.ConnectionManager Client is connected to ZooKeeper
   [junit4]   2> 472795 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.SolrZkClient Using default ZkACLProvider
   [junit4]   2> 472795 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.SolrZkClient makePath: /solr
   [junit4]   2> 472804 WARN  (NIOServerCxn.Factory:0.0.0.0/0.0.0.0:0) [] 
o.a.z.s.NIOServerCnxn caught end of stream exception
   [junit4]   2> EndOfStreamException: Unable to read additional data from 
client sessionid 0x14e4d6eb6d8, likely client has closed socket
   [junit4]   2>at 
org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228)
   [junit4]   2>at 
org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
   [junit4]   2>at java.lang.Thread.run(Thread.java:745)
   [junit4]   2> 472812 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.SolrZkClient Using default ZkCredentialsProvider
   [junit4]   2> 472814 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.ConnectionManager Waiting for client to connect to ZooKeeper
   [junit4]   2> 472819 INFO  (zkCallback-445-thread-1) [] 
o.a.s.c.c.ConnectionManager Watcher 
org.apache.solr.common.cloud.ConnectionManager@7562ba7b 
name:ZooKeeperConnection Watcher:127.0.0.1:55080/solr got event WatchedEvent 
state:SyncConnected type:None path:null path:null type:None
   [junit4]   2> 472821 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.ConnectionManager Client is connected to ZooKeeper
   [junit4]   2> 472822 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.SolrZkClient Using default ZkACLProvider
   [junit4]   2> 472822 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.SolrZkClient makePath: /collections/collection1
   [junit4]   2> 472824 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.SolrZkClient makePath: /collections/collection1/shards
   [junit4]   2> 472921 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.SolrZkClient makePath: /collections/control_collection
   [junit4]   2> 473363 INFO  
(TEST-AliasIntegrationTest.test-seed#[66D5C4548D0D066E]) [] 
o.a.s.c.c.SolrZkClient makePath: /collections/control_collection/s

[jira] [Commented] (LUCENE-6334) Fast Vector Highlighter does not properly span neighboring term offsets

2015-07-02 Thread Michael McCandless (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611667#comment-14611667
 ] 

Michael McCandless commented on LUCENE-6334:


[~vijayk] yes please!

> Fast Vector Highlighter does not properly span neighboring term offsets
> ---
>
> Key: LUCENE-6334
> URL: https://issues.apache.org/jira/browse/LUCENE-6334
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/termvectors, modules/highlighter
>Reporter: Chris Earle
>  Labels: easyfix
>
> If you are using term vectors for fast vector highlighting along with a 
> multivalue field while matching a phrase that crosses two elements, then it 
> will not properly highlight even though it _properly_ finds the correct 
> values to highlight.
> A good example of this is when matching source code, where you might have 
> lines like:
> {code}
> one two three five
> two three four
> five six five
> six seven eight nine eight nine eight nine eight nine eight nine eight nine
> eight nine
> ten eleven
> twelve thirteen
> {code}
> Matching the phrase "four five" will return
> {code}
> two three four
> five six five
> six seven eight nine eight nine eight nine eight nine eight
> eight nine
> ten eleven
> {code}
> However, it does not properly highlight "four" (on the first line) and "five" 
> (on the second line) _and_ it is returning too many lines, but not all of 
> them.
> The problem lies in the [BaseFragmentsBuilder at line 269| 
> https://github.com/apache/lucene-solr/blob/trunk/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/BaseFragmentsBuilder.java#L269]
>  because it is not checking for cross-coverage. Here is a possible solution:
> {code}
> boolean started = toffs.getStartOffset() >= fieldStart;
> boolean ended = toffs.getEndOffset() <= fieldEnd;
> // existing behavior:
> if (started && ended) {
> toffsList.add(toffs);
> toffsIterator.remove();
> }
> else if (started) {
> toffsList.add(new Toffs(toffs.getStartOffset(), field.end));
> // toffsIterator.remove(); // is this necessary?
> }
> else if (ended) {
> toffsList.add(new Toffs(fieldStart, toff.getEndOffset()));
> // toffsIterator.remove(); // is this necessary?
> }
> else if (toffs.getEndOffset() > fieldEnd) {
> // ie the toff spans whole field
> toffsList.add(new Toffs(fieldStart, fieldEnd));
> // toffsIterator.remove(); // is this necessary?
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6653) Cleanup TermToBytesRefAttribute

2015-07-02 Thread Michael McCandless (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611671#comment-14611671
 ] 

Michael McCandless commented on LUCENE-6653:


+1, thanks for cleaning up all those dup'd binary token streams [~thetaphi]!

> Cleanup TermToBytesRefAttribute
> ---
>
> Key: LUCENE-6653
> URL: https://issues.apache.org/jira/browse/LUCENE-6653
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: modules/analysis
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6653.patch
>
>
> While working on LUCENE-6652, I figured out that there were so many test with 
> wrongly implemented TermsToBytesRefAttribute. In addition, the whole concept 
> back from Lucene 4.0 was no longer correct:
> - We don't return the hash code anymore; it is calculated by BytesRefHash
> - The interface is horrible to use. It tends to reuse the BytesRef instance 
> but the whole thing is not correct.
> Instead we should remove the fillBytesRef() method from the interface and let 
> getBytesRef() populate and return the BytesRef. It does not matter if the 
> attribute reuses the BytesRef or returns a new one. It just get consumed like 
> a standard CharTermAttribute. You get a BytesRef and can use it until you 
> call incrementToken().
> As the TermsToBytesRefAttribute is marked experimental, I see no reason why 
> we should not change the semantics to be more easy to understand and behave 
> like all other attributes. I will add a note to the backwards incompatible 
> changes in Lucene 5.3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6653) Cleanup TermToBytesRefAttribute

2015-07-02 Thread Uwe Schindler (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611735#comment-14611735
 ] 

Uwe Schindler commented on LUCENE-6653:
---

Mike, are you also fine with the changes to the TermToBytesRefAttribute? I 
would backport those and mention the change of "workflow" in the backwards 
incompatible changes. People will get a compile error in any case if they 
define own attributes using this interface, but it will for sure not affect 
many users (maybe only those who wnated to get binary terms), which is now easy 
:-)

> Cleanup TermToBytesRefAttribute
> ---
>
> Key: LUCENE-6653
> URL: https://issues.apache.org/jira/browse/LUCENE-6653
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: modules/analysis
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6653.patch
>
>
> While working on LUCENE-6652, I figured out that there were so many test with 
> wrongly implemented TermsToBytesRefAttribute. In addition, the whole concept 
> back from Lucene 4.0 was no longer correct:
> - We don't return the hash code anymore; it is calculated by BytesRefHash
> - The interface is horrible to use. It tends to reuse the BytesRef instance 
> but the whole thing is not correct.
> Instead we should remove the fillBytesRef() method from the interface and let 
> getBytesRef() populate and return the BytesRef. It does not matter if the 
> attribute reuses the BytesRef or returns a new one. It just get consumed like 
> a standard CharTermAttribute. You get a BytesRef and can use it until you 
> call incrementToken().
> As the TermsToBytesRefAttribute is marked experimental, I see no reason why 
> we should not change the semantics to be more easy to understand and behave 
> like all other attributes. I will add a note to the backwards incompatible 
> changes in Lucene 5.3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6638) Factor graph flattening out of SynonymFilter

2015-07-02 Thread Michael McCandless (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael McCandless updated LUCENE-6638:
---
Attachment: LUCENE-6638.patch

New patch, now working with holes e.g. from a StopFilter.  I also added a test 
case to simulate the "StopFilter after SynFilter" case.  I think it's close ... 
another couple nocommits though.

> Factor graph flattening out of SynonymFilter
> 
>
> Key: LUCENE-6638
> URL: https://issues.apache.org/jira/browse/LUCENE-6638
> Project: Lucene - Core
>  Issue Type: New Feature
>Reporter: Michael McCandless
>Assignee: Michael McCandless
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6638.patch, LUCENE-6638.patch
>
>
> Spinoff from LUCENE-6582.
> SynonymFilter is very hairy, and has known nearly-impossible-to-fix bugs: it 
> produces the wrong graph, both accepting too many phrases and not enough 
> phrases, because it never creates new positions.
> This makes improvements like LUCENE-6582, to fix some of its bugs, 
> unnecessarily hard.
> I'd like to pull out the graph flattening into its own token filter, and I 
> think I have a starting patch that works.  I started with the "sausagizer" 
> stage on the branch from LUCENE-5012, but changed the approach so that it 
> should not have so many adversarial cases.
> I think this should make SynonymFilter quite a bit simpler, hopefully to the 
> point where we can just fix its bugs already.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6582) SynonymFilter should generate a correct (or, at least, better) graph

2015-07-02 Thread Michael McCandless (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611746#comment-14611746
 ] 

Michael McCandless commented on LUCENE-6582:


Thanks [~ianribas]!

I've opened LUCENE-6638 to create a "graph flattener" TokenFilter, and it seems 
to work well ... I'm going to now try to simplify SynFilter by removing the 
hairy graph flattening it must do today, and have it create correct graph 
outputs.  I think with the combination of these two we can then have 100% 
accurate synonym graphs for accurate query-time searches, but also have the 
"sausagized" version that indexing needs to "match" the graph corruption we do 
today.

> SynonymFilter should generate a correct (or, at least, better) graph
> 
>
> Key: LUCENE-6582
> URL: https://issues.apache.org/jira/browse/LUCENE-6582
> Project: Lucene - Core
>  Issue Type: Bug
>Reporter: Ian Ribas
> Attachments: LUCENE-6582.patch, LUCENE-6582.patch, LUCENE-6582.patch, 
> after.png, after2.png, after3.png, before.png
>
>
> Some time ago, I had a problem with synonyms and phrase type queries 
> (actually, it was elasticsearch and I was using a match query with multiple 
> terms and the "and" operator, as better explained here: 
> https://github.com/elastic/elasticsearch/issues/10394).
> That issue led to some work on Lucene: LUCENE-6400 (where I helped a little 
> with tests) and  LUCENE-6401. This issue is also related to LUCENE-3843.
> Starting from the discussion on LUCENE-6400, I'm attempting to implement a 
> solution. Here is a patch with a first step - the implementation to fix 
> "SynFilter to be able to 'make positions'" (as was mentioned on the 
> [issue|https://issues.apache.org/jira/browse/LUCENE-6400?focusedCommentId=14498554&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14498554]).
>  In this way, the synonym filter generates a correct (or, at least, better) 
> graph.
> As the synonym matching is greedy, I only had to worry about fixing the 
> position length of the rules of the current match, no future or past synonyms 
> would "span" over this match (please correct me if I'm wrong!). It did 
> require more buffering, twice as much.
> The new behavior I added is not active by default, a new parameter has to be 
> passed in a new constructor for {{SynonymFilter}}. The changes I made do 
> change the token stream generated by the synonym filter, and I thought it 
> would be better to let that be a voluntary decision for now.
> I did some refactoring on the code, but mostly on what I had to change for 
> may implementation, so that the patch was not too hard to read. I created 
> specific unit tests for the new implementation 
> ({{TestMultiWordSynonymFilter}}) that should show how things will be with the 
> new behavior.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5750) Backup/Restore API for SolrCloud

2015-07-02 Thread Noble Paul (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-5750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611757#comment-14611757
 ] 

Noble Paul commented on SOLR-5750:
--

2 design suggestions

1) Move the operations to {{CollectionsHandler}} . When the process starts add 
the backup name and the node that is processing the task to ZK
2) Do not restore all the replicas at once . Just create one replica of a shard 
first and then do ADDREPLICA till you have enough replicas

> Backup/Restore API for SolrCloud
> 
>
> Key: SOLR-5750
> URL: https://issues.apache.org/jira/browse/SOLR-5750
> Project: Solr
>  Issue Type: Sub-task
>  Components: SolrCloud
>Reporter: Shalin Shekhar Mangar
>Assignee: Varun Thacker
> Fix For: 5.2, Trunk
>
> Attachments: SOLR-5750.patch, SOLR-5750.patch, SOLR-5750.patch
>
>
> We should have an easy way to do backups and restores in SolrCloud. The 
> ReplicationHandler supports a backup command which can create snapshots of 
> the index but that is too little.
> The command should be able to backup:
> # Snapshots of all indexes or indexes from the leader or the shards
> # Config set
> # Cluster state
> # Cluster properties
> # Aliases
> # Overseer work queue?
> A restore should be able to completely restore the cloud i.e. no manual steps 
> required other than bringing nodes back up or setting up a new cloud cluster.
> SOLR-5340 will be a part of this issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6653) Cleanup TermToBytesRefAttribute

2015-07-02 Thread Robert Muir (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611863#comment-14611863
 ] 

Robert Muir commented on LUCENE-6653:
-

+1, this patch is great!

> Cleanup TermToBytesRefAttribute
> ---
>
> Key: LUCENE-6653
> URL: https://issues.apache.org/jira/browse/LUCENE-6653
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: modules/analysis
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6653.patch
>
>
> While working on LUCENE-6652, I figured out that there were so many test with 
> wrongly implemented TermsToBytesRefAttribute. In addition, the whole concept 
> back from Lucene 4.0 was no longer correct:
> - We don't return the hash code anymore; it is calculated by BytesRefHash
> - The interface is horrible to use. It tends to reuse the BytesRef instance 
> but the whole thing is not correct.
> Instead we should remove the fillBytesRef() method from the interface and let 
> getBytesRef() populate and return the BytesRef. It does not matter if the 
> attribute reuses the BytesRef or returns a new one. It just get consumed like 
> a standard CharTermAttribute. You get a BytesRef and can use it until you 
> call incrementToken().
> As the TermsToBytesRefAttribute is marked experimental, I see no reason why 
> we should not change the semantics to be more easy to understand and behave 
> like all other attributes. I will add a note to the backwards incompatible 
> changes in Lucene 5.3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6646) make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free

2015-07-02 Thread Christine Poerschke (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christine Poerschke updated LUCENE-6646:

Summary: make the EarlyTerminatingSortingCollector constructor 
SortingMergePolicy-free  (was: support SortingMergePolicy-free use of 
EarlyTerminatingSortingCollector)

> make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free
> -
>
> Key: LUCENE-6646
> URL: https://issues.apache.org/jira/browse/LUCENE-6646
> Project: Lucene - Core
>  Issue Type: Wish
>Reporter: Christine Poerschke
>Priority: Minor
>
> motivation and summary of proposed changes to follow via github pull request



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[GitHub] lucene-solr pull request: LUCENE-6646: SortingMergePolicy-free Ear...

2015-07-02 Thread cpoerschke
GitHub user cpoerschke opened a pull request:

https://github.com/apache/lucene-solr/pull/178

LUCENE-6646: SortingMergePolicy-free EarlyTerminatingSortingCollector 
constructor

for https://issues.apache.org/jira/i#browse/LUCENE-6646

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/bloomberg/lucene-solr trunk-etsc-lucene

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/lucene-solr/pull/178.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #178


commit 7881a5931cf8db8a76f1aee9ca747f6b8de2a63a
Author: Christine Poerschke 
Date:   2015-06-29T15:02:44Z

LUCENE-6646: make the EarlyTerminatingSortingCollector constructor 
SortingMergePolicy-free

motivation:
 * SOLR-5730 to make Lucene's SortingMergePolicy and 
EarlyTerminatingSortingCollector configurable in Solr.
 * outline of draft SOLR-5730 changes:
   + SolrIndexWriter constructor calls SolrIndexConfig.toIndexWriterConfig 
(passing the result to its lucene.IndexWriter super class)
   + SolrIndexConfig.toIndexWriterConfig(SolrCore core) calls 
SolrIndexConfig.buildMergePolicy
   + SolrIndexConfig.buildMergePolicy(IndexSchema schema) calls the 
SortingMergePolicy constructor (using the IndexSchema's mergeSortSpec)
   + SolrIndexSearcher.buildAndRunCollectorChain calls the 
EarlyTerminatingSortingCollector constructor (using the IndexSchema's 
mergeSortSpec)

summary of changes:
 * made SortingMergePolicy's isSorted into a static function
 * made EarlyTerminatingSortingCollector's constructor 
SortingMergePolicy-free, class summary docs updated to match
 * adjusted EarlyTerminatingSortingCollector.canEarlyTerminate to be 
SortingMergePolicy-free also
 * corresponding changes to TestEarlyTerminatingSortingCollector
 * adjusted AnalyzingInfixSuggester's EarlyTerminatingSortingCollector 
constructor call




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6646) make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free

2015-07-02 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611907#comment-14611907
 ] 

ASF GitHub Bot commented on LUCENE-6646:


GitHub user cpoerschke opened a pull request:

https://github.com/apache/lucene-solr/pull/178

LUCENE-6646: SortingMergePolicy-free EarlyTerminatingSortingCollector 
constructor

for https://issues.apache.org/jira/i#browse/LUCENE-6646

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/bloomberg/lucene-solr trunk-etsc-lucene

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/lucene-solr/pull/178.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #178


commit 7881a5931cf8db8a76f1aee9ca747f6b8de2a63a
Author: Christine Poerschke 
Date:   2015-06-29T15:02:44Z

LUCENE-6646: make the EarlyTerminatingSortingCollector constructor 
SortingMergePolicy-free

motivation:
 * SOLR-5730 to make Lucene's SortingMergePolicy and 
EarlyTerminatingSortingCollector configurable in Solr.
 * outline of draft SOLR-5730 changes:
   + SolrIndexWriter constructor calls SolrIndexConfig.toIndexWriterConfig 
(passing the result to its lucene.IndexWriter super class)
   + SolrIndexConfig.toIndexWriterConfig(SolrCore core) calls 
SolrIndexConfig.buildMergePolicy
   + SolrIndexConfig.buildMergePolicy(IndexSchema schema) calls the 
SortingMergePolicy constructor (using the IndexSchema's mergeSortSpec)
   + SolrIndexSearcher.buildAndRunCollectorChain calls the 
EarlyTerminatingSortingCollector constructor (using the IndexSchema's 
mergeSortSpec)

summary of changes:
 * made SortingMergePolicy's isSorted into a static function
 * made EarlyTerminatingSortingCollector's constructor 
SortingMergePolicy-free, class summary docs updated to match
 * adjusted EarlyTerminatingSortingCollector.canEarlyTerminate to be 
SortingMergePolicy-free also
 * corresponding changes to TestEarlyTerminatingSortingCollector
 * adjusted AnalyzingInfixSuggester's EarlyTerminatingSortingCollector 
constructor call




> make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free
> -
>
> Key: LUCENE-6646
> URL: https://issues.apache.org/jira/browse/LUCENE-6646
> Project: Lucene - Core
>  Issue Type: Wish
>Reporter: Christine Poerschke
>Priority: Minor
>
> motivation and summary of proposed changes to follow via github pull request



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Created] (SOLR-7748) Fix bin/solr to work on IBM J9

2015-07-02 Thread Shai Erera (JIRA)
Shai Erera created SOLR-7748:


 Summary: Fix bin/solr to work on IBM J9
 Key: SOLR-7748
 URL: https://issues.apache.org/jira/browse/SOLR-7748
 Project: Solr
  Issue Type: Bug
  Components: Server
Reporter: Shai Erera
Assignee: Shai Erera
 Fix For: 5.3, Trunk


bin/solr doesn't work on IBM J9 because it sets -Xloggc flag, while J9 supports 
-Xverbosegclog. This prevents using bin/solr to start it on J9.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-7748) Fix bin/solr to work on IBM J9

2015-07-02 Thread Shai Erera (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-7748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shai Erera updated SOLR-7748:
-
Attachment: solr-7748.patch

Patch fixes bin/solr.cmd since I tested it on Windows. If there are no 
objections to the change, I will change bin/solr too.

> Fix bin/solr to work on IBM J9
> --
>
> Key: SOLR-7748
> URL: https://issues.apache.org/jira/browse/SOLR-7748
> Project: Solr
>  Issue Type: Bug
>  Components: Server
>Reporter: Shai Erera
>Assignee: Shai Erera
> Fix For: 5.3, Trunk
>
> Attachments: solr-7748.patch
>
>
> bin/solr doesn't work on IBM J9 because it sets -Xloggc flag, while J9 
> supports -Xverbosegclog. This prevents using bin/solr to start it on J9.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Created] (LUCENE-6654) KNearestNeighborClassifier not taking in consideration Class ranking

2015-07-02 Thread Alessandro Benedetti (JIRA)
Alessandro Benedetti created LUCENE-6654:


 Summary: KNearestNeighborClassifier not taking in consideration 
Class ranking
 Key: LUCENE-6654
 URL: https://issues.apache.org/jira/browse/LUCENE-6654
 Project: Lucene - Core
  Issue Type: Improvement
  Components: modules/classification
Affects Versions: 5.2.1
Reporter: Alessandro Benedetti
Priority: Minor


Currently the KNN Classifier assign the score for a ClassificationResult, based 
only on the frequency of the class in the top K results.

This is conceptually a simplification.
Actually the ranking must take a part.

If not this can happen :

Top 4
1) Class1
2) Class1
3) Class2
4) Class2

As a result of this Top 4 , both the classes will have the same score.
But the expected result is that Class1 has a better score, as the MLT score the 
documents accordingly.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



Policeman Jenkins...

2015-07-02 Thread Uwe Schindler
...is now running Java 9 b70 (we left out many in between releases because of 
the bugs Robert found) and Java 8u60 b21.
Of course also the mainline 8u45 and 7u80.

Uwe

-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de




-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b70) - Build # 13294 - Failure!

2015-07-02 Thread Policeman Jenkins Server
Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/13294/
Java: 64bit/jdk1.9.0-ea-b70 -XX:-UseCompressedOops -XX:+UseG1GC

2 tests failed.
FAILED:  
org.apache.lucene.analysis.TestGraphTokenizers.testMockGraphTokenFilterBeforeHolesRandom

Error Message:
some thread(s) failed

Stack Trace:
java.lang.RuntimeException: some thread(s) failed
at 
org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:531)
at 
org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:433)
at 
org.apache.lucene.analysis.TestGraphTokenizers.testMockGraphTokenFilterBeforeHolesRandom(TestGraphTokenizers.java:366)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:502)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1627)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:836)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:872)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:886)
at 
org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:845)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:747)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:781)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:792)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:54)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
at java.lang.Thread.run(Thread.java:745)


FAILED:  
org.apache.lucene.analysis.TestGraphTokenizers.testDoubleMockGraphTokenFilterRandom

Error Message:
term 0 expected:<[  ]> but 
was:<[��]>

Stack Trace:
org.junit.ComparisonFailure: term 0 expected:<[  ]> but 
was:<[

RE: [JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b70) - Build # 13294 - Failure!

2015-07-02 Thread Uwe Schindler
Ok, Oh, looks like a new bug in Java 9 b70...

Uwe

-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de


> -Original Message-
> From: Policeman Jenkins Server [mailto:jenk...@thetaphi.de]
> Sent: Thursday, July 02, 2015 3:21 PM
> To: dev@lucene.apache.org
> Subject: [JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b70) - Build #
> 13294 - Failure!
> 
> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/13294/
> Java: 64bit/jdk1.9.0-ea-b70 -XX:-UseCompressedOops -XX:+UseG1GC
> 
> 2 tests failed.
> FAILED:
> org.apache.lucene.analysis.TestGraphTokenizers.testMockGraphTokenFilter
> BeforeHolesRandom
> 
> Error Message:
> some thread(s) failed
> 
> Stack Trace:
> java.lang.RuntimeException: some thread(s) failed
>   at
> org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(B
> aseTokenStreamTestCase.java:531)
>   at
> org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(B
> aseTokenStreamTestCase.java:433)
>   at
> org.apache.lucene.analysis.TestGraphTokenizers.testMockGraphTokenFilter
> BeforeHolesRandom(TestGraphTokenizers.java:366)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:62)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:502)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(Randomize
> dRunner.java:1627)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(Rando
> mizedRunner.java:836)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(Rando
> mizedRunner.java:872)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(Rando
> mizedRunner.java:886)
>   at
> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRule
> SetupTeardownChained.java:50)
>   at
> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeA
> fterRule.java:46)
>   at
> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleTh
> readAndTestName.java:49)
>   at
> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRule
> IgnoreAfterMaxFailures.java:65)
>   at
> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure
> .java:48)
>   at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
>   at
> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.
> run(ThreadLeakControl.java:365)
>   at
> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask
> (ThreadLeakControl.java:798)
>   at
> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadL
> eakControl.java:458)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(Ran
> domizedRunner.java:845)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(Rando
> mizedRunner.java:747)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(Rando
> mizedRunner.java:781)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(Rando
> mizedRunner.java:792)
>   at
> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeA
> fterRule.java:46)
>   at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
>   at
> org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreCl
> assName.java:42)
>   at
> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMet
> hodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
>   at
> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMet
> hodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
>   at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
>   at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
>   at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
>   at
> org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAss
> ertionsRequired.java:54)
>   at
> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure
> .java:48)
>   at
> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRule
> IgnoreAfterMaxFailures.java:65)
>   at
> org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnore
> TestSuites.java:55)
>   at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
>   at
> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.
> run(ThreadLeakControl.java:365)
>   at java.lang.Thread.run(Thread.jav

RE: [JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b70) - Build # 13294 - Failure!

2015-07-02 Thread Uwe Schindler
Looks like the fix for this one is not in b70: 
https://bugs.openjdk.java.net/browse/JDK-8086046
If it happens again (ant I am sure it will), I revert to Java 9 b60

Uwe

-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de


> -Original Message-
> From: Uwe Schindler [mailto:u...@thetaphi.de]
> Sent: Thursday, July 02, 2015 3:22 PM
> To: dev@lucene.apache.org
> Subject: RE: [JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b70) -
> Build # 13294 - Failure!
> 
> Ok, Oh, looks like a new bug in Java 9 b70...
> 
> Uwe
> 
> -
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: u...@thetaphi.de
> 
> 
> > -Original Message-
> > From: Policeman Jenkins Server [mailto:jenk...@thetaphi.de]
> > Sent: Thursday, July 02, 2015 3:21 PM
> > To: dev@lucene.apache.org
> > Subject: [JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b70) -
> > Build #
> > 13294 - Failure!
> >
> > Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/13294/
> > Java: 64bit/jdk1.9.0-ea-b70 -XX:-UseCompressedOops -XX:+UseG1GC
> >
> > 2 tests failed.
> > FAILED:
> >
> org.apache.lucene.analysis.TestGraphTokenizers.testMockGraphTokenFilte
> > r
> > BeforeHolesRandom
> >
> > Error Message:
> > some thread(s) failed
> >
> > Stack Trace:
> > java.lang.RuntimeException: some thread(s) failed
> > at
> >
> org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(B
> > aseTokenStreamTestCase.java:531)
> > at
> >
> org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(B
> > aseTokenStreamTestCase.java:433)
> > at
> >
> org.apache.lucene.analysis.TestGraphTokenizers.testMockGraphTokenFilte
> > r
> > BeforeHolesRandom(TestGraphTokenizers.java:366)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> > ava:62)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:502)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(Randomize
> > dRunner.java:1627)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(Rando
> > mizedRunner.java:836)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(Rando
> > mizedRunner.java:872)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(Rando
> > mizedRunner.java:886)
> > at
> >
> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRul
> > e
> > SetupTeardownChained.java:50)
> > at
> > org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBefo
> > reA
> > fterRule.java:46)
> > at
> >
> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleTh
> > readAndTestName.java:49)
> > at
> > org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestR
> > ule
> > IgnoreAfterMaxFailures.java:65)
> > at
> > org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFail
> > ure
> > .java:48)
> > at
> > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Sta
> > t
> > ementAdapter.java:36)
> > at
> >
> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.
> > run(ThreadLeakControl.java:365)
> > at
> >
> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTas
> > k
> > (ThreadLeakControl.java:798)
> > at
> >
> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(Thread
> > L
> > eakControl.java:458)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(Ran
> > domizedRunner.java:845)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(Rando
> > mizedRunner.java:747)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(Rando
> > mizedRunner.java:781)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(Rando
> > mizedRunner.java:792)
> > at
> > org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBefo
> > reA
> > fterRule.java:46)
> > at
> > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Sta
> > t
> > ementAdapter.java:36)
> > at
> > org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStore
> > Cl
> > assName.java:42)
> > at
> >
> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMet
> > hodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
> > at
> >
> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMet
> > hodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
> > at
> > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Sta
> > t
> > ementAdapter.java:36)
> > at
> > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Sta
> > t
> > ementAdapter.java:36)
> 

[jira] [Commented] (LUCENE-6653) Cleanup TermToBytesRefAttribute

2015-07-02 Thread Michael McCandless (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611955#comment-14611955
 ] 

Michael McCandless commented on LUCENE-6653:


bq. Mike, are you also fine with the changes to the TermToBytesRefAttribute?

Yes, big +1 to the new simpler API and to backport hard break to 5.x.

> Cleanup TermToBytesRefAttribute
> ---
>
> Key: LUCENE-6653
> URL: https://issues.apache.org/jira/browse/LUCENE-6653
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: modules/analysis
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6653.patch
>
>
> While working on LUCENE-6652, I figured out that there were so many test with 
> wrongly implemented TermsToBytesRefAttribute. In addition, the whole concept 
> back from Lucene 4.0 was no longer correct:
> - We don't return the hash code anymore; it is calculated by BytesRefHash
> - The interface is horrible to use. It tends to reuse the BytesRef instance 
> but the whole thing is not correct.
> Instead we should remove the fillBytesRef() method from the interface and let 
> getBytesRef() populate and return the BytesRef. It does not matter if the 
> attribute reuses the BytesRef or returns a new one. It just get consumed like 
> a standard CharTermAttribute. You get a BytesRef and can use it until you 
> call incrementToken().
> As the TermsToBytesRefAttribute is marked experimental, I see no reason why 
> we should not change the semantics to be more easy to understand and behave 
> like all other attributes. I will add a note to the backwards incompatible 
> changes in Lucene 5.3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



Re: [JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b70) - Build # 13294 - Failure!

2015-07-02 Thread dalibor topic



On 02.07.2015 15:27, Uwe Schindler wrote:

Looks like the fix for this one is not in b70: 
https://bugs.openjdk.java.net/browse/JDK-8086046


Yeah - it's marked as resolved on master (i.e. you can pull the code 
from master and do your own build with the fix to check it out). Once a 
new build is cut from master, it will be marked as resolved in that build.


cheers,
dalibor topic

--
 Dalibor Topic | Principal Product Manager
Phone: +494089091214  | Mobile: +491737185961


ORACLE Deutschland B.V. & Co. KG | Kühnehöfe 5 | 22761 Hamburg

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher

 Oracle is committed to developing
practices and products that help protect the environment

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6652) Remove tons of BytesRefAttribute/BytesRefAttributeImpl duplicates in tests

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611998#comment-14611998
 ] 

ASF subversion and git services commented on LUCENE-6652:
-

Commit 1688830 from [~thetaphi] in branch 'dev/trunk'
[ https://svn.apache.org/r1688830 ]

LUCENE-6653, LUCENE-6652: Refactor TermToBytesRefAttribute; add 
oal.analysis.tokenattributes.BytesTermAttribute; remove code duplication in 
tests

> Remove tons of BytesRefAttribute/BytesRefAttributeImpl duplicates in tests
> --
>
> Key: LUCENE-6652
> URL: https://issues.apache.org/jira/browse/LUCENE-6652
> Project: Lucene - Core
>  Issue Type: Test
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
>
> While implementing LUCENE-6651, I found a lot of duplicates of the same class 
> (in different variants) which is used by tests to generate binary terms. As 
> we now have support for binary terms in Field class itsself, we should remove 
> all of those attributes accross tests.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6653) Cleanup TermToBytesRefAttribute

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611997#comment-14611997
 ] 

ASF subversion and git services commented on LUCENE-6653:
-

Commit 1688830 from [~thetaphi] in branch 'dev/trunk'
[ https://svn.apache.org/r1688830 ]

LUCENE-6653, LUCENE-6652: Refactor TermToBytesRefAttribute; add 
oal.analysis.tokenattributes.BytesTermAttribute; remove code duplication in 
tests

> Cleanup TermToBytesRefAttribute
> ---
>
> Key: LUCENE-6653
> URL: https://issues.apache.org/jira/browse/LUCENE-6653
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: modules/analysis
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6653.patch
>
>
> While working on LUCENE-6652, I figured out that there were so many test with 
> wrongly implemented TermsToBytesRefAttribute. In addition, the whole concept 
> back from Lucene 4.0 was no longer correct:
> - We don't return the hash code anymore; it is calculated by BytesRefHash
> - The interface is horrible to use. It tends to reuse the BytesRef instance 
> but the whole thing is not correct.
> Instead we should remove the fillBytesRef() method from the interface and let 
> getBytesRef() populate and return the BytesRef. It does not matter if the 
> attribute reuses the BytesRef or returns a new one. It just get consumed like 
> a standard CharTermAttribute. You get a BytesRef and can use it until you 
> call incrementToken().
> As the TermsToBytesRefAttribute is marked experimental, I see no reason why 
> we should not change the semantics to be more easy to understand and behave 
> like all other attributes. I will add a note to the backwards incompatible 
> changes in Lucene 5.3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-7748) Fix bin/solr to work on IBM J9

2015-07-02 Thread Shawn Heisey (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612038#comment-14612038
 ] 

Shawn Heisey commented on SOLR-7748:


There are severe bugs that happen in Lucene when using IBM's Java.  I seem to 
recall seeing something indicating that IBM is starting to take them seriously, 
but that might have been wishful thinking.

It will be quite a while after IBM fixes the problem (if they ever do) before 
there is widespread penetration of fixed Java versions, so until that happens, 
the fact that bin/solr doesn't work right might actually be a good thing.

As I understand it, the J9 problems occur because IBM is extremely aggressive 
at turning on optimizations in the JVM.  The performance of IBM's Java is 
legendary as a result of this, but it also causes a lot of problems.

I know that in at least one case of a bug with J9, there is an optimization 
that can be turned off to fix the problem ... there may be other bugs fixed by 
turning off certain optimizations.

As an initial step, I was thinking about having the startup script detect J9 
versions and abort with a message indicating serious JVM bugs (perhaps linking 
to the JavaBugs page on the Lucene wiki).  We already have detection for Java 
7u40 through 7u51, which enables the -XX:-UseSuperWord option for Java and 
prints a warning to the user about upgrading Java.

As we learn more, we could start with commandline options to work around the 
problems, and then if IBM ever actually fixes the problems, run normally with 
those detected versions.

The java version detection currently happens in the script, which I think may 
be a little fragile.  Perhaps a tiny little Java program could be written to 
detect a whole range of information about the JVM and return one or more known 
strings back to the script to tell the script what to do .  Those actions might 
include aborting because the java version is not new enough, issuing a warning 
because it's not 64-bit, turning on X and/or Y commandline options, etc.  We 
might even be able to set the max heap according to the available memory, but 
do so less aggressively than Java itself does.

This comment turned into quite a lot of text!  I started off just writing a 
quick note about J9 bugs.

> Fix bin/solr to work on IBM J9
> --
>
> Key: SOLR-7748
> URL: https://issues.apache.org/jira/browse/SOLR-7748
> Project: Solr
>  Issue Type: Bug
>  Components: Server
>Reporter: Shai Erera
>Assignee: Shai Erera
> Fix For: 5.3, Trunk
>
> Attachments: solr-7748.patch
>
>
> bin/solr doesn't work on IBM J9 because it sets -Xloggc flag, while J9 
> supports -Xverbosegclog. This prevents using bin/solr to start it on J9.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-247) Allow facet.field=* to facet on all fields (without knowing what they are)

2015-07-02 Thread Erick Erickson (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612045#comment-14612045
 ] 

Erick Erickson commented on SOLR-247:
-

< 100 ms SLAs would be hard to meet if you wind up faceting on very many fields 
in the first place, so I'm not quite sure how this JIRA would solve your 
problem. Generally having that many fields indicates some design alternatives 
should be explored...

FWIW

> Allow facet.field=* to facet on all fields (without knowing what they are)
> --
>
> Key: SOLR-247
> URL: https://issues.apache.org/jira/browse/SOLR-247
> Project: Solr
>  Issue Type: Improvement
>Reporter: Ryan McKinley
>Priority: Minor
>  Labels: beginners, newdev
> Attachments: SOLR-247-FacetAllFields.patch, SOLR-247.patch, 
> SOLR-247.patch, SOLR-247.patch
>
>
> I don't know if this is a good idea to include -- it is potentially a bad 
> idea to use it, but that can be ok.
> This came out of trying to use faceting for the LukeRequestHandler top term 
> collecting.
> http://www.nabble.com/Luke-request-handler-issue-tf3762155.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.8.0_45) - Build # 13295 - Still Failing!

2015-07-02 Thread Policeman Jenkins Server
Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/13295/
Java: 64bit/jdk1.8.0_45 -XX:+UseCompressedOops -XX:+UseSerialGC

1 tests failed.
FAILED:  org.apache.solr.handler.TestSolrConfigHandlerConcurrent.test

Error Message:


Stack Trace:
java.lang.NullPointerException
at 
__randomizedtesting.SeedInfo.seed([6323362784A2DADD:EB7709FD2A5EB725]:0)
at 
org.apache.solr.handler.TestSolrConfigHandlerConcurrent.test(TestSolrConfigHandlerConcurrent.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1627)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:836)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:872)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:886)
at 
org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsFixedStatement.callStatement(BaseDistributedSearchTestCase.java:960)
at 
org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsStatement.evaluate(BaseDistributedSearchTestCase.java:935)
at 
com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
at 
org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:845)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:747)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:781)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:792)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:54)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
at java.lang.Thread.run(Thread.java:745)




Build Log:
[...truncated 9374 lines...]
   [junit4] Suite: org.apache.solr.handler.TestSolrConfigHandlerConcurrent
   [junit4]   2> Creating dataDir:

[jira] [Commented] (LUCENE-6652) Remove tons of BytesRefAttribute/BytesRefAttributeImpl duplicates in tests

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612052#comment-14612052
 ] 

ASF subversion and git services commented on LUCENE-6652:
-

Commit 1688845 from [~thetaphi] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1688845 ]

Merged revision(s) 1688830 from lucene/dev/trunk:
LUCENE-6653, LUCENE-6652: Refactor TermToBytesRefAttribute; add 
oal.analysis.tokenattributes.BytesTermAttribute; remove code duplication in 
tests

> Remove tons of BytesRefAttribute/BytesRefAttributeImpl duplicates in tests
> --
>
> Key: LUCENE-6652
> URL: https://issues.apache.org/jira/browse/LUCENE-6652
> Project: Lucene - Core
>  Issue Type: Test
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
>
> While implementing LUCENE-6651, I found a lot of duplicates of the same class 
> (in different variants) which is used by tests to generate binary terms. As 
> we now have support for binary terms in Field class itsself, we should remove 
> all of those attributes accross tests.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6653) Cleanup TermToBytesRefAttribute

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612051#comment-14612051
 ] 

ASF subversion and git services commented on LUCENE-6653:
-

Commit 1688845 from [~thetaphi] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1688845 ]

Merged revision(s) 1688830 from lucene/dev/trunk:
LUCENE-6653, LUCENE-6652: Refactor TermToBytesRefAttribute; add 
oal.analysis.tokenattributes.BytesTermAttribute; remove code duplication in 
tests

> Cleanup TermToBytesRefAttribute
> ---
>
> Key: LUCENE-6653
> URL: https://issues.apache.org/jira/browse/LUCENE-6653
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: modules/analysis
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6653.patch
>
>
> While working on LUCENE-6652, I figured out that there were so many test with 
> wrongly implemented TermsToBytesRefAttribute. In addition, the whole concept 
> back from Lucene 4.0 was no longer correct:
> - We don't return the hash code anymore; it is calculated by BytesRefHash
> - The interface is horrible to use. It tends to reuse the BytesRef instance 
> but the whole thing is not correct.
> Instead we should remove the fillBytesRef() method from the interface and let 
> getBytesRef() populate and return the BytesRef. It does not matter if the 
> attribute reuses the BytesRef or returns a new one. It just get consumed like 
> a standard CharTermAttribute. You get a BytesRef and can use it until you 
> call incrementToken().
> As the TermsToBytesRefAttribute is marked experimental, I see no reason why 
> we should not change the semantics to be more easy to understand and behave 
> like all other attributes. I will add a note to the backwards incompatible 
> changes in Lucene 5.3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Resolved] (LUCENE-6653) Cleanup TermToBytesRefAttribute

2015-07-02 Thread Uwe Schindler (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler resolved LUCENE-6653.
---
Resolution: Fixed

Thanks to [~rcmuir] and [~mikemccand] for review!

> Cleanup TermToBytesRefAttribute
> ---
>
> Key: LUCENE-6653
> URL: https://issues.apache.org/jira/browse/LUCENE-6653
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: modules/analysis
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6653.patch
>
>
> While working on LUCENE-6652, I figured out that there were so many test with 
> wrongly implemented TermsToBytesRefAttribute. In addition, the whole concept 
> back from Lucene 4.0 was no longer correct:
> - We don't return the hash code anymore; it is calculated by BytesRefHash
> - The interface is horrible to use. It tends to reuse the BytesRef instance 
> but the whole thing is not correct.
> Instead we should remove the fillBytesRef() method from the interface and let 
> getBytesRef() populate and return the BytesRef. It does not matter if the 
> attribute reuses the BytesRef or returns a new one. It just get consumed like 
> a standard CharTermAttribute. You get a BytesRef and can use it until you 
> call incrementToken().
> As the TermsToBytesRefAttribute is marked experimental, I see no reason why 
> we should not change the semantics to be more easy to understand and behave 
> like all other attributes. I will add a note to the backwards incompatible 
> changes in Lucene 5.3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Resolved] (LUCENE-6652) Remove tons of BytesRefAttribute/BytesRefAttributeImpl duplicates in tests

2015-07-02 Thread Uwe Schindler (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler resolved LUCENE-6652.
---
Resolution: Fixed

Committed through LUCENE-6653.

> Remove tons of BytesRefAttribute/BytesRefAttributeImpl duplicates in tests
> --
>
> Key: LUCENE-6652
> URL: https://issues.apache.org/jira/browse/LUCENE-6652
> Project: Lucene - Core
>  Issue Type: Test
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
>
> While implementing LUCENE-6651, I found a lot of duplicates of the same class 
> (in different variants) which is used by tests to generate binary terms. As 
> we now have support for binary terms in Field class itsself, we should remove 
> all of those attributes accross tests.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread Uwe Schindler (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612059#comment-14612059
 ] 

Uwe Schindler commented on LUCENE-6651:
---

So coming back to this one. After cleanup of TermToBytesRefAttribute and test 
code duplication (LUCENE-6652, LUCENE-6653), I can fix the attributes to 
implement reflectWith() and make the base method abstract in trunk.

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-MethodHandles.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6365) Optimized iteration of finite strings

2015-07-02 Thread Markus Heiden (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Heiden updated LUCENE-6365:
--
Attachment: (was: FiniteStringsIterator.patch)

> Optimized iteration of finite strings
> -
>
> Key: LUCENE-6365
> URL: https://issues.apache.org/jira/browse/LUCENE-6365
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.0
>Reporter: Markus Heiden
>Priority: Minor
>  Labels: patch, performance
> Attachments: FiniteStrings_reuse.patch
>
>
> Replaced Operations.getFiniteStrings() by an optimized FiniteStringIterator.
> Benefits:
> Avoid huge hash set of finite strings.
> Avoid massive object/array creation during processing.
> "Downside":
> Iteration order changed, so when iterating with a limit, the result may 
> differ slightly. Old: emit current node, if accept / recurse. New: recurse / 
> emit current node, if accept.
> The old method Operations.getFiniteStrings() still exists, because it eases 
> the tests. It is now implemented by use of the new FiniteStringIterator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6365) Optimized iteration of finite strings

2015-07-02 Thread Markus Heiden (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Heiden updated LUCENE-6365:
--
Attachment: FiniteStrings_reuse.patch

> Optimized iteration of finite strings
> -
>
> Key: LUCENE-6365
> URL: https://issues.apache.org/jira/browse/LUCENE-6365
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.0
>Reporter: Markus Heiden
>Priority: Minor
>  Labels: patch, performance
> Attachments: FiniteStrings_reuse.patch
>
>
> Replaced Operations.getFiniteStrings() by an optimized FiniteStringIterator.
> Benefits:
> Avoid huge hash set of finite strings.
> Avoid massive object/array creation during processing.
> "Downside":
> Iteration order changed, so when iterating with a limit, the result may 
> differ slightly. Old: emit current node, if accept / recurse. New: recurse / 
> emit current node, if accept.
> The old method Operations.getFiniteStrings() still exists, because it eases 
> the tests. It is now implemented by use of the new FiniteStringIterator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6365) Optimized iteration of finite strings

2015-07-02 Thread Markus Heiden (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Heiden updated LUCENE-6365:
--
Attachment: (was: FiniteStringsIterator5.patch)

> Optimized iteration of finite strings
> -
>
> Key: LUCENE-6365
> URL: https://issues.apache.org/jira/browse/LUCENE-6365
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.0
>Reporter: Markus Heiden
>Priority: Minor
>  Labels: patch, performance
> Attachments: FiniteStrings_reuse.patch
>
>
> Replaced Operations.getFiniteStrings() by an optimized FiniteStringIterator.
> Benefits:
> Avoid huge hash set of finite strings.
> Avoid massive object/array creation during processing.
> "Downside":
> Iteration order changed, so when iterating with a limit, the result may 
> differ slightly. Old: emit current node, if accept / recurse. New: recurse / 
> emit current node, if accept.
> The old method Operations.getFiniteStrings() still exists, because it eases 
> the tests. It is now implemented by use of the new FiniteStringIterator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6365) Optimized iteration of finite strings

2015-07-02 Thread Markus Heiden (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Heiden updated LUCENE-6365:
--
Attachment: (was: FiniteStringsIterator2.patch)

> Optimized iteration of finite strings
> -
>
> Key: LUCENE-6365
> URL: https://issues.apache.org/jira/browse/LUCENE-6365
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.0
>Reporter: Markus Heiden
>Priority: Minor
>  Labels: patch, performance
> Attachments: FiniteStrings_reuse.patch
>
>
> Replaced Operations.getFiniteStrings() by an optimized FiniteStringIterator.
> Benefits:
> Avoid huge hash set of finite strings.
> Avoid massive object/array creation during processing.
> "Downside":
> Iteration order changed, so when iterating with a limit, the result may 
> differ slightly. Old: emit current node, if accept / recurse. New: recurse / 
> emit current node, if accept.
> The old method Operations.getFiniteStrings() still exists, because it eases 
> the tests. It is now implemented by use of the new FiniteStringIterator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6365) Optimized iteration of finite strings

2015-07-02 Thread Markus Heiden (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Heiden updated LUCENE-6365:
--
Attachment: (was: FiniteStringsIterator3.patch)

> Optimized iteration of finite strings
> -
>
> Key: LUCENE-6365
> URL: https://issues.apache.org/jira/browse/LUCENE-6365
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.0
>Reporter: Markus Heiden
>Priority: Minor
>  Labels: patch, performance
> Attachments: FiniteStrings_reuse.patch
>
>
> Replaced Operations.getFiniteStrings() by an optimized FiniteStringIterator.
> Benefits:
> Avoid huge hash set of finite strings.
> Avoid massive object/array creation during processing.
> "Downside":
> Iteration order changed, so when iterating with a limit, the result may 
> differ slightly. Old: emit current node, if accept / recurse. New: recurse / 
> emit current node, if accept.
> The old method Operations.getFiniteStrings() still exists, because it eases 
> the tests. It is now implemented by use of the new FiniteStringIterator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6365) Optimized iteration of finite strings

2015-07-02 Thread Markus Heiden (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Heiden updated LUCENE-6365:
--
Attachment: (was: FiniteStringsIterator6.patch)

> Optimized iteration of finite strings
> -
>
> Key: LUCENE-6365
> URL: https://issues.apache.org/jira/browse/LUCENE-6365
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.0
>Reporter: Markus Heiden
>Priority: Minor
>  Labels: patch, performance
> Attachments: FiniteStrings_reuse.patch
>
>
> Replaced Operations.getFiniteStrings() by an optimized FiniteStringIterator.
> Benefits:
> Avoid huge hash set of finite strings.
> Avoid massive object/array creation during processing.
> "Downside":
> Iteration order changed, so when iterating with a limit, the result may 
> differ slightly. Old: emit current node, if accept / recurse. New: recurse / 
> emit current node, if accept.
> The old method Operations.getFiniteStrings() still exists, because it eases 
> the tests. It is now implemented by use of the new FiniteStringIterator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread Uwe Schindler (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler updated LUCENE-6651:
--
Attachment: LUCENE-6651.patch

Patch.

This also adds a missing clone() to one of the attributes encountered.

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-MethodHandles.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread Robert Muir (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612111#comment-14612111
 ] 

Robert Muir commented on LUCENE-6651:
-

+1

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-MethodHandles.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[JENKINS] Lucene-Solr-5.x-Linux (64bit/jdk1.7.0_80) - Build # 13119 - Failure!

2015-07-02 Thread Policeman Jenkins Server
Build: http://jenkins.thetaphi.de/job/Lucene-Solr-5.x-Linux/13119/
Java: 64bit/jdk1.7.0_80 -XX:-UseCompressedOops -XX:+UseParallelGC

1 tests failed.
FAILED:  org.apache.solr.cloud.CollectionsAPIDistributedZkTest.test

Error Message:
Captured an uncaught exception in thread: Thread[id=1656, name=collection0, 
state=RUNNABLE, group=TGRP-CollectionsAPIDistributedZkTest]

Stack Trace:
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught 
exception in thread: Thread[id=1656, name=collection0, state=RUNNABLE, 
group=TGRP-CollectionsAPIDistributedZkTest]
Caused by: 
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error 
from server at https://127.0.0.1:41152: Could not find collection : 
awholynewstresscollection_collection0_0
at __randomizedtesting.SeedInfo.seed([6FECDD9611379631]:0)
at 
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:560)
at 
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:234)
at 
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:226)
at 
org.apache.solr.client.solrj.impl.LBHttpSolrClient.doRequest(LBHttpSolrClient.java:376)
at 
org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:328)
at 
org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1086)
at 
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:856)
at 
org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:799)
at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1220)
at 
org.apache.solr.cloud.CollectionsAPIDistributedZkTest$1CollectionThread.run(CollectionsAPIDistributedZkTest.java:894)




Build Log:
[...truncated 10240 lines...]
   [junit4] Suite: org.apache.solr.cloud.CollectionsAPIDistributedZkTest
   [junit4]   2> Creating dataDir: 
/home/jenkins/workspace/Lucene-Solr-5.x-Linux/solr/build/solr-core/test/J1/temp/solr.cloud.CollectionsAPIDistributedZkTest_6FECDD9611379631-001/init-core-data-001
   [junit4]   2> 258258 INFO  
(SUITE-CollectionsAPIDistributedZkTest-seed#[6FECDD9611379631]-worker) [] 
o.a.s.SolrTestCaseJ4 Randomized ssl (true) and clientAuth (false)
   [junit4]   2> 258258 INFO  
(SUITE-CollectionsAPIDistributedZkTest-seed#[6FECDD9611379631]-worker) [] 
o.a.s.BaseDistributedSearchTestCase Setting hostContext system property: /
   [junit4]   2> 258261 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6FECDD9611379631]) [] 
o.a.s.c.ZkTestServer STARTING ZK TEST SERVER
   [junit4]   2> 258261 INFO  (Thread-534) [] o.a.s.c.ZkTestServer client 
port:0.0.0.0/0.0.0.0:0
   [junit4]   2> 258261 INFO  (Thread-534) [] o.a.s.c.ZkTestServer Starting 
server
   [junit4]   2> 258361 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6FECDD9611379631]) [] 
o.a.s.c.ZkTestServer start zk server on port:54698
   [junit4]   2> 258361 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6FECDD9611379631]) [] 
o.a.s.c.c.SolrZkClient Using default ZkCredentialsProvider
   [junit4]   2> 258362 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6FECDD9611379631]) [] 
o.a.s.c.c.ConnectionManager Waiting for client to connect to ZooKeeper
   [junit4]   2> 258364 INFO  (zkCallback-150-thread-1) [] 
o.a.s.c.c.ConnectionManager Watcher 
org.apache.solr.common.cloud.ConnectionManager@251bf193 
name:ZooKeeperConnection Watcher:127.0.0.1:54698 got event WatchedEvent 
state:SyncConnected type:None path:null path:null type:None
   [junit4]   2> 258364 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6FECDD9611379631]) [] 
o.a.s.c.c.ConnectionManager Client is connected to ZooKeeper
   [junit4]   2> 258364 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6FECDD9611379631]) [] 
o.a.s.c.c.SolrZkClient Using default ZkACLProvider
   [junit4]   2> 258364 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6FECDD9611379631]) [] 
o.a.s.c.c.SolrZkClient makePath: /solr
   [junit4]   2> 258365 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6FECDD9611379631]) [] 
o.a.s.c.c.SolrZkClient Using default ZkCredentialsProvider
   [junit4]   2> 258366 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6FECDD9611379631]) [] 
o.a.s.c.c.ConnectionManager Waiting for client to connect to ZooKeeper
   [junit4]   2> 258367 INFO  (zkCallback-151-thread-1) [] 
o.a.s.c.c.ConnectionManager Watcher 
org.apache.solr.common.cloud.ConnectionManager@5c2e7fa3 
name:ZooKeeperConnection Watcher:127.0.0.1:54698/solr got event WatchedEvent 
state:SyncConnected type:None path:null path:null type:None
   [junit4]   2> 258367 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6FECDD9611379631]) [] 
o.a.s.c.c.ConnectionManager Client is connected to ZooKeeper
   [junit4]   2> 258367 INFO  
(TEST-Collections

[jira] [Updated] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread Uwe Schindler (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler updated LUCENE-6651:
--
Attachment: LUCENE-6651.patch

Minor updates, adding Java 8 @FunctionalInterface to AttributeReflector.

Wil commit this soon and provide a patch for branch_5x, with all attributes but 
preserving the reflection inside a AccessController.doPrivileged().

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-MethodHandles.patch, LUCENE-6651.patch, 
> LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Comment Edited] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread Uwe Schindler (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612125#comment-14612125
 ] 

Uwe Schindler edited comment on LUCENE-6651 at 7/2/15 4:02 PM:
---

Minor updates, adding Java 8 @FunctionalInterface to AttributeReflector.

Wil commit this soon and provide a patch for branch_5x, with all 
implementations but preserving the reflection inside a 
AccessController.doPrivileged() for backwards compatibility.


was (Author: thetaphi):
Minor updates, adding Java 8 @FunctionalInterface to AttributeReflector.

Wil commit this soon and provide a patch for branch_5x, with all attributes but 
preserving the reflection inside a AccessController.doPrivileged().

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-MethodHandles.patch, LUCENE-6651.patch, 
> LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612148#comment-14612148
 ] 

ASF subversion and git services commented on LUCENE-6651:
-

Commit 1688855 from [~thetaphi] in branch 'dev/trunk'
[ https://svn.apache.org/r1688855 ]

LUCENE-6651: AttributeImpl#reflectWith(AttributeReflector) was made abstract 
and has no reflection-based default implementation anymore.

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-MethodHandles.patch, LUCENE-6651.patch, 
> LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread Mike Drob (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612149#comment-14612149
 ] 

Mike Drob commented on LUCENE-6651:
---

Nit: {{ComputedRangesAttributeImpl c = (ComputedRangesAttributeImpl) 
super.clone();;}} double semi-colon.

Why remove {{UniqueFieldAttributeImpl.toString}}? Seems like it would be safe 
to leave it even if it is not strictly necessary, yes?

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-MethodHandles.patch, LUCENE-6651.patch, 
> LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-7692) Implement BasicAuth based impl for the new Authentication/Authorization APIs

2015-07-02 Thread Noble Paul (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-7692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Noble Paul updated SOLR-7692:
-
Attachment: SOLR-7692.patch

first patch with basic tests

> Implement BasicAuth based impl for the new Authentication/Authorization APIs
> 
>
> Key: SOLR-7692
> URL: https://issues.apache.org/jira/browse/SOLR-7692
> Project: Solr
>  Issue Type: New Feature
>Reporter: Noble Paul
>Assignee: Noble Paul
> Attachments: SOLR-7692.patch
>
>
> This involves various components
> h2. Authentication
> A basic auth based authentication filter. This should retrieve the user 
> credentials from ZK.  The user name and sha1 hash of password should be 
> stored in ZK
> sample authentication json 
> {code:javascript}
> {
>   "authentication":{
> "class": "solr.BasicAuth",
> "users" :{
>   "john" :{09fljnklnoiuy98 buygujkjnlk",
>   "david":"f678njfgfjnklno iuy9865ty",
>   "pete": "87ykjnklndfhjh8 98uyiy98",
> }
>   }
> }
> {code}
> h2. authorization plugin
> This would store the roles of various users and their privileges in ZK
> sample authorization.json
> {code:javascript}
> {
>   "authorization": {
> "class": "solr.ZKAuthorization",
>"roles" :{
>   "admin" : ["john"]
>   "guest" : ["john", "david","pete"]
>}
> "permissions": {
>"collectionadmin": {
>  "roles": ["admin"] 
>},
>"coreadmin":{
>  "roles":["admin"]
>},
>"config-api": {
>  //all collections
>  "roles": ["admin"]
>},
>"schema-api": {
>  "roles": ["admin"]
>},
>"update": {
>  //all collections
>  "roles": null
>},
>"query":{
>  "roles":null
>},
>   "mycoll_update": {
> "collection": "mycoll",
> "path":["/update/*"],
> "roles": ["somebody"]//create a dir called /keys/somebody and put in 
> usr.pwd files
>   }
> }
>   }
> }
> {code} 
> We will also need to provide APIs to create users and assign them roles



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread Uwe Schindler (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612168#comment-14612168
 ] 

Uwe Schindler commented on LUCENE-6651:
---

toString() should not be implemented, because its done automatically using 
reflectWith().

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-5x.patch, LUCENE-6651-MethodHandles.patch, 
> LUCENE-6651.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread Uwe Schindler (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler updated LUCENE-6651:
--
Attachment: LUCENE-6651-5x.patch

Patch for 5.x, using AccessController.doPrivileged.

If needed for Elasticsearch, I can backport just the changes in AttributeImpl 
to 5.2.2!

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-5x.patch, LUCENE-6651-MethodHandles.patch, 
> LUCENE-6651.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread Uwe Schindler (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612169#comment-14612169
 ] 

Uwe Schindler commented on LUCENE-6651:
---

The only special case is CharTermAttributeImpl, because it needs to comply with 
CharSequence API. This is also one reason why we added explicit attribute 
reflection back in 3.x.

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-5x.patch, LUCENE-6651-MethodHandles.patch, 
> LUCENE-6651.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612183#comment-14612183
 ] 

ASF subversion and git services commented on LUCENE-6651:
-

Commit 1688863 from [~thetaphi] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1688863 ]

LUCENE-6651: AttributeImpl#reflectWith(AttributeReflector)'s default Impl was 
"deprecated" in 5.x. All code should implement this. In addition the default 
impl is now using AccessController.doPrivileged() to do the accessibility 
changes.

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-5x.patch, LUCENE-6651-MethodHandles.patch, 
> LUCENE-6651.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Resolved] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread Uwe Schindler (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler resolved LUCENE-6651.
---
Resolution: Fixed

Please repoen for backport of {{AttributeImpl#reflectWith(AttributeReflector)}} 
to 5.2.2!

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-5x.patch, LUCENE-6651-MethodHandles.patch, 
> LUCENE-6651.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[JENKINS] Lucene-Solr-5.x-MacOSX (64bit/jdk1.7.0) - Build # 2425 - Failure!

2015-07-02 Thread Policeman Jenkins Server
Build: http://jenkins.thetaphi.de/job/Lucene-Solr-5.x-MacOSX/2425/
Java: 64bit/jdk1.7.0 -XX:-UseCompressedOops -XX:+UseParallelGC

1 tests failed.
FAILED:  org.apache.solr.cloud.TestRebalanceLeaders.test

Error Message:
No live SolrServers available to handle this 
request:[http://127.0.0.1:59851/o_ss, http://127.0.0.1:59857/o_ss, 
http://127.0.0.1:59863/o_ss, http://127.0.0.1:59843/o_ss, 
http://127.0.0.1:59835/o_ss]

Stack Trace:
org.apache.solr.client.solrj.SolrServerException: No live SolrServers available 
to handle this request:[http://127.0.0.1:59851/o_ss, 
http://127.0.0.1:59857/o_ss, http://127.0.0.1:59863/o_ss, 
http://127.0.0.1:59843/o_ss, http://127.0.0.1:59835/o_ss]
at 
__randomizedtesting.SeedInfo.seed([46F026DAD70DFE63:CEA4190079F1939B]:0)
at 
org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:355)
at 
org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1086)
at 
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:856)
at 
org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:799)
at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1220)
at 
org.apache.solr.cloud.TestRebalanceLeaders.issueCommands(TestRebalanceLeaders.java:281)
at 
org.apache.solr.cloud.TestRebalanceLeaders.rebalanceLeaderTest(TestRebalanceLeaders.java:108)
at 
org.apache.solr.cloud.TestRebalanceLeaders.test(TestRebalanceLeaders.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1627)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:836)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:872)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:886)
at 
org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsFixedStatement.callStatement(BaseDistributedSearchTestCase.java:960)
at 
org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsStatement.evaluate(BaseDistributedSearchTestCase.java:935)
at 
com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
at 
org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:845)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:747)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:781)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:792)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(St

[JENKINS] Lucene-Solr-trunk-Windows (64bit/jdk1.8.0_45) - Build # 4988 - Failure!

2015-07-02 Thread Policeman Jenkins Server
Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Windows/4988/
Java: 64bit/jdk1.8.0_45 -XX:+UseCompressedOops -XX:+UseSerialGC

1 tests failed.
FAILED:  org.apache.lucene.store.TestRateLimiter.testPause

Error Message:
we should sleep less than 2 seconds but did: 2220 millis

Stack Trace:
java.lang.AssertionError: we should sleep less than 2 seconds but did: 2220 
millis
at 
__randomizedtesting.SeedInfo.seed([F7DF3BD40A5FBA2C:917F7FEA8172E32A]:0)
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.assertTrue(Assert.java:43)
at 
org.apache.lucene.store.TestRateLimiter.testPause(TestRateLimiter.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1627)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:836)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:872)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:886)
at 
org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:845)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:747)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:781)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:792)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:54)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
at java.lang.Thread.run(Thread.java:745)




Build Log:
[...truncated 772 lines...]
   [junit4] Suite: org.apache.lucene.store.TestRateLimiter
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestRateLimiter 
-Dtests.method=testPause -Dtests.seed=F7DF3BD40A5FBA2C -Dtests.slow=true 
-Dtests.locale=sr_ME -Dtests.timezone=America/Boa_Vista -Dtests.asserts=true 
-Dtests.file.encoding=Cp1252
   [junit4] FAILURE 2.27s J0 | TestRateLimiter.testPause <<<
   [junit4]> Throwable #1: java.lang.AssertionError: we should sleep less 
than 2 seconds but did: 2220 millis
   [junit4]>at 
__randomizedtesting.SeedInfo.seed([F7DF3BD40A5FBA2C:917F7FEA8172E32

Re: [JENKINS] Lucene-Solr-5.x-MacOSX (64bit/jdk1.7.0) - Build # 2425 - Failure!

2015-07-02 Thread Erick Erickson
OK, maybe this is what Mark Miller was talking about in
https://issues.apache.org/jira/browse/SOLR-6971. I see occasional
issues like this in the lazy core tests. Both seem to have the "no
live servers" error and I'm wondering if there's something
underlying both (and, for that matter, other test failures)



On Thu, Jul 2, 2015 at 1:00 PM, Policeman Jenkins Server
 wrote:
> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-5.x-MacOSX/2425/
> Java: 64bit/jdk1.7.0 -XX:-UseCompressedOops -XX:+UseParallelGC
>
> 1 tests failed.
> FAILED:  org.apache.solr.cloud.TestRebalanceLeaders.test
>
> Error Message:
> No live SolrServers available to handle this 
> request:[http://127.0.0.1:59851/o_ss, http://127.0.0.1:59857/o_ss, 
> http://127.0.0.1:59863/o_ss, http://127.0.0.1:59843/o_ss, 
> http://127.0.0.1:59835/o_ss]
>
> Stack Trace:
> org.apache.solr.client.solrj.SolrServerException: No live SolrServers 
> available to handle this request:[http://127.0.0.1:59851/o_ss, 
> http://127.0.0.1:59857/o_ss, http://127.0.0.1:59863/o_ss, 
> http://127.0.0.1:59843/o_ss, http://127.0.0.1:59835/o_ss]
> at 
> __randomizedtesting.SeedInfo.seed([46F026DAD70DFE63:CEA4190079F1939B]:0)
> at 
> org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:355)
> at 
> org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1086)
> at 
> org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:856)
> at 
> org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:799)
> at 
> org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1220)
> at 
> org.apache.solr.cloud.TestRebalanceLeaders.issueCommands(TestRebalanceLeaders.java:281)
> at 
> org.apache.solr.cloud.TestRebalanceLeaders.rebalanceLeaderTest(TestRebalanceLeaders.java:108)
> at 
> org.apache.solr.cloud.TestRebalanceLeaders.test(TestRebalanceLeaders.java:74)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1627)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:836)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:872)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:886)
> at 
> org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsFixedStatement.callStatement(BaseDistributedSearchTestCase.java:960)
> at 
> org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsStatement.evaluate(BaseDistributedSearchTestCase.java:935)
> at 
> com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
> at 
> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
> at 
> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
> at 
> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
> at 
> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
> at 
> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
> at 
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at 
> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
> at 
> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798)
> at 
> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:845)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:747)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:781)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:792)
> at 
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at 
> com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
> at 
> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
> at 
> com.c

[JENKINS] Lucene-Solr-5.x-Windows (64bit/jdk1.8.0_45) - Build # 4864 - Failure!

2015-07-02 Thread Policeman Jenkins Server
Build: http://jenkins.thetaphi.de/job/Lucene-Solr-5.x-Windows/4864/
Java: 64bit/jdk1.8.0_45 -XX:-UseCompressedOops -XX:+UseSerialGC

1 tests failed.
FAILED:  org.apache.lucene.store.TestRateLimiter.testPause

Error Message:
we should sleep less than 2 seconds but did: 2869 millis

Stack Trace:
java.lang.AssertionError: we should sleep less than 2 seconds but did: 2869 
millis
at 
__randomizedtesting.SeedInfo.seed([E311D588FB15F5B7:85B191B67038ACB1]:0)
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.assertTrue(Assert.java:43)
at 
org.apache.lucene.store.TestRateLimiter.testPause(TestRateLimiter.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1627)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:836)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:872)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:886)
at 
org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:845)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:747)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:781)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:792)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:54)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
at java.lang.Thread.run(Thread.java:745)




Build Log:
[...truncated 829 lines...]
   [junit4] Suite: org.apache.lucene.store.TestRateLimiter
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestRateLimiter 
-Dtests.method=testPause -Dtests.seed=E311D588FB15F5B7 -Dtests.slow=true 
-Dtests.locale=pt_PT -Dtests.timezone=Asia/Kuala_Lumpur -Dtests.asserts=true 
-Dtests.file.encoding=US-ASCII
   [junit4] FAILURE 2.65s J0 | TestRateLimiter.testPause <<<
   [junit4]> Throwable #1: java.lang.AssertionError: we should sleep less 
than 2 seconds but did: 2869 millis
   [junit4]>at 
__randomizedtesting.SeedInfo.seed([E311D588FB15F5B7:85B191B67038ACB

timeAllowed parameter ignored edge-case bug?

2015-07-02 Thread Christine Poerschke (BLOOMBERG/ LONDON)
Hello.

Was looking at 
https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
 code to better understand the various getDoc... methods and how collectors are 
combined.

In the scenario outlined below, the second run's timeAllowed parameter is 
unexpectedly ignored. Could this be intentionally so somehow (q vs. fq 
processing?, Collector vs. LeafCollector?, DocList vs. DocSet?), or is it an 
edge-case bug?

Regards,

Christine

---

solrconfig characteristics:
 * a queryResultsCache is configured
 * no filterCache is configured

query characteristics:
 * q parameter present
 * at least one fq parameter present
 * sort parameter present (and does not require the score field)
 * GET_DOCSET flag is set e.g. via the StatsComponent i.e. stats=true parameter

runtime characteristics:
 * first run of the query gets a queryResultsCache-miss and respects timeAllowed
 * second run gets a queryResultsCache-hit and ignores timeAllowed (but still
   makes use of the lucene IndexSearcher)

code path execution details (first run):
* SolrIndexSearcher.search calls getDocListC
* getDocListC called queryResultCache.get which found nothing
* getDocListC calls getDocListAndSetNC
* getDocListAndSetNC calls buildAndRunCollectorChain
* buildAndRunCollectorChain constructs TimeLimitingCollector

code path execution details (second run):
* SolrIndexSearcher.search calls getDocListC
* getDocListC called queryResultCache.get which found something
* getDocListC calls getDocSet(List queries)
* getDocSet(List queries) iterates over IndexSearcher.leafContexts

[jira] [Commented] (SOLR-7692) Implement BasicAuth based impl for the new Authentication/Authorization APIs

2015-07-02 Thread Mike Drob (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612251#comment-14612251
 ] 

Mike Drob commented on SOLR-7692:
-

{code}
+  public static AuthorizationResponse OK = new AuthorizationResponse(200);
+  public static AuthorizationResponse FORBIDDEN = new 
AuthorizationResponse(403);
+  public static AuthorizationResponse PROMPT = new AuthorizationResponse(401);
{code}
Please make these final.

{code}
+  private static Set EMPTY_NULL_SET;
{code}
Also final.

{code}
+  @Override
+  public void init(Map initInfo) {
+mapping.put(null, new WildCardSupportMap());
+Map map = (Map) initInfo.get("roles");
+for (Object o : map.entrySet()) {
+  Map.Entry e = (Map.Entry) o;
+  String roleName = (String) e.getKey();
+  usersVsRoles.put(roleName, readSet(map, roleName));
+}
+map = (Map) initInfo.get("permissions");
+for (Object o : map.entrySet()) {
+  Map.Entry e = (Map.Entry) o;
+  Permission p = new Permission((String) e.getKey(), (Map) e.getValue());
+  permissions.add(p);
+  add2Mapping(p);
+}
+  }
{code}
Is it possible to use generic types instead of doing a bunch of casts? There's 
a bunch of other places with raw {{Map}} as well.

{code}
+  //check permissions for a collection
+  //return true = allowed, false=not allowed, null= resource requires a 
principal but none available
+  private MatchStatus checkCollPerm(Map> pathVsPerms,
+AuthorizationContext context) {
{code}
This comment is misleading - probably left over from an earlier iteration.


Please add a test case that uses the salt when authenticating.


Do you think it would be reasonable to split out the dependency between 
BasicAuthPlugin and ZkAuthentication? I could imagine somebody wanting to do 
BasicAuth backed by a different store, were it available.


Will continue to dive deeper in a bit.

> Implement BasicAuth based impl for the new Authentication/Authorization APIs
> 
>
> Key: SOLR-7692
> URL: https://issues.apache.org/jira/browse/SOLR-7692
> Project: Solr
>  Issue Type: New Feature
>Reporter: Noble Paul
>Assignee: Noble Paul
> Attachments: SOLR-7692.patch
>
>
> This involves various components
> h2. Authentication
> A basic auth based authentication filter. This should retrieve the user 
> credentials from ZK.  The user name and sha1 hash of password should be 
> stored in ZK
> sample authentication json 
> {code:javascript}
> {
>   "authentication":{
> "class": "solr.BasicAuth",
> "users" :{
>   "john" :{09fljnklnoiuy98 buygujkjnlk",
>   "david":"f678njfgfjnklno iuy9865ty",
>   "pete": "87ykjnklndfhjh8 98uyiy98",
> }
>   }
> }
> {code}
> h2. authorization plugin
> This would store the roles of various users and their privileges in ZK
> sample authorization.json
> {code:javascript}
> {
>   "authorization": {
> "class": "solr.ZKAuthorization",
>"roles" :{
>   "admin" : ["john"]
>   "guest" : ["john", "david","pete"]
>}
> "permissions": {
>"collectionadmin": {
>  "roles": ["admin"] 
>},
>"coreadmin":{
>  "roles":["admin"]
>},
>"config-api": {
>  //all collections
>  "roles": ["admin"]
>},
>"schema-api": {
>  "roles": ["admin"]
>},
>"update": {
>  //all collections
>  "roles": null
>},
>"query":{
>  "roles":null
>},
>   "mycoll_update": {
> "collection": "mycoll",
> "path":["/update/*"],
> "roles": ["somebody"]//create a dir called /keys/somebody and put in 
> usr.pwd files
>   }
> }
>   }
> }
> {code} 
> We will also need to provide APIs to create users and assign them roles



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-7692) Implement BasicAuth based impl for the new Authentication/Authorization APIs

2015-07-02 Thread Anshum Gupta (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612259#comment-14612259
 ] 

Anshum Gupta commented on SOLR-7692:


Thanks Noble! this is much needed!

I am yet to look at this, but can you separate out the 2 issues i.e. an 
authentication and an authorization?

Also, let's not call it zkAuth* plugins as they don't authenticate zk, but just 
use zk for implementation. The name might mislead users.

I'll take a look at the actual code over the weekend.

> Implement BasicAuth based impl for the new Authentication/Authorization APIs
> 
>
> Key: SOLR-7692
> URL: https://issues.apache.org/jira/browse/SOLR-7692
> Project: Solr
>  Issue Type: New Feature
>Reporter: Noble Paul
>Assignee: Noble Paul
> Attachments: SOLR-7692.patch
>
>
> This involves various components
> h2. Authentication
> A basic auth based authentication filter. This should retrieve the user 
> credentials from ZK.  The user name and sha1 hash of password should be 
> stored in ZK
> sample authentication json 
> {code:javascript}
> {
>   "authentication":{
> "class": "solr.BasicAuth",
> "users" :{
>   "john" :{09fljnklnoiuy98 buygujkjnlk",
>   "david":"f678njfgfjnklno iuy9865ty",
>   "pete": "87ykjnklndfhjh8 98uyiy98",
> }
>   }
> }
> {code}
> h2. authorization plugin
> This would store the roles of various users and their privileges in ZK
> sample authorization.json
> {code:javascript}
> {
>   "authorization": {
> "class": "solr.ZKAuthorization",
>"roles" :{
>   "admin" : ["john"]
>   "guest" : ["john", "david","pete"]
>}
> "permissions": {
>"collectionadmin": {
>  "roles": ["admin"] 
>},
>"coreadmin":{
>  "roles":["admin"]
>},
>"config-api": {
>  //all collections
>  "roles": ["admin"]
>},
>"schema-api": {
>  "roles": ["admin"]
>},
>"update": {
>  //all collections
>  "roles": null
>},
>"query":{
>  "roles":null
>},
>   "mycoll_update": {
> "collection": "mycoll",
> "path":["/update/*"],
> "roles": ["somebody"]//create a dir called /keys/somebody and put in 
> usr.pwd files
>   }
> }
>   }
> }
> {code} 
> We will also need to provide APIs to create users and assign them roles



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Created] (SOLR-7749) Schema API: commands (e.g. add-field-type) should fail if unknown params are supplied

2015-07-02 Thread Steve Rowe (JIRA)
Steve Rowe created SOLR-7749:


 Summary: Schema API: commands (e.g. add-field-type) should fail if 
unknown params are supplied
 Key: SOLR-7749
 URL: https://issues.apache.org/jira/browse/SOLR-7749
 Project: Solr
  Issue Type: Bug
Reporter: Steve Rowe
Priority: Minor


On the solr-user mailing list, Søren reported trying to add a field type via 
the Schema API.  The command partially succeeded by ignoring mistyped params - 
below I reproduced the problem using data_driven_schema_configs:

{noformat}
PROMPT$ curl -X POST http://localhost:8983/solr/gettingstarted/schema -H 
'Content-type: application/json' -d '{
"add-field-type":{
"name":"myTxtField",
"class":"solr.TextField",
"positionIncrementGap":"100",
"analyzer":{
   "charFilter": {"class":"solr.MappingCharFilterFactory", 
"mapping":"mapping-ISOLatin1Accent.txt"},
   "filter": {"class":"solr.LowerCaseFilterFactory"},
   "tokenizer": {"class":"solr.StandardTokenizerFactory"}
   }
   }
}'
{
  "responseHeader":{
"status":0,
"QTime":68}}

PROMPT$ curl 
"http://localhost:8983/solr/gettingstarted/schema/fieldtypes/myTxtField";
{
  "responseHeader":{
"status":0,
"QTime":123},
  "fieldType":{
"name":"myTxtField",
"class":"solr.TextField",
"positionIncrementGap":"100",
"analyzer":{
  "tokenizer":{
"class":"solr.StandardTokenizerFactory"}},
"fields":[],
"dynamicFields":[]}}
{noformat}

Only the tokenizer is included in the field type, because "charFilter" and 
"filter" are misspelled and have the wrong value type: both should be plural 
and should have array values. 

The above request succeeded by ignoring the misspelled params - no charFilter 
or filter was created in the analyzer.  It really should have failed and sent 
back an error explaining the problem.

The following succeeds for me (after first issuing a {{delete-field-type}} 
command and copying {{mapping-ISOLatin1Accent.txt}} into the 
{{gettingstarted/conf/}} directory):

{noformat}
curl -X POST http://localhost:8983/solr/gettingstarted/schema -H 'Content-type: 
application/json' -d '{
"add-field-type":{
"name":"myTxtField",
"class":"solr.TextField",
"positionIncrementGap":"100",
"analyzer":{
   "charFilters": [{"class":"solr.MappingCharFilterFactory", 
"mapping":"mapping-ISOLatin1Accent.txt"}],
   "tokenizer": {"class":"solr.StandardTokenizerFactory"},
   "filters": [{"class":"solr.LowerCaseFilterFactory"}]
   }
   }
}'
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-7748) Fix bin/solr to work on IBM J9

2015-07-02 Thread Shai Erera (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612332#comment-14612332
 ] 

Shai Erera commented on SOLR-7748:
--

Thanks Shawn. I actually started to work with th j9 team over the past few 
weeks, on different aspects such as establishing a process for us to report 
bugs and have them rub Lucene/Solr tests on j9 builds in order to detect JVM 
issues. The team is also in contact with Uwe and Robert, and it seems like 
things get in the right direction.

The issues that are known to cause corruption are suspected to have been fixed, 
but since they were not reproducible with the latest j9 builds, we can't say it 
for sure. Therfore the warnings are still found in the JavaBugs page, but I 
assume that after we have Jenkins passing builds for a while, we will at least 
document that these issues were not reproduced with version X and onwards. 

As for this particular issue I think that we should have bin/solr successfully 
start on j9. The problem that I've fixed is just passing the right gc log flag, 
which is different in j9.

With this patch, we have a way to also detect particular build versions and 
block them if we know they are bad. I don't think the blocking j9 entirely is a 
good solution though, and definitely the script currently doesn't explicitly 
block j9, it just fails with a wrong flag passed error.

>From a community perspective, I feel that blocking a JVM vendor entirely is 
>wrong, but maybe I'm biased. At least I can confirm that the team gives a high 
>priority to resolving any outstanding Lucene/Solr issues, so blocking j9 in 
>our scripts (and code) feels wrong. 

> Fix bin/solr to work on IBM J9
> --
>
> Key: SOLR-7748
> URL: https://issues.apache.org/jira/browse/SOLR-7748
> Project: Solr
>  Issue Type: Bug
>  Components: Server
>Reporter: Shai Erera
>Assignee: Shai Erera
> Fix For: 5.3, Trunk
>
> Attachments: solr-7748.patch
>
>
> bin/solr doesn't work on IBM J9 because it sets -Xloggc flag, while J9 
> supports -Xverbosegclog. This prevents using bin/solr to start it on J9.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-7748) Fix bin/solr to work on IBM J9

2015-07-02 Thread Hoss Man (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612343#comment-14612343
 ] 

Hoss Man commented on SOLR-7748:


bq. With this patch, we have a way to also detect particular build versions and 
block them if we know they are bad. I don't think the blocking j9 entirely is a 
good solution though, and definitely the script currently doesn't explicitly 
block j9, it just fails with a wrong flag passed error.

+1

wether the script should explicitly fail/warn "IBM J9 is known to have problems 
running Solr" on startup is a question that should be discussed/answered in 
it's own issue -- it certainly makes sense to me to go ahead and fix the script 
to not fail in a weird and confusing way just because you're _trying_ to use J9.

(by corollary: we IndexWriter tests that give up if you try running on J9 
because we know those tests are unreliably on J9, but that doesn't mean the 
IndexWriter class itself throws a RuntimeException if you try to instantiate it 
on a J9 JVM)



> Fix bin/solr to work on IBM J9
> --
>
> Key: SOLR-7748
> URL: https://issues.apache.org/jira/browse/SOLR-7748
> Project: Solr
>  Issue Type: Bug
>  Components: Server
>Reporter: Shai Erera
>Assignee: Shai Erera
> Fix For: 5.3, Trunk
>
> Attachments: solr-7748.patch
>
>
> bin/solr doesn't work on IBM J9 because it sets -Xloggc flag, while J9 
> supports -Xverbosegclog. This prevents using bin/solr to start it on J9.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Comment Edited] (SOLR-7748) Fix bin/solr to work on IBM J9

2015-07-02 Thread Hoss Man (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612343#comment-14612343
 ] 

Hoss Man edited comment on SOLR-7748 at 7/2/15 6:39 PM:


bq. With this patch, we have a way to also detect particular build versions and 
block them if we know they are bad. I don't think the blocking j9 entirely is a 
good solution though, and definitely the script currently doesn't explicitly 
block j9, it just fails with a wrong flag passed error.

+1

wether the script should explicitly fail/warn "IBM J9 is known to have problems 
running Solr" on startup is a question that should be discussed/answered in 
it's own issue -- it certainly makes sense to me to go ahead and fix the script 
to not fail in a weird and confusing way just -because your're- (edit) *by the 
coincidence of*  _trying_ to use J9.

(by corollary: we IndexWriter tests that give up if you try running on J9 
because we know those tests are unreliably on J9, but that doesn't mean the 
IndexWriter class itself throws a RuntimeException if you try to instantiate it 
on a J9 JVM)




was (Author: hossman):
bq. With this patch, we have a way to also detect particular build versions and 
block them if we know they are bad. I don't think the blocking j9 entirely is a 
good solution though, and definitely the script currently doesn't explicitly 
block j9, it just fails with a wrong flag passed error.

+1

wether the script should explicitly fail/warn "IBM J9 is known to have problems 
running Solr" on startup is a question that should be discussed/answered in 
it's own issue -- it certainly makes sense to me to go ahead and fix the script 
to not fail in a weird and confusing way just because you're _trying_ to use J9.

(by corollary: we IndexWriter tests that give up if you try running on J9 
because we know those tests are unreliably on J9, but that doesn't mean the 
IndexWriter class itself throws a RuntimeException if you try to instantiate it 
on a J9 JVM)



> Fix bin/solr to work on IBM J9
> --
>
> Key: SOLR-7748
> URL: https://issues.apache.org/jira/browse/SOLR-7748
> Project: Solr
>  Issue Type: Bug
>  Components: Server
>Reporter: Shai Erera
>Assignee: Shai Erera
> Fix For: 5.3, Trunk
>
> Attachments: solr-7748.patch
>
>
> bin/solr doesn't work on IBM J9 because it sets -Xloggc flag, while J9 
> supports -Xverbosegclog. This prevents using bin/solr to start it on J9.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.8.0_45) - Build # 13297 - Failure!

2015-07-02 Thread Policeman Jenkins Server
Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/13297/
Java: 64bit/jdk1.8.0_45 -XX:-UseCompressedOops -XX:+UseParallelGC

1 tests failed.
FAILED:  org.apache.solr.cloud.CollectionsAPIDistributedZkTest.test

Error Message:
Captured an uncaught exception in thread: Thread[id=6240, name=collection0, 
state=RUNNABLE, group=TGRP-CollectionsAPIDistributedZkTest]

Stack Trace:
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught 
exception in thread: Thread[id=6240, name=collection0, state=RUNNABLE, 
group=TGRP-CollectionsAPIDistributedZkTest]
Caused by: 
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error 
from server at http://127.0.0.1:59640/x_/n: Could not find collection : 
awholynewstresscollection_collection0_0
at __randomizedtesting.SeedInfo.seed([6522F76B99CE77DD]:0)
at 
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:560)
at 
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:234)
at 
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:226)
at 
org.apache.solr.client.solrj.impl.LBHttpSolrClient.doRequest(LBHttpSolrClient.java:376)
at 
org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:328)
at 
org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1086)
at 
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:856)
at 
org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:799)
at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1220)
at 
org.apache.solr.cloud.CollectionsAPIDistributedZkTest$1CollectionThread.run(CollectionsAPIDistributedZkTest.java:894)




Build Log:
[...truncated 10324 lines...]
   [junit4] Suite: org.apache.solr.cloud.CollectionsAPIDistributedZkTest
   [junit4]   2> Creating dataDir: 
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/build/solr-core/test/J2/temp/solr.cloud.CollectionsAPIDistributedZkTest_6522F76B99CE77DD-001/init-core-data-001
   [junit4]   2> 833400 INFO  
(SUITE-CollectionsAPIDistributedZkTest-seed#[6522F76B99CE77DD]-worker) [] 
o.a.s.SolrTestCaseJ4 Randomized ssl (false) and clientAuth (false)
   [junit4]   2> 833401 INFO  
(SUITE-CollectionsAPIDistributedZkTest-seed#[6522F76B99CE77DD]-worker) [] 
o.a.s.BaseDistributedSearchTestCase Setting hostContext system property: /x_/n
   [junit4]   2> 833402 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6522F76B99CE77DD]) [] 
o.a.s.c.ZkTestServer STARTING ZK TEST SERVER
   [junit4]   2> 833402 INFO  (Thread-2560) [] o.a.s.c.ZkTestServer client 
port:0.0.0.0/0.0.0.0:0
   [junit4]   2> 833403 INFO  (Thread-2560) [] o.a.s.c.ZkTestServer 
Starting server
   [junit4]   2> 833502 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6522F76B99CE77DD]) [] 
o.a.s.c.ZkTestServer start zk server on port:40148
   [junit4]   2> 833503 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6522F76B99CE77DD]) [] 
o.a.s.c.c.SolrZkClient Using default ZkCredentialsProvider
   [junit4]   2> 833503 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6522F76B99CE77DD]) [] 
o.a.s.c.c.ConnectionManager Waiting for client to connect to ZooKeeper
   [junit4]   2> 833505 INFO  (zkCallback-679-thread-1) [] 
o.a.s.c.c.ConnectionManager Watcher 
org.apache.solr.common.cloud.ConnectionManager@42092fdd 
name:ZooKeeperConnection Watcher:127.0.0.1:40148 got event WatchedEvent 
state:SyncConnected type:None path:null path:null type:None
   [junit4]   2> 833505 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6522F76B99CE77DD]) [] 
o.a.s.c.c.ConnectionManager Client is connected to ZooKeeper
   [junit4]   2> 833505 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6522F76B99CE77DD]) [] 
o.a.s.c.c.SolrZkClient Using default ZkACLProvider
   [junit4]   2> 833505 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6522F76B99CE77DD]) [] 
o.a.s.c.c.SolrZkClient makePath: /solr
   [junit4]   2> 833506 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6522F76B99CE77DD]) [] 
o.a.s.c.c.SolrZkClient Using default ZkCredentialsProvider
   [junit4]   2> 833507 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6522F76B99CE77DD]) [] 
o.a.s.c.c.ConnectionManager Waiting for client to connect to ZooKeeper
   [junit4]   2> 833507 INFO  (zkCallback-680-thread-1) [] 
o.a.s.c.c.ConnectionManager Watcher 
org.apache.solr.common.cloud.ConnectionManager@30d1c345 
name:ZooKeeperConnection Watcher:127.0.0.1:40148/solr got event WatchedEvent 
state:SyncConnected type:None path:null path:null type:None
   [junit4]   2> 833507 INFO  
(TEST-CollectionsAPIDistributedZkTest.test-seed#[6522F76B99CE77DD]) [] 
o.a.s.c.c.ConnectionManager Client is connected to ZooKeeper
   [junit4]   2> 833507 INFO  
(T

[jira] [Updated] (SOLR-7223) Tooltips admin panel get switched midway edismax

2015-07-02 Thread Thanatos (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thanatos updated SOLR-7223:
---
Attachment: SOLR-7223.patch

Looks like the changes were not applied to the Angular UI so I rolled a new 
patch.

Hints to test:
* {{git clone https://github.com/apache/lucene-solr}}
* {{cd lucene-solr/}}
* {{git checkout branch_5x}}
* {{git apply SOLR-7223.patch}}
* {{cd solr/}}
* {{ant server}}
* {{./bin/solr -e schemaless}}
* Go to both admin interfaces
** regular http://localhost:8983/solr/#/gettingstarted/query
** Angular http://localhost:8983/solr/index.html#/gettingstarted/query
* Make sure tooltips are set on both input boxes and labels

Maybe someone can confirm ?
I'll update the pull request on Github

> Tooltips admin panel get switched midway edismax
> 
>
> Key: SOLR-7223
> URL: https://issues.apache.org/jira/browse/SOLR-7223
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 4.10.1
>Reporter: Jelle Janssens
>Priority: Trivial
> Attachments: SOLR-7223.patch, SOLR-7223.patch, SOLR-7223.patch, 
> SOLR-7223.png
>
>
> When hovering over the tooltips in SOLR admin, in the edismax section, the 
> tooltip gets switched from being set on the input box to the label. This 
> happens between "bf" and "uf".  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[GitHub] lucene-solr pull request: SOLR-7223: Make tooltips consistent on a...

2015-07-02 Thread Fengtan
Github user Fengtan closed the pull request at:

https://github.com/apache/lucene-solr/pull/151


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[GitHub] lucene-solr pull request: SOLR-7223: Make tooltips consistent on a...

2015-07-02 Thread Fengtan
Github user Fengtan commented on the pull request:

https://github.com/apache/lucene-solr/pull/151#issuecomment-118124610
  
Closing pull request: will re-open a new one targeted at branch_5x instead 
of master


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-7223) Tooltips admin panel get switched midway edismax

2015-07-02 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612366#comment-14612366
 ] 

ASF GitHub Bot commented on SOLR-7223:
--

Github user Fengtan closed the pull request at:

https://github.com/apache/lucene-solr/pull/151


> Tooltips admin panel get switched midway edismax
> 
>
> Key: SOLR-7223
> URL: https://issues.apache.org/jira/browse/SOLR-7223
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 4.10.1
>Reporter: Jelle Janssens
>Priority: Trivial
> Attachments: SOLR-7223.patch, SOLR-7223.patch, SOLR-7223.patch, 
> SOLR-7223.png
>
>
> When hovering over the tooltips in SOLR admin, in the edismax section, the 
> tooltip gets switched from being set on the input box to the label. This 
> happens between "bf" and "uf".  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-7223) Tooltips admin panel get switched midway edismax

2015-07-02 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612365#comment-14612365
 ] 

ASF GitHub Bot commented on SOLR-7223:
--

Github user Fengtan commented on the pull request:

https://github.com/apache/lucene-solr/pull/151#issuecomment-118124610
  
Closing pull request: will re-open a new one targeted at branch_5x instead 
of master


> Tooltips admin panel get switched midway edismax
> 
>
> Key: SOLR-7223
> URL: https://issues.apache.org/jira/browse/SOLR-7223
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 4.10.1
>Reporter: Jelle Janssens
>Priority: Trivial
> Attachments: SOLR-7223.patch, SOLR-7223.patch, SOLR-7223.patch, 
> SOLR-7223.png
>
>
> When hovering over the tooltips in SOLR admin, in the edismax section, the 
> tooltip gets switched from being set on the input box to the label. This 
> happens between "bf" and "uf".  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



Re: [JENKINS] Lucene-Solr-5.x-Windows (64bit/jdk1.8.0_45) - Build # 4864 - Failure!

2015-07-02 Thread Michael McCandless
I removed this test: it relies on wall clock time.

Mike McCandless

http://blog.mikemccandless.com


On Thu, Jul 2, 2015 at 1:14 PM, Policeman Jenkins Server
 wrote:
> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-5.x-Windows/4864/
> Java: 64bit/jdk1.8.0_45 -XX:-UseCompressedOops -XX:+UseSerialGC
>
> 1 tests failed.
> FAILED:  org.apache.lucene.store.TestRateLimiter.testPause
>
> Error Message:
> we should sleep less than 2 seconds but did: 2869 millis
>
> Stack Trace:
> java.lang.AssertionError: we should sleep less than 2 seconds but did: 2869 
> millis
> at 
> __randomizedtesting.SeedInfo.seed([E311D588FB15F5B7:85B191B67038ACB1]:0)
> at org.junit.Assert.fail(Assert.java:93)
> at org.junit.Assert.assertTrue(Assert.java:43)
> at 
> org.apache.lucene.store.TestRateLimiter.testPause(TestRateLimiter.java:41)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1627)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:836)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:872)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:886)
> at 
> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
> at 
> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
> at 
> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
> at 
> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
> at 
> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
> at 
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at 
> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
> at 
> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798)
> at 
> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:845)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:747)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:781)
> at 
> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:792)
> at 
> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
> at 
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at 
> org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
> at 
> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
> at 
> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
> at 
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at 
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at 
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at 
> org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:54)
> at 
> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
> at 
> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
> at 
> org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
> at 
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> at 
> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
> at java.lang.Thread.run(Thread.java:745)
>
>
>
>
> Build Log:
> [...truncated 829 lines...]
>[junit4] Suite: org.apache.lucene.store.TestRateLimiter
>[junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestRateLimiter 
> -Dtests.method=testPause -Dtests.seed=E311D588FB15F5B7 -Dtests.slow=true 
> -Dtests.locale=pt_PT -Dtes

[GitHub] lucene-solr pull request: Make tooltips consistent on admin panel ...

2015-07-02 Thread Fengtan
GitHub user Fengtan opened a pull request:

https://github.com/apache/lucene-solr/pull/179

Make tooltips consistent on admin panel (regular UI & Angular UI).

https://issues.apache.org/jira/browse/SOLR-7223

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/Fengtan/lucene-solr SOLR-7223

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/lucene-solr/pull/179.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #179


commit 0717f11d46f13f1de102664dfdd9412962a3d8da
Author: Fengtan 
Date:   2015-07-02T19:01:34Z

Make tooltips consistent on admin panel (regular UI & Angular UI).




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-7223) Tooltips admin panel get switched midway edismax

2015-07-02 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612385#comment-14612385
 ] 

ASF GitHub Bot commented on SOLR-7223:
--

GitHub user Fengtan opened a pull request:

https://github.com/apache/lucene-solr/pull/179

Make tooltips consistent on admin panel (regular UI & Angular UI).

https://issues.apache.org/jira/browse/SOLR-7223

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/Fengtan/lucene-solr SOLR-7223

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/lucene-solr/pull/179.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #179


commit 0717f11d46f13f1de102664dfdd9412962a3d8da
Author: Fengtan 
Date:   2015-07-02T19:01:34Z

Make tooltips consistent on admin panel (regular UI & Angular UI).




> Tooltips admin panel get switched midway edismax
> 
>
> Key: SOLR-7223
> URL: https://issues.apache.org/jira/browse/SOLR-7223
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 4.10.1
>Reporter: Jelle Janssens
>Priority: Trivial
> Attachments: SOLR-7223.patch, SOLR-7223.patch, SOLR-7223.patch, 
> SOLR-7223.png
>
>
> When hovering over the tooltips in SOLR admin, in the edismax section, the 
> tooltip gets switched from being set on the input box to the label. This 
> happens between "bf" and "uf".  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-7223) Tooltips admin panel get switched midway edismax

2015-07-02 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612406#comment-14612406
 ] 

ASF GitHub Bot commented on SOLR-7223:
--

Github user upayavira commented on the pull request:

https://github.com/apache/lucene-solr/pull/151#issuecomment-118139818
  
Hi Fengtan, please make this change to the 
solr/webapp/web/partials/query.html version - i.e. the angularJS one, then I 
will commit it. I'd be very pleased to have help testing, debugging and fixing 
the angular admin UI!


> Tooltips admin panel get switched midway edismax
> 
>
> Key: SOLR-7223
> URL: https://issues.apache.org/jira/browse/SOLR-7223
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 4.10.1
>Reporter: Jelle Janssens
>Priority: Trivial
> Attachments: SOLR-7223.patch, SOLR-7223.patch, SOLR-7223.patch, 
> SOLR-7223.png
>
>
> When hovering over the tooltips in SOLR admin, in the edismax section, the 
> tooltip gets switched from being set on the input box to the label. This 
> happens between "bf" and "uf".  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[GitHub] lucene-solr pull request: SOLR-7223: Make tooltips consistent on a...

2015-07-02 Thread upayavira
Github user upayavira commented on the pull request:

https://github.com/apache/lucene-solr/pull/151#issuecomment-118139818
  
Hi Fengtan, please make this change to the 
solr/webapp/web/partials/query.html version - i.e. the angularJS one, then I 
will commit it. I'd be very pleased to have help testing, debugging and fixing 
the angular admin UI!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6646) make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612411#comment-14612411
 ] 

ASF subversion and git services commented on LUCENE-6646:
-

Commit 1688894 from [~jpountz] in branch 'dev/trunk'
[ https://svn.apache.org/r1688894 ]

LUCENE-6646: Make EarlyTerminatingCollector SortingMergePolicy-free.

Close #175
Close #178

> make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free
> -
>
> Key: LUCENE-6646
> URL: https://issues.apache.org/jira/browse/LUCENE-6646
> Project: Lucene - Core
>  Issue Type: Wish
>Reporter: Christine Poerschke
>Priority: Minor
>
> motivation and summary of proposed changes to follow via github pull request



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6646) make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free

2015-07-02 Thread Adrien Grand (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612417#comment-14612417
 ] 

Adrien Grand commented on LUCENE-6646:
--

I just committed the change. Thanks Christine!

> make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free
> -
>
> Key: LUCENE-6646
> URL: https://issues.apache.org/jira/browse/LUCENE-6646
> Project: Lucene - Core
>  Issue Type: Wish
>Reporter: Christine Poerschke
>Priority: Minor
> Fix For: 5.3
>
>
> motivation and summary of proposed changes to follow via github pull request



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6646) make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612415#comment-14612415
 ] 

ASF subversion and git services commented on LUCENE-6646:
-

Commit 1688895 from [~jpountz] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1688895 ]

LUCENE-6646: Make EarlyTerminatingCollector SortingMergePolicy-free.

> make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free
> -
>
> Key: LUCENE-6646
> URL: https://issues.apache.org/jira/browse/LUCENE-6646
> Project: Lucene - Core
>  Issue Type: Wish
>Reporter: Christine Poerschke
>Priority: Minor
> Fix For: 5.3
>
>
> motivation and summary of proposed changes to follow via github pull request



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Closed] (LUCENE-6646) make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free

2015-07-02 Thread Adrien Grand (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrien Grand closed LUCENE-6646.

   Resolution: Fixed
Fix Version/s: 5.3

> make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free
> -
>
> Key: LUCENE-6646
> URL: https://issues.apache.org/jira/browse/LUCENE-6646
> Project: Lucene - Core
>  Issue Type: Wish
>Reporter: Christine Poerschke
>Priority: Minor
> Fix For: 5.3
>
>
> motivation and summary of proposed changes to follow via github pull request



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612435#comment-14612435
 ] 

ASF subversion and git services commented on LUCENE-6651:
-

Commit 1688898 from [~thetaphi] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1688898 ]

LUCENE-6651: Add a test for the old reflector, also without rights

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-5x.patch, LUCENE-6651-MethodHandles.patch, 
> LUCENE-6651.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread Uwe Schindler (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612437#comment-14612437
 ] 

Uwe Schindler commented on LUCENE-6651:
---

I added a test for the old reflector code, so we ensure that it works. It is 
also tested with lower rights.

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-5x.patch, LUCENE-6651-MethodHandles.patch, 
> LUCENE-6651.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612440#comment-14612440
 ] 

ASF subversion and git services commented on LUCENE-6651:
-

Commit 1688899 from [~thetaphi] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1688899 ]

LUCENE-6651: Remove useless class descriptor

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-5x.patch, LUCENE-6651-MethodHandles.patch, 
> LUCENE-6651.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-7748) Fix bin/solr to work on IBM J9

2015-07-02 Thread Shawn Heisey (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612439#comment-14612439
 ] 

Shawn Heisey commented on SOLR-7748:


bq. wether the script should explicitly fail/warn "IBM J9 is known to have 
problems running Solr" on startup is a question that should be 
discussed/answered in it's own issue – it certainly makes sense to me to go 
ahead and fix the script to not fail in a weird and confusing way just by the 
coincidence of trying to use J9.

bq. The issues that are known to cause corruption are suspected to have been 
fixed, but since they were not reproducible with the latest j9 builds, we can't 
say it for sure

bq. With this patch, we have a way to also detect particular build versions and 
block them if we know they are bad.

Since we think IBM has fixed the problems, allowing J9 makes sense, and we can 
handle about further version detection and resulting actions on another issue.

> Fix bin/solr to work on IBM J9
> --
>
> Key: SOLR-7748
> URL: https://issues.apache.org/jira/browse/SOLR-7748
> Project: Solr
>  Issue Type: Bug
>  Components: Server
>Reporter: Shai Erera
>Assignee: Shai Erera
> Fix For: 5.3, Trunk
>
> Attachments: solr-7748.patch
>
>
> bin/solr doesn't work on IBM J9 because it sets -Xloggc flag, while J9 
> supports -Xverbosegclog. This prevents using bin/solr to start it on J9.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Comment Edited] (SOLR-7748) Fix bin/solr to work on IBM J9

2015-07-02 Thread Shawn Heisey (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612439#comment-14612439
 ] 

Shawn Heisey edited comment on SOLR-7748 at 7/2/15 8:07 PM:


bq. wether the script should explicitly fail/warn "IBM J9 is known to have 
problems running Solr" on startup is a question that should be 
discussed/answered in it's own issue – it certainly makes sense to me to go 
ahead and fix the script to not fail in a weird and confusing way just by the 
coincidence of trying to use J9.

bq. The issues that are known to cause corruption are suspected to have been 
fixed, but since they were not reproducible with the latest j9 builds, we can't 
say it for sure

bq. With this patch, we have a way to also detect particular build versions and 
block them if we know they are bad.

Since we think IBM has fixed the problems, allowing J9 makes sense, and we can 
handle further version detection and resulting actions on another issue.


was (Author: elyograg):
bq. wether the script should explicitly fail/warn "IBM J9 is known to have 
problems running Solr" on startup is a question that should be 
discussed/answered in it's own issue – it certainly makes sense to me to go 
ahead and fix the script to not fail in a weird and confusing way just by the 
coincidence of trying to use J9.

bq. The issues that are known to cause corruption are suspected to have been 
fixed, but since they were not reproducible with the latest j9 builds, we can't 
say it for sure

bq. With this patch, we have a way to also detect particular build versions and 
block them if we know they are bad.

Since we think IBM has fixed the problems, allowing J9 makes sense, and we can 
handle about further version detection and resulting actions on another issue.

> Fix bin/solr to work on IBM J9
> --
>
> Key: SOLR-7748
> URL: https://issues.apache.org/jira/browse/SOLR-7748
> Project: Solr
>  Issue Type: Bug
>  Components: Server
>Reporter: Shai Erera
>Assignee: Shai Erera
> Fix For: 5.3, Trunk
>
> Attachments: solr-7748.patch
>
>
> bin/solr doesn't work on IBM J9 because it sets -Xloggc flag, while J9 
> supports -Xverbosegclog. This prevents using bin/solr to start it on J9.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6461) peer cluster configuration

2015-07-02 Thread Martin Grotzke (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612451#comment-14612451
 ] 

Martin Grotzke commented on SOLR-6461:
--

This one is closed with resolution "fixed", while it hadn't been assigned. Is 
it really fixed? Are there some details about the current state of 
implementation of peer cluster configuration? Thanks! 

> peer cluster configuration
> --
>
> Key: SOLR-6461
> URL: https://issues.apache.org/jira/browse/SOLR-6461
> Project: Solr
>  Issue Type: Sub-task
>Reporter: Yonik Seeley
>
> From http://heliosearch.org/solr-cross-data-center-replication/#Overview
> """Clusters will be configured to know about each other, most likely through 
> keeping a cluster peer list in zookeeper. One essential piece of information 
> will be the zookeeper quorum address for each cluster peer. Any node in one 
> cluster can know the configuration of another cluster via a zookeeper 
> client."""



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[GitHub] lucene-solr pull request: LUCENE-6646: SortingMergePolicy-free Ear...

2015-07-02 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/lucene-solr/pull/178


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[GitHub] lucene-solr pull request: support SortingMergePolicy-free use of E...

2015-07-02 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/lucene-solr/pull/175


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6646) make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free

2015-07-02 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612457#comment-14612457
 ] 

ASF GitHub Bot commented on LUCENE-6646:


Github user asfgit closed the pull request at:

https://github.com/apache/lucene-solr/pull/175


> make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free
> -
>
> Key: LUCENE-6646
> URL: https://issues.apache.org/jira/browse/LUCENE-6646
> Project: Lucene - Core
>  Issue Type: Wish
>Reporter: Christine Poerschke
>Priority: Minor
> Fix For: 5.3
>
>
> motivation and summary of proposed changes to follow via github pull request



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6646) make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free

2015-07-02 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612458#comment-14612458
 ] 

ASF GitHub Bot commented on LUCENE-6646:


Github user asfgit closed the pull request at:

https://github.com/apache/lucene-solr/pull/178


> make the EarlyTerminatingSortingCollector constructor SortingMergePolicy-free
> -
>
> Key: LUCENE-6646
> URL: https://issues.apache.org/jira/browse/LUCENE-6646
> Project: Lucene - Core
>  Issue Type: Wish
>Reporter: Christine Poerschke
>Priority: Minor
> Fix For: 5.3
>
>
> motivation and summary of proposed changes to follow via github pull request



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6273) Cross Data Center Replication

2015-07-02 Thread Martin Grotzke (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612476#comment-14612476
 ] 

Martin Grotzke commented on SOLR-6273:
--

Hi all, we're currently evaluating how to expand our current single DC 
solrcloud to multi (2) DCs. This effort here looks very promising, great work!
Assuming we'd test how it works for us, could we follow the documentation 
mentioned above 
(https://docs.google.com/document/d/1DZHUFM3z9OX171DeGjcLTRI9uULM-NB1KsCSpVL3Zy0/edit?usp=sharing)?
 Does it match the current implementation? Do you have any other suggestions 
for us if we'd test this? Thanks! 

> Cross Data Center Replication
> -
>
> Key: SOLR-6273
> URL: https://issues.apache.org/jira/browse/SOLR-6273
> Project: Solr
>  Issue Type: New Feature
>Reporter: Yonik Seeley
>Assignee: Erick Erickson
> Attachments: SOLR-6273-trunk-testfix1.patch, 
> SOLR-6273-trunk-testfix2.patch, SOLR-6273-trunk.patch, SOLR-6273-trunk.patch, 
> SOLR-6273.patch, SOLR-6273.patch, SOLR-6273.patch, SOLR-6273.patch
>
>
> This is the master issue for Cross Data Center Replication (CDCR)
> described at a high level here: 
> http://heliosearch.org/solr-cross-data-center-replication/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612477#comment-14612477
 ] 

ASF subversion and git services commented on LUCENE-6651:
-

Commit 1688903 from [~thetaphi] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1688903 ]

LUCENE-6651: Try to fix test (somehow empty permissions grant all)

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-5x.patch, LUCENE-6651-MethodHandles.patch, 
> LUCENE-6651.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612489#comment-14612489
 ] 

ASF subversion and git services commented on LUCENE-6651:
-

Commit 1688905 from [~thetaphi] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1688905 ]

LUCENE-6651: Comment out test for now (fails only on Linux, no idea why!)

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-5x.patch, LUCENE-6651-MethodHandles.patch, 
> LUCENE-6651.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[JENKINS] Lucene-Solr-5.x-Linux (64bit/jdk1.8.0_60-ea-b21) - Build # 13122 - Failure!

2015-07-02 Thread Policeman Jenkins Server
Build: http://jenkins.thetaphi.de/job/Lucene-Solr-5.x-Linux/13122/
Java: 64bit/jdk1.8.0_60-ea-b21 -XX:-UseCompressedOops -XX:+UseSerialGC

256 tests failed.
FAILED:  junit.framework.TestSuite.org.apache.lucene.TestAssertions

Error Message:
access denied ("java.io.FilePermission" 
"/home/jenkins/workspace/Lucene-Solr-5.x-Linux/lucene/build/core/test/J0" 
"write")

Stack Trace:
java.security.AccessControlException: access denied ("java.io.FilePermission" 
"/home/jenkins/workspace/Lucene-Solr-5.x-Linux/lucene/build/core/test/J0" 
"write")
at __randomizedtesting.SeedInfo.seed([9ACD37347FDE9699]:0)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at 
java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkWrite(SecurityManager.java:979)
at sun.nio.fs.UnixPath.checkWrite(UnixPath.java:801)
at 
sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:376)
at 
org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.java:133)
at 
org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.java:133)
at 
org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.java:133)
at 
org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.java:133)
at 
org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.java:133)
at org.apache.lucene.mockfile.ExtrasFS.createDirectory(ExtrasFS.java:55)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at 
org.apache.lucene.util.TestRuleTemporaryFilesCleanup.initializeJavaTempDir(TestRuleTemporaryFilesCleanup.java:187)
at 
org.apache.lucene.util.TestRuleTemporaryFilesCleanup.before(TestRuleTemporaryFilesCleanup.java:115)
at 
com.carrotsearch.randomizedtesting.rules.TestRuleAdapter$1.before(TestRuleAdapter.java:26)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:35)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:54)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
at java.lang.Thread.run(Thread.java:745)


FAILED:  junit.framework.TestSuite.org.apache.lucene.TestDemo

Error Message:
access denied ("java.io.FilePermission" 
"/home/jenkins/workspace/Lucene-Solr-5.x-Linux/lucene/build/core/test/J0" 
"write")

Stack Trace:
java.security.AccessControlException: access denied ("java.io.FilePermission" 
"/home/jenkins/workspace/Lucene-Solr-5.x-Linux/lucene/build/core/test/J0" 
"write")
at __randomizedtesting.SeedInfo.seed([9ACD37347FDE9699]:0)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at 
java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkWrite(SecurityManager.java:979)
at sun.nio.fs.UnixPath.checkWrite(UnixPath.java:801)
at 
sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:376)
at 
org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.java:133)
at 
org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.java:133)
at 
org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.java:133)
at 
org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.java:133)
at 
org.apache.lucene.mockfile.FilterFileSystemProvider.createDirectory(FilterFileSystemProvider.java:133)
at org.apache.lucene.mockfile.ExtrasFS.createDirectory(ExtrasFS.java:55)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
   

[JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b70) - Build # 13299 - Failure!

2015-07-02 Thread Policeman Jenkins Server
Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/13299/
Java: 64bit/jdk1.9.0-ea-b70 -XX:+UseCompressedOops -XX:+UseParallelGC

1 tests failed.
FAILED:  
org.apache.lucene.analysis.TestLookaheadTokenFilter.testNeverCallingPeek

Error Message:
term 34 expected: but was:

Stack Trace:
org.junit.ComparisonFailure: term 34 expected: but was:
at 
__randomizedtesting.SeedInfo.seed([7CA3DCFED9F3185E:8F466B993BA04CA1]:0)
at org.junit.Assert.assertEquals(Assert.java:125)
at 
org.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamContents(BaseTokenStreamTestCase.java:186)
at 
org.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamContents(BaseTokenStreamTestCase.java:301)
at 
org.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamContents(BaseTokenStreamTestCase.java:305)
at 
org.apache.lucene.analysis.BaseTokenStreamTestCase.checkAnalysisConsistency(BaseTokenStreamTestCase.java:818)
at 
org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:617)
at 
org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:515)
at 
org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:439)
at 
org.apache.lucene.analysis.TestLookaheadTokenFilter.testNeverCallingPeek(TestLookaheadTokenFilter.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:502)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1627)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:836)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:872)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:886)
at 
org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798)
at 
com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:845)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:747)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:781)
at 
com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:792)
at 
org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at 
org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:54)
at 
org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at 
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at 
org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
  

RE: [JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b70) - Build # 13299 - Failure!

2015-07-02 Thread Uwe Schindler
I reverted the JDK 9 back to b60, so tests pass with working arraycopy.

-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de


> -Original Message-
> From: Policeman Jenkins Server [mailto:jenk...@thetaphi.de]
> Sent: Thursday, July 02, 2015 10:51 PM
> To: dev@lucene.apache.org
> Subject: [JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b70) - Build #
> 13299 - Failure!
> 
> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/13299/
> Java: 64bit/jdk1.9.0-ea-b70 -XX:+UseCompressedOops -XX:+UseParallelGC
> 
> 1 tests failed.
> FAILED:
> org.apache.lucene.analysis.TestLookaheadTokenFilter.testNeverCallingPeek
> 
> Error Message:
> term 34 expected: but was:
> 
> Stack Trace:
> org.junit.ComparisonFailure: term 34 expected: but was:
>   at
> __randomizedtesting.SeedInfo.seed([7CA3DCFED9F3185E:8F466B993BA04C
> A1]:0)
>   at org.junit.Assert.assertEquals(Assert.java:125)
>   at
> org.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamC
> ontents(BaseTokenStreamTestCase.java:186)
>   at
> org.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamC
> ontents(BaseTokenStreamTestCase.java:301)
>   at
> org.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamC
> ontents(BaseTokenStreamTestCase.java:305)
>   at
> org.apache.lucene.analysis.BaseTokenStreamTestCase.checkAnalysisConsist
> ency(BaseTokenStreamTestCase.java:818)
>   at
> org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(B
> aseTokenStreamTestCase.java:617)
>   at
> org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(B
> aseTokenStreamTestCase.java:515)
>   at
> org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(B
> aseTokenStreamTestCase.java:439)
>   at
> org.apache.lucene.analysis.TestLookaheadTokenFilter.testNeverCallingPeek
> (TestLookaheadTokenFilter.java:66)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:62)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:502)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(Randomize
> dRunner.java:1627)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(Rando
> mizedRunner.java:836)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(Rando
> mizedRunner.java:872)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(Rando
> mizedRunner.java:886)
>   at
> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRule
> SetupTeardownChained.java:50)
>   at
> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeA
> fterRule.java:46)
>   at
> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleTh
> readAndTestName.java:49)
>   at
> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRule
> IgnoreAfterMaxFailures.java:65)
>   at
> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure
> .java:48)
>   at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
>   at
> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.
> run(ThreadLeakControl.java:365)
>   at
> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask
> (ThreadLeakControl.java:798)
>   at
> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadL
> eakControl.java:458)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(Ran
> domizedRunner.java:845)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(Rando
> mizedRunner.java:747)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(Rando
> mizedRunner.java:781)
>   at
> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(Rando
> mizedRunner.java:792)
>   at
> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeA
> fterRule.java:46)
>   at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
>   at
> org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreCl
> assName.java:42)
>   at
> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMet
> hodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
>   at
> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMet
> hodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
>   at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
>   at
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Stat
> ementAdapter.java:36)
>   at
> com.carrotsearch.randomized

[jira] [Commented] (SOLR-7233) rename zkcli.sh script it clashes with zkCli.sh from ZooKeeper on Mac when both are in $PATH

2015-07-02 Thread JIRA

[ 
https://issues.apache.org/jira/browse/SOLR-7233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612509#comment-14612509
 ] 

Jan Høydahl commented on SOLR-7233:
---

If moving zkcli.sh to bin/, perhaps we can mature the script a bit as well?
* Avoid unzipping {{solr.war}}, could we instead use a custom classloader that 
looks inside the war?
* Get rid of {{log4j.properties}} by programmatically setting console logging 
defaults
* Look in {{solr.in.sh}} for {{ZK_HOST}} and use that as default - one less 
thing to re-type

> rename zkcli.sh script it clashes with zkCli.sh from ZooKeeper on Mac when 
> both are in $PATH
> 
>
> Key: SOLR-7233
> URL: https://issues.apache.org/jira/browse/SOLR-7233
> Project: Solr
>  Issue Type: Task
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Hari Sekhon
>Priority: Trivial
>
> Mac is case insensitive on CLI search so zkcli.sh clashes with zkCli.sh from 
> ZooKeeper when both are in the $PATH, ruining commands for one or the other 
> unless the script path is qualified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-6651) Remove private field reflection (setAccessible) in AttributeImpl#reflectWith

2015-07-02 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612526#comment-14612526
 ] 

ASF subversion and git services commented on LUCENE-6651:
-

Commit 1688913 from [~thetaphi] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1688913 ]

LUCENE-6651: Remove test completely: Cannot work (inner doPrivileged reverts 
back to codebase granted permissions; no idea why it worked for me)

> Remove private field reflection (setAccessible) in AttributeImpl#reflectWith
> 
>
> Key: LUCENE-6651
> URL: https://issues.apache.org/jira/browse/LUCENE-6651
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.2.1
>Reporter: Uwe Schindler
>Assignee: Uwe Schindler
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6651-5x.patch, LUCENE-6651-MethodHandles.patch, 
> LUCENE-6651.patch, LUCENE-6651.patch
>
>
> In AttributeImpl we currently have a "default" implementation of reflectWith 
> (which is used by toString() and other methods) that uses reflection to list 
> all private fields of the implementation class and reports them to the 
> AttributeReflector (used by Solr and Elasticsearch to show analysis output).
> Unfortunately this default implementation needs to access private fields of a 
> subclass, which does not work without doing Field#setAccessible(true). And 
> this is done without AccessController#doPrivileged()!
> There are 2 solutions to solve this:
> - Reimplement the whole thing with MethodHandles. MethodHandles allow to 
> access private fields, if you have a MethodHandles.Lookup object created from 
> inside the subclass. The idea is to add a protected constructor taking a 
> Lookup object (must come from same class). This Lookup object is then used to 
> build methodHandles that can be executed to report the fields. Backside: We 
> have to require subclasses that want this "automatic" reflection to pass a 
> Lookup object in ctor's {{super(MethodHandles.lookup())}} call. This breaks 
> backwards for implementors of AttributeImpls
> - The second idea is to remove the whole reflectWith default impl and make 
> the method abstract. This would require a bit more work in tons of 
> AttributeImpl classes, but you already have to implement something like this 
> for equals/hashCode, so its just listing all fields. This would of couse 
> break backwards, too. So my plan would be to implement the missing methods 
> everywhere (as if it were abstract), but keep the default implementation in 
> 5.x. We just would do AccessController.doPrivileged().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-4212) Let facet queries hang off of pivots

2015-07-02 Thread Hoss Man (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man updated SOLR-4212:
---
Attachment: SOLR-6353-4212.patch

Updated patch wit ha few small changes, details mentioned below.

Comments in no particular order...



I reiterate my earlier comment about javadocs -- it's really hard to review a 
patch this size with so many new methods that don't have any javadocs at all.  
Everytime I see a method mentioned in the new code, I look it up to jog my 
memory about what exactly it does and i wind up needing to re-read/skim each 
method over and over to remind myself what it does becaase they don't have any 
javadocs.  (I can't imagine how how any developer will ever be able to make 
sense of any of this code down the road w/o more method level docs)

On the flip side: PivotFacetHelper.mergeQueryCounts _does_ have javadocs, but 
it doesn't look like they match what the method does -- I'm pretty sure either 
the javadocs are wrong, or the method has a bug in it and isn't working as 
documented.



bq. I further refactored the code into into three separate classes to divide 
the responsibilities clearly. 

Cool ... This organization makes a lot more sense then previous patches.



bq. Fixed. I am not sure why that happened but once I refactored the code to do 
all the parsing and calculation in prepare, I could not reproduce the issue.

Well, the best way to be sure it's fixed is to add a test showing that it works.

I've updated your patch to add a request like this to 
DistributedFacetPivotLargeTest.

In order to get it to work, I had to also modify the 
{{Map}} created by FacetComponent.prepare to be a 
LinkedHashMap (see more comments on this below) because otherwise it was a huge 
pain in the ass to try and write code to do anything with teh response in a 
clean way.



bq. Though I do not agree about the user counting on the same order because 
this is not a list but a complex object in all our responses. But I digress.

I don't really understand the basis for your comment.

My argument is simple:

* Given:
** (top level) Range Facet reults have always been returned as a NamedList, in 
the same order as specified by the facet.range params that requested them.
** This order is modeled in SolrJ's QueryResponse class as {{List 
getFacetRanges()}}
* Therefore:
** We should be consistent and return Range Facet results with the same 
predictible order when they are nested under pivots.
** This is already true in the SolrJ modeling in your patch, which adds 
{{List getFacetRanges()}} to PivotField.

If nothing else, having the RangeFacets returned in the same order for both the 
top level results and the per-pivot results is the only sane/simple way for 
users to compute ratios between the top level range counts and the per pivot 
value counts when dealing with many/variable ranges -- otherwise they have to 
sort them themselves to corrolate.



As I mentioned above regarding my test additions, I fixed the consistent 
ordering problem by changing the {{Map}} created by 
FacetComponent.prepare to also be a LinkedHashMap.  But I still don't 
understand the purpose of this being a Map (where the keys are the original 
values of the facet.range params, not to be confused with having a Map keyed 
off of the _tags_ associated with the list of RangeFacetRequests that use that 
tag discussed below) at all.

As far as i can tell all usages of this {{Map}} 
either:

* iterate over every entry in the Map and only look at the values.
* iterate over every facet.range param string (in order), and use it to "get()" 
the RangeFacetRequest object that corrisponds with that param string.

...wouldn't both of those usages be much simplier if instead of this Map there 
was just a {{List}} that could be iterated over when the 
caller cares about looping over all RangeFacetRequest instances?

Is there some other purpose for having this {{Map}} 
that i'm not understanding?

(see below for comments about creating a reused 
{{Map>}} for when dealing with tags ... that's 
one of the current "loop over all RangeFacetRequest" usages that seems wrong to 
me anyway)



I think you should revive your earlier idea of having a "FacetContext" object 
to put in the request context and use it to track the RangeFacetRequests and 
FacetBase (FACET_QUERY) objects.  (Either that, or just use the existing 
FacetInfo class for this since that's pretty much it's current purpose.  Is the 
reason you didn't already do that because FacetInfo isn't currently in the 
single node code path?)

Either way (with or w/o a new FacetContext class, with or w/o reusing 
FacetInfo) the code to access the Map/List of all RangeFacetRequests and 
FacetBase objects should really be encapsulated in some way -- if nothing else 
to reduce the amount of casting when consumers have to pull them out of 
req.getContext(...), but also to help future proo

[jira] [Commented] (LUCENE-6365) Optimized iteration of finite strings

2015-07-02 Thread Markus Heiden (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612534#comment-14612534
 ] 

Markus Heiden commented on LUCENE-6365:
---

I adapted my patch to the latest changes in trunk. 

I think the reuse of the iterator is one core part of this whole patch. I tried 
to rework the api of the iterator so that the reuse case and the no-reuse case 
are handled in a similar way. I hope you like it now (at least a bit). Lucene 
does this kind of reuse already, e.g. see Transition.

FuzzyCompletionQuery has been added lately and relies on the old big set of 
finite strings. I am not sure how to rework it. Currently it still uses the 
set, maybe it is better to use the iterator inside of FuzzyCompletionWeight, 
but this means recomputing the finite strings over and over again. What do you 
think?

BTW topoSortStates() is implemented by AnalyzingSuggester and 
CompletionTokenStream identically. Maybe it should be moved to one place, maybe 
to Operations? 

> Optimized iteration of finite strings
> -
>
> Key: LUCENE-6365
> URL: https://issues.apache.org/jira/browse/LUCENE-6365
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.0
>Reporter: Markus Heiden
>Priority: Minor
>  Labels: patch, performance
> Attachments: FiniteStrings_reuse.patch
>
>
> Replaced Operations.getFiniteStrings() by an optimized FiniteStringIterator.
> Benefits:
> Avoid huge hash set of finite strings.
> Avoid massive object/array creation during processing.
> "Downside":
> Iteration order changed, so when iterating with a limit, the result may 
> differ slightly. Old: emit current node, if accept / recurse. New: recurse / 
> emit current node, if accept.
> The old method Operations.getFiniteStrings() still exists, because it eases 
> the tests. It is now implemented by use of the new FiniteStringIterator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6365) Optimized iteration of finite strings

2015-07-02 Thread Markus Heiden (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Heiden updated LUCENE-6365:
--
Attachment: (was: FiniteStrings_reuse.patch)

> Optimized iteration of finite strings
> -
>
> Key: LUCENE-6365
> URL: https://issues.apache.org/jira/browse/LUCENE-6365
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.0
>Reporter: Markus Heiden
>Priority: Minor
>  Labels: patch, performance
>
> Replaced Operations.getFiniteStrings() by an optimized FiniteStringIterator.
> Benefits:
> Avoid huge hash set of finite strings.
> Avoid massive object/array creation during processing.
> "Downside":
> Iteration order changed, so when iterating with a limit, the result may 
> differ slightly. Old: emit current node, if accept / recurse. New: recurse / 
> emit current node, if accept.
> The old method Operations.getFiniteStrings() still exists, because it eases 
> the tests. It is now implemented by use of the new FiniteStringIterator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-6365) Optimized iteration of finite strings

2015-07-02 Thread Markus Heiden (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Heiden updated LUCENE-6365:
--
Attachment: FiniteStrings_reuse.patch

> Optimized iteration of finite strings
> -
>
> Key: LUCENE-6365
> URL: https://issues.apache.org/jira/browse/LUCENE-6365
> Project: Lucene - Core
>  Issue Type: Improvement
>  Components: core/other
>Affects Versions: 5.0
>Reporter: Markus Heiden
>Priority: Minor
>  Labels: patch, performance
> Attachments: FiniteStrings_reuse.patch
>
>
> Replaced Operations.getFiniteStrings() by an optimized FiniteStringIterator.
> Benefits:
> Avoid huge hash set of finite strings.
> Avoid massive object/array creation during processing.
> "Downside":
> Iteration order changed, so when iterating with a limit, the result may 
> differ slightly. Old: emit current node, if accept / recurse. New: recurse / 
> emit current node, if accept.
> The old method Operations.getFiniteStrings() still exists, because it eases 
> the tests. It is now implemented by use of the new FiniteStringIterator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[GitHub] lucene-solr pull request: SOLR-7223: Make tooltips consistent on a...

2015-07-02 Thread Fengtan
Github user Fengtan commented on the pull request:

https://github.com/apache/lucene-solr/pull/151#issuecomment-118172957
  
Hi @upayavira and thanks for your message.
I did update solr/webapp/web/partials/query.html and opened 
[#179](https://github.com/apache/lucene-solr/pull/179) against branch_5x, 
though the 
[patch](https://issues.apache.org/jira/secure/attachment/12743365/SOLR-7223.patch)
 seems to apply against trunk too. Is this OK ? Or do I have to re-open this 
pull request.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



  1   2   >