Skip to content

Commit

Permalink
Fix bug with filenames in pstats - Increment version of tool to 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jfleming-ic committed Nov 17, 2024
1 parent cf9e230 commit 39671ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.instaclustr</groupId>
<artifactId>ic-sstable-tools-5.0.0</artifactId>
<version>1.0.1</version>
<version>1.1.0</version>

<name>Instaclustr SSTable Tools</name>
<description>Handy SSTable tools for Apache Cassandra</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,15 @@ public Collection<SSTableReader> getIndexReaders() {
continue;
}

if(discoveredComponents.size() > 1){
logger.error("Multiple Components found, this should never happen. Filename might be incorrect.");
}

//discoveredComponents get can't fail here, cause we check if the Set is empty just above?
readers.add(new IndexReader(
new SSTableStatistics(
sstable.descriptor.id,
sstable.getFilename(),
discoveredComponents.stream().findFirst().get().name(),
sstable.uncompressedLength(),
sstable.getMinTimestamp(),
sstable.getMaxTimestamp(),
Expand Down

0 comments on commit 39671ef

Please sign in to comment.