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

ASF GitHub Bot commented on RYA-189:
------------------------------------

GitHub user DLotts opened a pull request:

    https://github.com/apache/incubator-rya/pull/112

    Rya 189 mongo arch dependant

    ## Description
    
    Made the build fail for module mongodb.rya if using a 32bit JVM/JDK.
    When it fails, it provides an explanation and recomendation to use a 64bit 
JVM.
    Currently the tests fail when using a 32bit JVM with output that give 
little clue to the cause.
    
    ### Tests
    
    No unit tests need.
    Test manually like this:
    
    #### The usual case:
    Run a build using a 64bit JVM installed:
    
    > mvn install   -rf  :mongodb.rya
    
    #### The new case:
    Install a 32bit JDK, for example jdk1.8.0_102.
    Run this command to cause it to be used (replace the path to the JDK):
    
    In Linux:
    > JAVA_HOME='/whatever/Java32bit/jdk1.8.0_102' mvn install   -rf  
:mongodb.rya
    
    or in Windows using git bash or MSYS2:
    
    > JAVA_HOME='C:\Program Files (x86)\Java\jdk1.8.0_102' mvn install   -rf  
:mongodb.rya
    
    Expect this output:
    
    > [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireOS failed with 
message:
    > Testing MongoDB with Flapdoodle fails for arch=x86, which is 32bit JVM, 
fix by using a 64bit JDK
    > Tests will fail with the following error when using 32bit JVM on either 
Linux or Windows:
    >                         java.io.IOException: Could not start process: 
<EOF>
    
    Followed by an enforcer error.
    
    ### Links
    [Jira](https://issues.apache.org/jira/browse/RYA-189)
    
    ### Checklist
    - [ ] Code Review
    - [ ] Squash Commits
    
    #### People To Reivew
    Caleb has a linux based 32bit SDK.  I did not test that.
    or Aaron, anyone.


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

    $ git pull https://github.com/DLotts/incubator-rya 
rya-189_MongoArchDependant

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

    https://github.com/apache/incubator-rya/pull/112.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 #112
    
----
commit d53bfe1e938922027711ae8f94fdda8215ce13dc
Author: David W. Lotts <david.lo...@parsons.com>
Date:   2016-10-12T21:27:00Z

    rya-189 TODO how to do an OR, test jvm 32bit.

commit 4ce44bcbd0afda24aebdf45cd89f1555990b0202
Author: David W. Lotts <david.lo...@parsons.com>
Date:   2016-10-14T18:29:55Z

    rya-189 done.  TODO don't fail if skipTests

----


> Mongo Tests are failing
> -----------------------
>
>                 Key: RYA-189
>                 URL: https://issues.apache.org/jira/browse/RYA-189
>             Project: Rya
>          Issue Type: Task
>    Affects Versions: 3.2.10
>            Reporter: Aaron Mihalik
>            Assignee: Aaron Mihalik
>            Priority: Blocker
>
> During the review of 3.2.10-RC1 Caleb noted:
> Mongo Tests are failing ( getting the following Exception for 
> MongoDBQueryEngineTest and MongoDBRyaDAOTest
> on my CentOS vm :
> {code}
> java.io.IOException: Could not start process: <EOF>
>         at 
> de.flapdoodle.embed.mongo.AbstractMongoProcess.onAfterProcessStart(AbstractMongoProcess.java:79)
>         at 
> de.flapdoodle.embed.process.runtime.AbstractProcess.<init>(AbstractProcess.java:114)
>         at 
> de.flapdoodle.embed.mongo.AbstractMongoProcess.<init>(AbstractMongoProcess.java:53)
>         at 
> de.flapdoodle.embed.mongo.MongodProcess.<init>(MongodProcess.java:50)
>         at 
> de.flapdoodle.embed.mongo.MongodExecutable.start(MongodExecutable.java:44)
>         at 
> de.flapdoodle.embed.mongo.MongodExecutable.start(MongodExecutable.java:34)
>         at 
> de.flapdoodle.embed.process.runtime.Executable.start(Executable.java:101)
>         at 
> de.flapdoodle.embed.mongo.tests.MongodForTestsFactory.<init>(MongodForTestsFactory.java:86)
>         at 
> de.flapdoodle.embed.mongo.tests.MongodForTestsFactory.with(MongodForTestsFactory.java:57)
>         at 
> mvm.rya.mongodb.MongoDBQueryEngineTest.setUp(MongoDBQueryEngineTest.java:58)
> {code}



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

Reply via email to