Skip to content

Commit

Permalink
Fix compilation for core-io changes
Browse files Browse the repository at this point in the history
Change-Id: I832ba80e5cf4ddf1e99970c7b0c196a2c6421b84
Reviewed-on: http://review.couchbase.org/110038
Reviewed-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
Tested-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
  • Loading branch information
daschl authored and Michael Nitschinger committed Jun 3, 2019
1 parent a2e3892 commit 5269b8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,9 @@ public Observable<BucketSettings> call(ClusterInfo clusterInfo) {
}

Observable<Boolean> sendAddNodeRequest(final InetSocketAddress address) {
final NetworkAddress networkAddress = NetworkAddress.create(CouchbaseAsyncCluster.ALLOW_HOSTNAMES_AS_SEED_NODES ?
final String networkAddress = CouchbaseAsyncCluster.ALLOW_HOSTNAMES_AS_SEED_NODES ?
address.getHostName() :
address.getAddress().getHostAddress());
address.getAddress().getHostAddress();
return core.<AddNodeResponse>send(new AddNodeRequest(networkAddress))
.flatMap(new Func1<AddNodeResponse, Observable<AddServiceResponse>>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ public Boolean call(NodeInfo nodeInfo) {
@Override
public Observable<GenericQueryResponse> call(NodeInfo nodeInfo) {
try {
InetAddress hostname = InetAddress.getByName(nodeInfo.hostname().address());
InetAddress hostname = InetAddress.getByName(nodeInfo.hostname());
final GenericQueryRequest req = createN1qlRequest(query, bucket, username, password, hostname);
return deferAndWatch(new Func1<Subscriber, Observable<? extends GenericQueryResponse>>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public InetAddress replicaNodeForId(final String id, int replicaNum) {
throw new IllegalStateException("Replica not configured for this bucket.");
}
try {
return InetAddress.getByName(cbc.nodeAtIndex(nodeId).hostname().address());
return InetAddress.getByName(cbc.nodeAtIndex(nodeId).hostname());
} catch (UnknownHostException e) {
throw new IllegalStateException(e);
}
Expand All @@ -175,7 +175,7 @@ public List<InetAddress> nodes() {
BucketConfig config = bucketConfig.get();
for (NodeInfo nodeInfo : config.nodes()) {
try {
allNodes.add(InetAddress.getByName(nodeInfo.hostname().address()));
allNodes.add(InetAddress.getByName(nodeInfo.hostname()));
} catch (UnknownHostException e) {
throw new IllegalStateException(e);
}
Expand All @@ -190,7 +190,7 @@ private static InetAddress nodeForIdOnCouchbaseBucket(final String id, final Cou
throw new IllegalStateException("No partition assigned to node for Document ID: " + id);
}
try {
return InetAddress.getByName(config.nodeAtIndex(nodeId).hostname().address());
return InetAddress.getByName(config.nodeAtIndex(nodeId).hostname());
} catch (UnknownHostException e) {
throw new IllegalStateException(e);
}
Expand All @@ -207,7 +207,7 @@ private static InetAddress nodeForIdOnMemcachedBucket(final String id, final Mem
}
}
try {
return InetAddress.getByName(config.ketamaNodes().get(hash).hostname().address());
return InetAddress.getByName(config.ketamaNodes().get(hash).hostname());
} catch (UnknownHostException e) {
throw new IllegalStateException(e);
}
Expand Down

0 comments on commit 5269b8f

Please sign in to comment.