[
https://issues.apache.org/jira/browse/PHOENIX-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13918806#comment-13918806
]
James Violette commented on PHOENIX-53:
---------------------------------------
The overall test suite did not work.
$ mvn package &> ~/phoenix-test.log
$ grep FAILURE ~/phoenix-test.log
Tests run: 22, Failures: 1, Errors: 21, Skipped: 0, Time elapsed: 1,483.49 sec
<<< FAILURE! - in org.apache.phoenix.end2end.SequenceTest
ERROR and FAILURE shared the same cause.
Caused by: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to
find region for SYSTEM.CATALOG,\x00SYSTEM\x00CATALOG,99999999999999 after 10
tries.
However, the CSV loader specific tests completed successfully. These are
independent of the test failure listed above.
$ mvn -Dtest=CSVCommonsLoaderTest test
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.phoenix.end2end.CSVCommonsLoaderTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.107 sec -
in org.apache.phoenix.end2end.CSVCommonsLoaderTest
Results :
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:17.776s
[INFO] Finished at: Mon Mar 03 16:19:04 PST 2014
[INFO] Final Memory: 27M/417M
[INFO] ------------------------------------------------------------------------
> CSV loader fails on empty line
> ------------------------------
>
> Key: PHOENIX-53
> URL: https://issues.apache.org/jira/browse/PHOENIX-53
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 2.2.3, 3.0.0
> Reporter: James Violette
> Labels: patch
> Fix For: 2.2.3, 3.0.0
>
> Attachments: commons-csv-1.0-SNAPSHOT.jar,
> incubator-phoenix-commons-csv-rev1.patch,
> incubator-phoenix-commons-csv-rev2-3.0.0.patch,
> incubator-phoenix-commons-csv-rev2-3.0.0.patch,
> incubator-phoenix-csv-commons.patch
>
>
> in org.apache.phoenix.util.CSVLoader, the upsert fails if it encounters an
> empty line. This occurs if all lines end with the new line character and the
> reader returns an empty line at the end.
> A fix is to add a guard while reading the next line.
> public void upsert(CSVReader reader) throws Exception {
> ...
> while ((nextLine = reader.readNext()) != null) {
> if (nextLine.length==0) {
> continue;
> }
--
This message was sent by Atlassian JIRA
(v6.2#6252)