Skip to content

Commit

Permalink
storage: Fix stderr sorting. #TASK-6722
Browse files Browse the repository at this point in the history
  • Loading branch information
j-coll committed Oct 25, 2024
1 parent 697b08b commit 356567e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public void run() {
private void write(Text line) throws IOException, InterruptedException {
numRecords++;
context.write(new ImmutableBytesWritable(
Bytes.toBytes(StreamVariantReducer.STDOUT_KEY + outputKeyPrefix + (stdoutKeyNum++))), line);
Bytes.toBytes(String.format("%s%s%08d", StreamVariantReducer.STDOUT_KEY, outputKeyPrefix, stdoutKeyNum++))), line);
}
}

Expand Down Expand Up @@ -546,7 +546,7 @@ private void write(String line) throws IOException, InterruptedException {

private void write(Text line) throws IOException, InterruptedException {
context.write(new ImmutableBytesWritable(
Bytes.toBytes(StreamVariantReducer.STDERR_KEY + outputKeyPrefix + (stderrKeyNum++))), line);
Bytes.toBytes(String.format("%s%s%08d", StreamVariantReducer.STDERR_KEY, outputKeyPrefix, stderrKeyNum++))), line);
}

private boolean matchesReporter(String line) {
Expand Down

0 comments on commit 356567e

Please sign in to comment.