Return-Path: X-Original-To: apmail-curator-commits-archive@minotaur.apache.org Delivered-To: apmail-curator-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DBF6CC9C2 for ; Mon, 5 Jan 2015 15:06:42 +0000 (UTC) Received: (qmail 66599 invoked by uid 500); 5 Jan 2015 15:06:38 -0000 Delivered-To: apmail-curator-commits-archive@curator.apache.org Received: (qmail 66565 invoked by uid 500); 5 Jan 2015 15:06:38 -0000 Mailing-List: contact commits-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list commits@curator.apache.org Received: (qmail 66552 invoked by uid 99); 5 Jan 2015 15:06:38 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2015 15:06:38 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 94FDAA3FA40; Mon, 5 Jan 2015 15:06:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: randgalt@apache.org To: commits@curator.apache.org Date: Mon, 05 Jan 2015 15:06:38 -0000 Message-Id: <85d9d9b7a2a24fbf81af0281edbe8b47@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] curator git commit: updateService() doesn't need to validate the service exists in the local services cache Repository: curator Updated Branches: refs/heads/master 3eea67600 -> 37dc44785 updateService() doesn't need to validate the service exists in the local services cache Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/742e0927 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/742e0927 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/742e0927 Branch: refs/heads/master Commit: 742e092756722f34276d55cfb139d20aa681b908 Parents: 3eea676 Author: randgalt Authored: Tue Dec 30 14:26:46 2014 -0500 Committer: randgalt Committed: Tue Dec 30 14:26:46 2014 -0500 ---------------------------------------------------------------------- .../apache/curator/x/discovery/details/ServiceDiscoveryImpl.java | 2 -- 1 file changed, 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/742e0927/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java ---------------------------------------------------------------------- diff --git a/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java b/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java index ad6ce89..a55f678 100644 --- a/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java +++ b/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceDiscoveryImpl.java @@ -173,8 +173,6 @@ public class ServiceDiscoveryImpl implements ServiceDiscovery @Override public void updateService(ServiceInstance service) throws Exception { - Preconditions.checkArgument(services.containsKey(service.getId()), "Service is not registered: " + service); - byte[] bytes = serializer.serialize(service); String path = pathForInstance(service.getName(), service.getId()); client.setData().forPath(path, bytes);