[infinispan-issues] [JBoss JIRA] (ISPN-7691) infinispan.client.hotrod.protocol_version ignored
Katia Aresti (JIRA)
issues at jboss.org
Tue Apr 25 07:26:00 EDT 2017
[ https://issues.jboss.org/browse/ISPN-7691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397612#comment-13397612 ]
Katia Aresti commented on ISPN-7691:
------------------------------------
I managed to reproduce the code in TU. I didn't see the stack before because the code fails just logging the stack trace and I had a missing assertion.
The pb is that some code has been modified to use an Enumeration for this particular property.
So in order to map from String to Enum, Enum.valueOf(enumClass, value); is called. But the ProtocolVersion enumeration names are "PROTOCOL_VERSION_25" etc not "2.5", so it fails and returns the default Protocol Version. Unit test was missing for this property in the ConfigurationTest so nobody could see the pb before !
I'm doing a PR today that fixes the pb
Katia
> infinispan.client.hotrod.protocol_version ignored
> -------------------------------------------------
>
> Key: ISPN-7691
> URL: https://issues.jboss.org/browse/ISPN-7691
> Project: Infinispan
> Issue Type: Bug
> Reporter: Gustavo Fernandes
> Assignee: Katia Aresti
>
> Setting {{infinispan.client.hotrod.protocol_version}} via properties will not take effect due to a parsing error
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list