code: static boolean essentiallyEqualsTo(RedisNodeDescription o1, RedisNodeDescription o2) {
  
          if (o2 == null) {
              return false;
          }
  
          if (o1.getRole() != o2.getRole()) {
              return false;
          }
  
          if (!o1.getUri().equals(o2.getUri())) {
              return false;
          }
  
          return true;
      }
docs: Check for {@code MASTER} or {@code SLAVE} roles and the URI.
  
  @param o1 the first object to be compared.
  @param o2 the second object to be compared.
  @return {@literal true} if {@code MASTER} or {@code SLAVE} flags changed or the URI changed.