[
https://issues.apache.org/jira/browse/CASSANDRA-7676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14091169#comment-14091169
]
Michael Shuler commented on CASSANDRA-7676:
-------------------------------------------
Same test. If I remove the second conditional that's in the patch, the
/usr/bin/java in my path works fine.
{noformat}
(master)mshuler@hana:~/git/cassandra-dtest$ export MAX_HEAP_SIZE="1G"; export
HEAP_NEWSIZE="256M"; NUM_TOKENS=32 PRINT_DEBUG=true nosetests --nocapture
--nologcapture --verbosity=3 secondary_indexes_test.py
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
bug3367_test (secondary_indexes_test.TestSecondaryIndexes) ... cluster ccm
directory: /tmp/dtest-sbxbUa
[node1 ERROR]
[node1 ERROR]
removing ccm cluster test at: /tmp/dtest-sbxbUa
ok
test_6924_dropping_cf (secondary_indexes_test.TestSecondaryIndexes) ... cluster
ccm directory: /tmp/dtest-M1CSME
SKIP: 2.0.10 < 2.1
removing ccm cluster test at: /tmp/dtest-M1CSME
test_6924_dropping_ks (secondary_indexes_test.TestSecondaryIndexes) ... cluster
ccm directory: /tmp/dtest-zIE2rd
SKIP: 2.0.10 < 2.1
removing ccm cluster test at: /tmp/dtest-zIE2rd
test_low_cardinality_indexes (secondary_indexes_test.TestSecondaryIndexes) ...
cluster ccm directory: /tmp/dtest-ArqKeS
SKIP: 2.0.10 < 2.1
removing ccm cluster test at: /tmp/dtest-ArqKeS
test_list_indexes (secondary_indexes_test.TestSecondaryIndexesOnCollections)
... cluster ccm directory: /tmp/dtest-XgQ9BJ
SKIP: 2.0.10 < 2.1
removing ccm cluster test at: /tmp/dtest-XgQ9BJ
test_map_indexes (secondary_indexes_test.TestSecondaryIndexesOnCollections) ...
cluster ccm directory: /tmp/dtest-Btc1tR
[node1 ERROR]
[node1 ERROR]
FAIL
removing ccm cluster test at: /tmp/dtest-Btc1tR
test_set_indexes (secondary_indexes_test.TestSecondaryIndexesOnCollections) ...
cluster ccm directory: /tmp/dtest-WIAye7
[node1 ERROR]
[node1 ERROR]
FAIL
removing ccm cluster test at: /tmp/dtest-WIAye7
======================================================================
FAIL: test_map_indexes
(secondary_indexes_test.TestSecondaryIndexesOnCollections)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mshuler/git/cassandra-dtest/secondary_indexes_test.py", line 416,
in test_map_indexes
cursor.execute(stmt)
AssertionError: "No indexed columns present in by-columns clause" does not
match "Bad Request: line 1:49 no viable alternative at input 'contains'"
======================================================================
FAIL: test_set_indexes
(secondary_indexes_test.TestSecondaryIndexesOnCollections)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mshuler/git/cassandra-dtest/secondary_indexes_test.py", line 324,
in test_set_indexes
cursor.execute(stmt)
AssertionError: "No indexed columns present in by-columns clause" does not
match "Bad Request: line 1:49 no viable alternative at input 'contains'"
----------------------------------------------------------------------
Ran 7 tests in 13.972s
FAILED (SKIP=4, failures=2)
{noformat}
> bin/cassandra should complain if $JAVA is empty or not an executable
> --------------------------------------------------------------------
>
> Key: CASSANDRA-7676
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7676
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Robert Stupp
> Assignee: Robert Stupp
> Priority: Trivial
> Attachments: java_not_found-fix.txt
>
>
> If JAVA_HOME points to a non-existing directory, bin/cassandra just complains
> with {{[node1 ERROR] /Users/snazy/.ccm/test/node1/bin/cassandra: line 151:
> exec: : not found}} (via ccm).
> Patch checks if {{$JAVA}} is empty or does not point to an executable and
> prints appropriate error message.
> (Patch against trunk)
--
This message was sent by Atlassian JIRA
(v6.2#6252)