reswqa commented on code in PR #20371:
URL: https://github.com/apache/flink/pull/20371#discussion_r933019151
##########
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/HsMemoryDataManager.java:
##########
@@ -68,10 +70,16 @@ public HsMemoryDataManager(
BufferPool bufferPool,
HsSpillingStrategy spillStrategy,
HsFileDataIndex fileDataIndex,
- FileChannel dataFileChannel) {
+ Path dataFilePath)
+ throws IOException {
this.numSubpartitions = numSubpartitions;
this.bufferPool = bufferPool;
- this.spiller = new HsMemoryDataSpiller(dataFileChannel);
+ this.spiller =
+ new HsMemoryDataSpiller(
+ FileChannel.open(
+ dataFilePath,
+ StandardOpenOption.CREATE_NEW,
+ StandardOpenOption.WRITE));
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]