Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-3314

RedisIO: RedisConnectionConfiguration withEndpoint does not set host correctly.

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 2.2.0
    • 2.6.0
    • io-java-redis
    • None

    Description

          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();
          }
      

      think because setConnectionConfiguration sets the object back into the builder, the second set was overwriting the effects of setting the host.

      Attachments

        Activity

          People

            vvarma Vinay varma
            vvarma Vinay varma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h
                3h