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

Shawn Heisey commented on SOLR-7462:
------------------------------------

Either will work, so I'd use the Java version found in your target environment, 
as that will provide the best possible optimizations in the compiled code.

if you go into the "solr" directory of the source checkout and type "ant 
package" that will create SNAPSHOT packages similar to what you can download 
from the official mirrors.  When I did this on a branch_5x snapshot, the 
following files were in the package directory, relative to the solr directory 
where I ran the command:

{noformat}
[solr@bigindy5 solr]$ ls -al package/
total 338116
drwxrwxr-x  4 solr solr      4096 Apr 24 09:45 .
drwxrwxr-x 17 solr solr      4096 Apr 24 09:34 ..
drwxrwxr-x  2 solr solr       135 Apr 24 09:45 changes
-rw-rw-r--  1 solr solr    138455 Apr 24 09:46 KEYS
drwxrwxr-x  2 solr solr         6 Apr 16 17:46 maven
-rw-rw-r--  1 solr solr  37775529 Apr 24 09:38 solr-5.2.0-SNAPSHOT-src.tgz
-rw-rw-r--  1 solr solr        62 Apr 24 09:38 solr-5.2.0-SNAPSHOT-src.tgz.md5
-rw-rw-r--  1 solr solr        70 Apr 24 09:38 solr-5.2.0-SNAPSHOT-src.tgz.sha1
-rw-rw-r--  1 solr solr 150488544 Apr 24 09:45 solr-5.2.0-SNAPSHOT.tgz
-rw-rw-r--  1 solr solr        58 Apr 24 09:45 solr-5.2.0-SNAPSHOT.tgz.md5
-rw-rw-r--  1 solr solr        66 Apr 24 09:45 solr-5.2.0-SNAPSHOT.tgz.sha1
-rw-rw-r--  1 solr solr 157786320 Apr 24 09:45 solr-5.2.0-SNAPSHOT.zip
-rw-rw-r--  1 solr solr        58 Apr 24 09:45 solr-5.2.0-SNAPSHOT.zip.md5
-rw-rw-r--  1 solr solr        66 Apr 24 09:45 solr-5.2.0-SNAPSHOT.zip.sha1
{noformat}

You probably want to check out tags/lucene_solr_5_1_0 so you can be sure that 
the code you're starting with is identical to the version you have now.

http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc....29


> ArrayIndexOutOfBoundsException in RecordingJSONParser.java
> ----------------------------------------------------------
>
>                 Key: SOLR-7462
>                 URL: https://issues.apache.org/jira/browse/SOLR-7462
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.1
>            Reporter: Scott Dawson
>
> With Solr 5.1 I'm getting an occasional fatal exception during indexing. It's 
> an ArrayIndexOutOfBoundsException at line 61 of 
> org/apache/solr/util/RecordingJSONParser.java. Looking at the code (see 
> below), it seems obvious that the if-statement at line 60 should use a 
> greater-than sign instead of greater-than-or-equals.
>   @Override
>   public CharArr getStringChars() throws IOException {
>     CharArr chars = super.getStringChars();
>     recordStr(chars.toString());
>     position = getPosition();
>     // if reading a String , the getStringChars do not return the closing 
> single quote or double quote
>     //so, try to capture that
>     if(chars.getArray().length >=chars.getStart()+chars.size()) {     // line 
> 60
>       char next = chars.getArray()[chars.getStart() + chars.size()]; // line 
> 61
>       if(next =='"' || next == '\'') {
>         recordChar(next);
>       }
>     }
>     return chars;
>   }



--
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

Reply via email to