[
https://issues.apache.org/jira/browse/BEAM-3314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré resolved BEAM-3314.
----------------------------------------
Resolution: Fixed
Fix Version/s: 2.6.0
> RedisIO: RedisConnectionConfiguration withEndpoint does not set host
> correctly.
> -------------------------------------------------------------------------------
>
> Key: BEAM-3314
> URL: https://issues.apache.org/jira/browse/BEAM-3314
> Project: Beam
> Issue Type: Bug
> Components: io-java-redis
> Affects Versions: 2.2.0
> Reporter: Vinay varma
> Assignee: Vinay varma
> Priority: Minor
> Fix For: 2.6.0
>
> Time Spent: 3h
> Remaining Estimate: 0h
>
> {code:java}
> public Read withEndpoint(String host, int port) {
> checkArgument(host != null, "host can not be null");
> checkArgument(port > 0, "port can not be negative or 0");
> return builder()
>
> .setConnectionConfiguration(connectionConfiguration().withHost(host))
>
> .setConnectionConfiguration(connectionConfiguration().withPort(port))
> .build();
> }
> {code}
> think because setConnectionConfiguration sets the object back into the
> builder, the second set was overwriting the effects of setting the host.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)