Skip to content

Instantly share code, notes, and snippets.

@mfelsche
Created April 15, 2014 16:41
Show Gist options
  • Save mfelsche/10746388 to your computer and use it in GitHub Desktop.
Save mfelsche/10746388 to your computer and use it in GitHub Desktop.
2 nodes up, t2 created with 0 replicas:
cr> select sys.nodes.name, * from sys.shards where table_name = 't2';
+----------------+-------------+------------+----+-----------------+----------+---------+-----------------+------+---------+
| sys.nodes.name | schema_name | table_name | id | partition_ident | num_docs | primary | relocating_node | size | state |
+----------------+-------------+------------+----+-----------------+----------+---------+-----------------+------+---------+
| Interloper | doc | t2 | 0 | _arthur | 0 | TRUE | NULL | 99 | STARTED |
| Interloper | doc | t2 | 8 | _arthur | 0 | TRUE | NULL | 99 | STARTED |
| Interloper | doc | t2 | 2 | _arthur | 1 | TRUE | NULL | 2027 | STARTED |
| Interloper | doc | t2 | 4 | _arthur | 0 | TRUE | NULL | 99 | STARTED |
| Interloper | doc | t2 | 6 | _arthur | 0 | TRUE | NULL | 99 | STARTED |
| Phyla-Vell | doc | t2 | 1 | _arthur | 0 | TRUE | NULL | 99 | STARTED |
| Phyla-Vell | doc | t2 | 7 | _arthur | 0 | TRUE | NULL | 99 | STARTED |
| Phyla-Vell | doc | t2 | 5 | _arthur | 0 | TRUE | NULL | 99 | STARTED |
| Phyla-Vell | doc | t2 | 3 | _arthur | 0 | TRUE | NULL | 99 | STARTED |
+----------------+-------------+------------+----+-----------------+----------+---------+-----------------+------+---------+
1 node taken down:
cr> select sys.nodes.name, * from sys.shards where table_name = 't2';
CrateException[Cannot handle Reference sys.nodes.name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment