Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ccmlib/node: capture the output of sstable2json command in logging file #482

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

fruch
Copy link
Contributor

@fruch fruch commented Jul 27, 2023

After recent changes to scylla, we fount that:

  • this call was failing silently
  • was printing to stdout, and not into logging

exmple of such failure, that some test failed to notice:

[2023-07-26T06:42:39.223Z] Exception in thread "main" java.lang.NumberFormatException: For input string: "3g7z_0in1_5tmap2bezca73ozy4m"
[2023-07-26T06:42:39.224Z] 	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
[2023-07-26T06:42:39.224Z] 	at java.base/java.lang.Integer.parseInt(Integer.java:652)
[2023-07-26T06:42:39.224Z] 	at java.base/java.lang.Integer.parseInt(Integer.java:770)
[2023-07-26T06:42:39.224Z] 	at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:280)
[2023-07-26T06:42:39.224Z] 	at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:228)
[2023-07-26T06:42:39.224Z] 	at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:217)
[2023-07-26T06:42:39.224Z] 	at org.apache.cassandra.tools.SSTableExport.run(SSTableExport.java:188)
[2023-07-26T06:42:39.224Z] 	at com.scylladb.tools.SSTableExport.main(SSTableExport.java:44)

@fruch fruch requested a review from tchaikov July 27, 2023 10:54
ccmlib/node.py Outdated Show resolved Hide resolved
Copy link
Contributor

@tchaikov tchaikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"modernize" is vague in this context, could use something like:

capture the output of sstable2json command in logging file

@fruch fruch changed the title ccmlib/node: modernize the run_sstable2json ccmlib/node: capture the output of sstable2json command in logging file Jul 31, 2023
After recent changes to scylla, we fount that:
* this call was failing silently
* was printing to stdout, and not into logging

exmple of such failure, that some test failed to notice:
```
[2023-07-26T06:42:39.223Z] Exception in thread "main" java.lang.NumberFormatException: For input string: "3g7z_0in1_5tmap2bezca73ozy4m"
[2023-07-26T06:42:39.224Z] 	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
[2023-07-26T06:42:39.224Z] 	at java.base/java.lang.Integer.parseInt(Integer.java:652)
[2023-07-26T06:42:39.224Z] 	at java.base/java.lang.Integer.parseInt(Integer.java:770)
[2023-07-26T06:42:39.224Z] 	at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:280)
[2023-07-26T06:42:39.224Z] 	at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:228)
[2023-07-26T06:42:39.224Z] 	at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:217)
[2023-07-26T06:42:39.224Z] 	at org.apache.cassandra.tools.SSTableExport.run(SSTableExport.java:188)
[2023-07-26T06:42:39.224Z] 	at com.scylladb.tools.SSTableExport.main(SSTableExport.java:44)
```
@fruch fruch merged commit 9d7bee9 into scylladb:next Jul 31, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants