Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
codenohup committed Sep 18, 2024
1 parent e83bd92 commit 610e096
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ public void write(ByteBuf data) throws IOException {
}

@Override
public void setHasWriteFinished() {
getFileMeta().setHasWriteFinished(true);
public void setWriterClosed() {
getFileMeta().setIsWriterClosed(true);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public boolean isClosed() {
return closed;
}

public void setHasWriteFinished() {}
public void setWriterClosed() {}

protected synchronized long close(
RunnableWithIOException tryClose,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void pushDataHandShake(int numSubpartitions, int bufferSize) {
super.pushDataHandShake(numSubpartitions, bufferSize);
subPartitionBufferIndex = new int[numSubpartitions];
Arrays.fill(subPartitionBufferIndex, 0);
getFileMeta().setHasWriteFinished(false);
getFileMeta().setIsWriterClosed(false);
getFileMeta().setSegmentGranularityVisible(true);
}

Expand Down Expand Up @@ -149,7 +149,7 @@ public void write(ByteBuf data) throws IOException {
public synchronized long close() throws IOException {
long fileLength = super.close();
logger.debug("Close {} for file {}", this, getFile());
getFileMeta().setHasWriteFinished(true);
getFileMeta().setIsWriterClosed(true);
return fileLength;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ class PushDataHandler(val workerSource: WorkerSource) extends BaseMessageHandler
|fileLength:${diskFileInfo.getFileLength},
|fileName:${diskFileInfo.getFilePath}
|""".stripMargin)
fileWriter.setHasWriteFinished()
fileWriter.setWriterClosed()
return true
}
}
Expand Down

0 comments on commit 610e096

Please sign in to comment.