mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-01 13:45:53 +00:00
Merge 'scylla-gdb.py: add commands to dump sstables summary and index-cache' from Botond Dénes
This series adds two commands: * scylla sstable-summary * scylla sstable-index-cache The former dumps the content of the sstable summary. This component is kept in memory in its entirety, so this can be easily done. The latter command dumps the content of the sstable index cache. This contains all the index-pages that are currently cached. The promoted index is not dumped yet and there is no indication of whether a given entry is in the LRU or not, but this already allows at seeing what pages are in the cache and what aren't. Closes #10546 * github.com:scylladb/scylla: scylla-gdb.py: add scylla sstable-index-cache command scylla-gdb.py: add scylla sstable-summary command test/scylla-gdb: add sstable fixture scylla-gdb.py: make chunked_vector a proper container wrapper" scylla-gdb.py: make small_vector a proper container wrapper" scylla-gdb.py: add sstring container wrapper scylla-gdb.py: add chunked_managed_vector container wrapper scylla-gdb.py: add managed_vector container wrapper scylla-gdb.py: std_variant: add workaround for clang template bug scylla-gdb.py: add bplus_tree container wrapper
This commit is contained in:
@@ -109,6 +109,13 @@ def schema(gdb, scylla_gdb):
|
||||
table['_schema']['_p'].reinterpret_cast(gdb.lookup_type('schema').pointer()))
|
||||
yield '$schema'
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def sstable(gdb, scylla_gdb):
|
||||
db = scylla_gdb.sharded(gdb.parse_and_eval('::debug::the_database')).local()
|
||||
sst = next(scylla_gdb.find_sstables())
|
||||
gdb.set_convenience_variable('sst', sst)
|
||||
yield '$sst'
|
||||
|
||||
def test_schema(gdb, schema):
|
||||
scylla(gdb, f'schema {schema}')
|
||||
|
||||
@@ -137,4 +144,10 @@ def task(gdb, scylla_gdb):
|
||||
def test_fiber(gdb, task):
|
||||
scylla(gdb, f'fiber {task}')
|
||||
|
||||
def test_sstable_summary(gdb, sstable):
|
||||
scylla(gdb, f'sstable-summary {sstable}')
|
||||
|
||||
def test_sstable_summary(gdb, sstable):
|
||||
scylla(gdb, f'sstable-index-cache {sstable}')
|
||||
|
||||
# FIXME: need a simple test for lsa-segment
|
||||
|
||||
Reference in New Issue
Block a user