[
https://issues.apache.org/jira/browse/IGNITE-26549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vladislav Pyatkov reassigned IGNITE-26549:
------------------------------------------
Assignee: Vladislav Pyatkov
> Async file io uses default pool
> -------------------------------
>
> Key: IGNITE-26549
> URL: https://issues.apache.org/jira/browse/IGNITE-26549
> Project: Ignite
> Issue Type: Bug
> Reporter: Vladislav Pyatkov
> Assignee: Vladislav Pyatkov
> Priority: Major
> Labels: ignite-3
> Time Spent: 10m
> Remaining Estimate: 0h
>
> h3. Motivation
> Async IO is used by default to access a file system:
> {code}
> /** Use an asynchronous file I/O operations provider. */
> @Value(hasDefault = true)
> public boolean useAsyncFileIoFactory = true;
> {code}
> This approach assumes that we read/write the file asynchronously (in the
> other threads) and then handle a result in the callback. Callbacks will be
> handled in the default thread pool if we do not determine it when a file
> channel opens.
> {code}
> public AsyncFileIo(Path filePath, OpenOption... modes) throws IOException
> {
> ch = AsynchronousFileChannel.open(filePath, modes);
> }
> {code}
> h3. Definition of done
> Async IO callbacks should be handled in Ignite pool (create a new one or use
> one of the already existing ones).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)