Skip to content

Commit 5e02971

Browse files
Add writeHeader back in to fix failing compaction test
1 parent 30e6e4b commit 5e02971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/org/apache/cassandra/index/sai/disk/vector/CompactionGraph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public SegmentMetadata.ComponentMetadataMap flush() throws IOException
389389
{
390390
// header is required to write the postings, but we need to recreate the writer after that with an accurate OrdinalMapper
391391
// TODO what to do about this? Removing this line makes the tests pass, but with it, we get an error when loading it
392-
// writer.writeHeader();
392+
writer.writeHeader(builder.getGraph().getView());
393393
writer.close();
394394

395395
int nInProgress = builder.insertsInProgress();

0 commit comments

Comments
 (0)