Skip to content

Commit

Permalink
scylla_node: improve the sample return val of node.dump_sstable()
Browse files Browse the repository at this point in the history
so we can have better understanding of the format when using
this function.

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored and fruch committed Aug 14, 2023
1 parent 7bb4d15 commit 4ff8fd8
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions ccmlib/scylla_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,10 @@ def dump_sstables(self,
:return: return all the partitions collected in the specified sstables
:raises: subprocess.CalledProcessError if scylla-sstable returns a non-zero exit code.
the $SSTABLE is returned from this method, please see
https://opensource.docs.scylladb.com/stable/operating-scylla/admin-tools/scylla-sstable.html#dump-data
for the JSON schema of it.
a typical return value might look like:
```
[
Expand All @@ -1471,10 +1475,21 @@ def dump_sstables(self,
'value': '94'},
'clustering_elements': [
{
'type': clustering-row',
'type': 'clustering-row',
'key': {...},
'marker': {...},
'columns': {...},
'columns': {
'c1': {
'is_live': True,
'type': 'regular',
'timestamp': 1691723027979972,
'ttl': '1234s',
'expiry': '2023-08-11 03:24:21z',
'value': 'new',
},
'c2': {...}
}
}
]
}
]
Expand Down

0 comments on commit 4ff8fd8

Please sign in to comment.