[jira] [Created] (IGNITE-9466) AsyncFileIO may not close channel after method close invocation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-9466) AsyncFileIO may not close channel after method close invocation

Anton Vinogradov (Jira)
Sergey Antonov created IGNITE-9466:
--------------------------------------

             Summary: AsyncFileIO may not close channel after method close invocation
                 Key: IGNITE-9466
                 URL: https://issues.apache.org/jira/browse/IGNITE-9466
             Project: Ignite
          Issue Type: Bug
            Reporter: Sergey Antonov


 
{code:java}
/** {@inheritDoc} */
@Override public void close() throws IOException {
    for (ChannelOpFuture asyncFut : asyncFuts) {
        try {
            asyncFut.getUninterruptibly(); // Ignore interrupts while waiting for channel close.
        }
        catch (IgniteCheckedException e) {
            throw new IOException(e);
        }
    }

    ch.close();
}{code}
If `asyncFut.getUninterruptibly()` throw exception, the channel associated with AsyncFileIO will not be closed.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)