-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeoShapeTest failing on ubuntu 16.04 #1351
Comments
Please note that the test case fails on RHEL as well and on both Power 8 (ppc64le) and Intel (x86_64) architectures. |
Try running the test on the the git checkout titan11
#git checkout 1.0.0
mvn clean install |
@sjudeng Thanks for your response, I will check with the titan11 branch and update my findings soon. |
The failures for Geoshape are no longer seen with titan11 branch (tested this on ppc64le architecture). However, there are errors, as below Tests run: 75, Failures: 0, Errors: 4, Skipped: 0 and also Tests in error: Tests run: 163, Failures: 0, Errors: 2, Skipped: 0 Trying to debug this further, any pointers regarding which part of the code to look at would be great! |
Testing I have done has been on a CentOS 7 x64 instance with 2 vCPU and 7.5 GB memory. Not sure if it could be an architecture issue. The test suite is pretty substantial, especially the storage backend tests (e.g. hbase). I've seen sporadic errors before (specifically in hbase tests) when I've tried running on systems with fewer resources. I think the Elasticsearch tests in titan11 should pass, but if you can upgrade to Elasticserach 2.3, you can also retry with the branch in #1327. I know all tests in that branch pass, at least in the above test environment. git remote add ngageoint https://github.com/ngageoint/titan.git
git fetch ngageoint
git checkout ngageoint/master
mvn clean install |
Thanks for the quick response @sjudeng . I will follow your suggestions and update on the results. |
No longer seeing this issue, hence closing the ticket. Thanks for all the help and support! |
I just cloned titan10 and tried to build it on Amazon Linux (simple t1.micro instance). Getting exactly the same failure that @seth-priya has mentioned:
|
Well, I think it is clearly the bug in the test. This value is a box, if I read Geoshape code correctly. 4 coordinates. But the test expects it to be a polygon for some reason. This is what makes the decision on the type:
I believe it is the problem with the type in the expected value. It should be "Box" and changing it to "Box" makes the test working. |
@ngrigoriev The issue is also resolved on the |
Yes, I understand that, but that little issue breaks the build of the current stable code branch... |
I think the last known truly stable titan code is the 1.0.0 tag. I confirmed the test is working there. git checkout 1.0.0
mvn clean install -Dtest=GeoshapeTest -pl titan-test -am For more current code I'd recommend starting with |
Hi,
I am trying run the Titan DB build and automated tests on an ubuntu 16.04 VM and the Geotest is failing.
Results :
Failed tests:
GeoshapeTest.testGeoJsonSerialization:225 expected:<{"type":"[Polygon]","coordinates":[[20...> but was:<{"type":"[Box]","coordinates":[[20...>
Tests run: 316, Failures: 1, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Titan: Distributed Graph Database .................. SUCCESS [ 0.835 s]
[INFO] Titan-Core: Core Library for Titan ................. SUCCESS [ 5.666 s]
[INFO] Titan-Test: Test Suite for Titan ................... FAILURE [18:57 min]
[INFO] Titan-BerkeleyJE: Distributed Graph Database ....... SKIPPED
This is the error that I am seeing during the test failure:
Running com.thinkaurelius.titan.graphdb.attribute.GeoshapeTest
circle[10.0,12.5]:100.0
box[[20.0,22.5],[40.5,60.5]]
Tests run: 14, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.507 sec <<< FAILURE! - in com.thinkaurelius.titan.graphdb.attribute.GeoshapeTest
testGeoJsonSerialization(com.thinkaurelius.titan.graphdb.attribute.GeoshapeTest) Time elapsed: 0.032 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<{"type":"[Polygon]","coordinates":[[20...> but was:<{"type":"[Box]","coordinates":[[20...>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at com.thinkaurelius.titan.graphdb.attribute.GeoshapeTest.testGeoJsonSerialization(GeoshapeTest.java:225)
Is this a known issue or am I missing something?
I am using openjdk 1.8.0 and the following build steps
git clone https://github.com/thinkaurelius/titan
cd titan
mvn clean install -DskipTests=true
mvn test
Any guidance on this would be of great help. Thanks!
Priya
The text was updated successfully, but these errors were encountered: