[ 
https://issues.apache.org/jira/browse/BEAM-3314?focusedWorklogId=114352&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-114352
 ]

ASF GitHub Bot logged work on BEAM-3314:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Jun/18 14:37
            Start Date: 21/Jun/18 14:37
    Worklog Time Spent: 10m 
      Work Description: iemejia opened a new pull request #5714: [BEAM-3314] 
Set correctly host and port on RedisIO
URL: https://github.com/apache/beam/pull/5714
 
 
   R: @jbonofre or @aromanenko-dev 
   CC: @vvarma

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 114352)
    Time Spent: 2h 50m  (was: 2h 40m)

> 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
>          Time Spent: 2h 50m
>  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)

Reply via email to