fix header bug

This commit is contained in:
phact 2023-10-17 14:43:59 -04:00 committed by Jonathan Shook
parent 2250af5748
commit ff7d6e1aee
2 changed files with 1 additions and 1 deletions

View File

@ -15,6 +15,7 @@ description: |
scenarios:
cassandra:
drop: run tags='block:drop' labels='target:astra' threads===1 cycles===2
# nb5 cql-vector2 cassandra.schema host=localhost localdc=datacenter1 dimensions=100
schema: run tags='block:schema' threads==undef cycles==undef
# nb5 cql-vector2 cassandra.rampup host=localhost localdc=datacenter1 dimensions=100 trainsize=1000000 dataset=glove-100-angular rate=10000

View File

@ -214,7 +214,6 @@ public class CsvReporter extends PeriodicTaskComponent {
if (!Files.exists(path)) {
addHeader = true;
Files.createFile(path, PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString("rwxrwxr--")));
Files.writeString(path, firstline);
}
BufferedWriter buf = Files.newBufferedWriter(path, StandardOpenOption.CREATE, StandardOpenOption.APPEND);
PrintWriter out = new PrintWriter(buf);