vldpyatkov commented on code in PR #6673:
URL: https://github.com/apache/ignite-3/pull/6673#discussion_r2394299093
##########
modules/file-io/src/main/java/org/apache/ignite/internal/fileio/AsyncFileIo.java:
##########
@@ -48,11 +49,12 @@ public class AsyncFileIo extends AbstractFileIo {
* Creates I/O implementation for specified file.
*
* @param filePath File path.
+ * @param asyncIoExecutor Callback executor.
* @param modes Open modes.
* @throws IOException If some I/O error occurs.
*/
- public AsyncFileIo(Path filePath, OpenOption... modes) throws IOException {
- ch = AsynchronousFileChannel.open(filePath, modes);
+ public AsyncFileIo(Path filePath, ExecutorService asyncIoExecutor,
OpenOption... modes) throws IOException {
+ ch = AsynchronousFileChannel.open(filePath, Set.of(modes),
asyncIoExecutor);
Review Comment:
I checked the code and did not find an issue with the empty list.
Because the empty is interpreted as all modes, right now.
```
default FileIo create(Path filePath) throws IOException {
return create(filePath, CREATE, READ, WRITE);
}
```
--
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]