]
Frank Suchy updated ISPN-5194:
------------------------------
Priority: Major (was: Blocker)
HotRod client using protocolVersion "1.3" sends 2.0 0x29
code
-------------------------------------------------------------
Key: ISPN-5194
URL:
https://issues.jboss.org/browse/ISPN-5194
Project: Infinispan
Issue Type: Bug
Affects Versions: 7.0.3.Final
Environment: Redhat Linux 2.6.18-400.1.1.el5 #1 SMP Sun Dec 14 06:01:17 EST 2014
x86_64 x86_64 x86_64 GNU/Linux
Reporter: Frank Suchy
Labels: hotrod-java-client
While testing the 7.0.3 HotRod client, I ran into a cluster view issue (that's for
another bug report) so I attempted to work around it by specifying protocol version 1.3 by
calling configurationBuilder.protocolVersion("1.3")
One of the operations used by the HotRod client is cache.isEmpty().
This call resulted in the HotRod client sending code 0x29 (41) to the server. The
server rightly rejected it, so the client threw an exception.
Below is a snippet from the HotRod client. Note that Codec13 is setting the operation
code to 0x29.
[2015-01-26 18:53:04,456 TRACE he_Timer-1 undRobinBalancingStrategy] Returning server:
/10.22.6.227:11222
[2015-01-26 18:53:04,456 TRACE he_Timer-1 TcpTransportFactory ] Using the balancer
for determining the server: /10.22.6.227:11222
[2015-01-26 18:53:04,456 TRACE he_Timer-1 TransportObjectFactory ] Fetching from pool:
TcpTransport{socket=Socket[addr=/10.22.6.227,port=11222,localport=59868],
serverAddress=/10.22.6.227:11222, id =93}
[2015-01-26 18:53:04,456 TRACE he_Timer-1 TcpTransportFactory ] For server
/10.22.6.227:11222: active = 1; idle = 0
[2015-01-26 18:53:04,456 TRACE he_Timer-1 Codec13 ] Wrote header for
message 3035. Operation code: 0x29. Flags: 0x0
[2015-01-26 18:53:04,458 TRACE he_Timer-1 Codec13 ] Received response
for message id: 3035
[2015-01-26 18:53:04,458 TRACE he_Timer-1 Codec13 ] Received operation
status: 0x82
[2015-01-26 18:53:04,458 TRACE he_Timer-1 AbstractTransport ] Read string is:
org.infinispan.server.hotrod.HotRodUnknownOperationException: Unknown operation: 41
[2015-01-26 18:53:04,458 WARN he_Timer-1 Codec13 ] ISPN004005: Error
received from the server: org.infinispan.server.hotrod.HotRodUnknownOperationException:
Unknown operation: 41
[2015-01-26 18:53:04,459 TRACE he_Timer-1 TcpTransportFactory ] Dropping connection
as it is no longer valid:
TcpTransport{socket=Socket[addr=/10.22.6.227,port=11222,localport=59868],
serverAddress=/10.22.6.227:11222, id =93}
[2015-01-26 18:53:04,459 TRACE he_Timer-1 TransportObjectFactory ] About to destroy tcp
transport: TcpTransport{socket=Socket[addr=/10.22.6.227,port=11222,localport=59868],
serverAddress=/10.22.6.227:11222, id =93}