Skip to content

Commit

Permalink
fix(logcollector): silent errors from saving of schema details
Browse files Browse the repository at this point in the history
Silent collection schema details failure.
Now it fails in the K8S test. Need be fixed later

(cherry picked from commit c177a65)

# Conflicts:
#	sdcm/tester.py
  • Loading branch information
juliayakovlev committed Dec 12, 2024
1 parent 8dd85e6 commit 04712fb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sdcm/tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -2946,6 +2946,17 @@ def clean_resources(self):

self.destroy_credentials()

@silence(name='Save node schema')
def save_nodes_schema(self):
if self.db_cluster is None:
self.log.info("No nodes found in the Scylla cluster")

self.log.info("Save nodes user schema in the files")
for node in self.db_cluster.nodes:
node.save_cqlsh_output_in_file(cmd="desc schema", log_file="schema.log")
node.save_cqlsh_output_in_file(cmd="select JSON * from system_schema.tables",
log_file="system_schema_tables.log")

def tearDown(self):
self.teardown_started = True
with silence(parent=self, name='Sending test end event'):
Expand Down

0 comments on commit 04712fb

Please sign in to comment.