[infinispan-issues] [JBoss JIRA] (ISPN-9217) Interrupted thread should result in InterruptedException being sent back

Galder Zamarreño (JIRA) issues at jboss.org
Tue May 29 11:00:00 EDT 2018


Galder Zamarreño created ISPN-9217:
--------------------------------------

             Summary: Interrupted thread should result in InterruptedException being sent back
                 Key: ISPN-9217
                 URL: https://issues.jboss.org/browse/ISPN-9217
             Project: Infinispan
          Issue Type: Bug
          Components: Remote Protocols
    Affects Versions: 9.1.7.Final
            Reporter: Galder Zamarreño
            Assignee: Galder Zamarreño
             Fix For: 9.1.8.Final


If a pre-netty Hot Rod client gets interrupted, it will result in an IllegalStateException.

This is because finding an interrupted thread returns a negative value, which RetryOnFailureOperation will result in not retrying and throwing IllegalStateException (see [here|https://github.com/infinispan/infinispan/blob/9.1.x/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/operations/RetryOnFailureOperation.java] and [here|https://github.com/infinispan/infinispan/blob/9.1.x/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/transport/tcp/TcpTransportFactory.java#L473] 



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the infinispan-issues mailing list