카산드라 클러스터 (1.0.10)에서 이상한 동작이 나타납니다.복제 인수가없는 cassandra *에 키 공간 설정
3 노드 클러스터가 실행 중입니다. here을 언급 한 바와 같이 문제가되지 않습니다 노드를 연결할 수 없습니다와
[[email protected]] create keyspace foo;
ae639ba0-d4b8-11e1-0000-424d3d43a8df
Waiting for schema agreement...
Warning: unreachable nodes 10.227.65.172, 10.51.62.63... schemas agree across the cluster
[[email protected]] use foo;
Authenticated to keyspace: foo
[[email protected]] create column family User with comparator = UTF8Type;
b4608180-d4b8-11e1-0000-424d3d43a8df
Waiting for schema agreement...
Warning: unreachable nodes 10.227.65.172, 10.51.62.63... schemas agree across the cluster
[[email protected]] update column family User with
... column_metadata =
... [
... {column_name: first, validation_class: UTF8Type},
... {column_name: last, validation_class: UTF8Type},
... {column_name: age, validation_class: UTF8Type, index_type: KEYS}
... ];
b70562c0-d4b8-11e1-0000-424d3d43a8df
Waiting for schema agreement...
Warning: unreachable nodes 10.227.65.172, 10.51.62.63... schemas agree across the cluster
[[email protected]] set User['jsmith']['first'] = 'John';
null
UnavailableException()
at org.apache.cassandra.thrift.Cassandra$insert_result.read(Cassandra.java:15206)
at org.apache.cassandra.thrift.Cassandra$Client.recv_insert(Cassandra.java:858)
at org.apache.cassandra.thrift.Cassandra$Client.insert(Cassandra.java:830)
at org.apache.cassandra.cli.CliClient.executeSet(CliClient.java:901)
at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:218)
at org.apache.cassandra.cli.CliMain.processStatementInteractive(CliMain.java:220)
at org.apache.cassandra.cli.CliMain.main(CliMain.java:348)
(문제점 : 나는 복제 계수를 설정하지 않고 키 스페이스 을 작성하는 경우 데이터를 입력하려고 할 때
는, 그때 나는 오류를 얻을)
그러나 키 공간을 만들고 복제 인수 (1, 2 또는 3)를 지정하면 올바르게 작동합니다.
복제 인수를 지정하지 않고 클러스터를 생성하는 데 문제가 있으면 작성시 예외가 발생하지 않아야합니까? 다중 노드 클러스터에서 복제 요인을 지정하지 않으면 예상되는 작업은 무엇입니까?
버그처럼 들립니다. 버그 보고서는 https://issues.apache.org/jira/browse/CASSANDRA – psanford
에 제출할 수 있습니다. 감사합니다 - 버그 접수 : https://issues.apache.org/jira/browse/CASSANDRA-4486 – agentgonzo