Skip to content

Instantly share code, notes, and snippets.

View aboudreault's full-sized avatar

Alan Boudreault aboudreault

View GitHub Profile
aboudreault@kovaro:~/git/cstar/automaton$ ctool metrics test_cluster --fetch-osm --collect-interval=10
Traceback (most recent call last):
File "/home/aboudreault/git/cstar/automaton/bin/ctool", line 16, in <module>
run()
File "/home/aboudreault/git/cstar/automaton/automaton/ctool.py", line 3524, in run
sys.exit(cmd_obj.run())
File "/home/aboudreault/git/cstar/automaton/automaton/ctool.py", line 2357, in run
collect_interval, start, "now")
File "/home/aboudreault/git/cstar/automaton/automaton/api/perf_monitoring.py", line 406, in export_legacy_ctool_os_metrics
result_map = __convert_to_legacy_format(json_original_content, cluster)
cqlsh> COPY cstar_perf.test_artifacts_backup FROM '/tmp/test_artifacts';
Error starting import process:
field larger than field limit (131072)
%d format: a number is required, not NoneType
[172.17.0.17] out: INFO:cstar_perf.model:Initializing Model...
[172.17.0.17] out: ERROR:cassandra.connection:Closing connection <AsyncoreConnection(140434400511248) 127.0.0.1:9042> due to protocol error: code=000a [Protocol err
or] message="Invalid or unsupported protocol version: 4"
[172.17.0.17] out: WARNING:cassandra.cluster:Downgrading core protocol version from 4 to 3 for 127.0.0.1
[172.17.0.17] out: INFO:cstar_perf.model:Model initialized
[172.17.0.17] out: Traceback (most recent call last):
[172.17.0.17] out: File "pyscript.py", line 4, in <module>
[172.17.0.17] out: db.add_cluster('test_cluster', 22, 'test_cluster')
[172.17.0.17] out: File "/home/cstar/git/cstar_perf/frontend/cstar_perf/frontend/server/model.py", line 368, in add_cluster
[172.17.0.17] out: session.execute(self.__prepared_statements['insert_clusters'], (name, nodes, description))
aboudreault@kovaro:~/dev/cstar/mv$ ccm node3 nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns Host ID Rack
DN 127.0.0.1 123.24 KB 1 ? 318b663e-b84c-4b38-a504-12d9b4ed6180 rack1
UN 127.0.0.3 126.49 KB 1 ? fc211713-e9f2-47c4-96a4-2e0b96b45fdf rack1
Cluster: 'local'
----------------
node1: UP
node3: DOWN
node2: UP
Cluster: 'local'
----------------
node1: DOWN
node3: DOWN
node2: DOWN
user = db.create_user('\\''[email protected]'\\'', '\\''User Full Name'\\'', ['\\''user'\\''])
db.set_user_passphrase('\\''[email protected]'\\'', '\\''user'\\'')
' >> "$(echo pyscript.py)"
[172.17.1.72] run: python pyscript.py
[172.17.1.72] out: INFO:cstar_perf.model:Initializing Model...
[172.17.1.72] out: ERROR:cassandra.connection:Closing connection <AsyncoreConnection(139748393543312) 127.0.0.1:9042> due to protocol error: code=000a [Protocol error] message="Invalid or unsupported protocol version: 4"
[172.17.1.72] out: WARNING:cassandra.cluster:Downgrading core protocol version from 4 to 3 for 127.0.0.1
[172.17.1.72] out: INFO:cstar_perf.model:Model initialized
[172.17.1.72] out:
$ ccm node1 nodetool compactionstats
pending tasks: 1
id compaction type keyspace table completed total unit progress
992ee1f0-4da4-11e5-a1be-b13ed399e1ba Compaction perftesting users 456452405 11207935044 bytes 4.07%
Active compaction remaining time : 0h00m51s
$ ccm node1 nodetool compactionstats
pending tasks: 1
id compaction type keyspace table completed total unit progress
992ee1f0-4da4-11e5-a1be-b13ed399e1ba Compaction perftesting users 2351106100 11207935044 bytes 20.98%
Active compaction remaining time : 0h00m42s
com.datastax.driver.core.exceptions.SyntaxError: line 1:20 no viable alternative at input 'WHERE' (UPDATE "users" SET [WHERE]...)
at com.datastax.driver.core.exceptions.SyntaxError.copy(SyntaxError.java:35)
at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:269)
at com.datastax.driver.core.AbstractSession.prepare(AbstractSession.java:98)
at org.apache.cassandra.stress.util.JavaDriverClient.prepare(JavaDriverClient.java:84)
at org.apache.cassandra.stress.StressProfile.getInsert(StressProfile.java:419)
at org.apache.cassandra.stress.settings.SettingsCommandUser$1.get(SettingsCommandUser.java:82)
at org.apache.cassandra.stress.settings.SettingsCommandUser$1.get(SettingsCommandUser.java:78)
at org.apache.cassandra.stress.operations.SampledOpDistributionFactory$1.get(SampledOpDistributionFactory.java:80)
at org.apache.cassandra.stress.StressAction$Consumer.<init>(StressAction.java
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.reflect.UndeclaredThrowableException │-1
at org.apache.cassandra.stress.util.Timing.snap(Timing.java:92) │06
at org.apache.cassandra.stress.StressMetrics.update(StressMetrics.java:156) │:~
at org.apache.cassandra.stress.StressMetrics.access$300(StressMetrics.java:37) │/f
at org.apache.cassandra.stress.StressMetrics$2.run(StressMetrics.java:104) │ab
at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: java.lang.reflect.UndeclaredThrowableException