Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D9DD520049B for ; Mon, 14 Aug 2017 18:44:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D89781657BD; Mon, 14 Aug 2017 16:44:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4FD911657BB for ; Mon, 14 Aug 2017 18:44:42 +0200 (CEST) Received: (qmail 18705 invoked by uid 500); 14 Aug 2017 16:44:41 -0000 Mailing-List: contact dev-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list dev@geode.apache.org Received: (qmail 18694 invoked by uid 99); 14 Aug 2017 16:44:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2017 16:44:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 01A9FE96E9; Mon, 14 Aug 2017 16:44:41 +0000 (UTC) From: pivotal-amurmann To: dev@geode.apache.org Reply-To: dev@geode.apache.org References: In-Reply-To: Subject: [GitHub] geode pull request #700: GEODE-3386 - Make KeyedErrorResponse & ErrorRespons... Content-Type: text/plain Message-Id: <20170814164441.01A9FE96E9@git1-us-west.apache.org> Date: Mon, 14 Aug 2017 16:44:41 +0000 (UTC) archived-at: Mon, 14 Aug 2017 16:44:43 -0000 Github user pivotal-amurmann commented on a diff in the pull request: https://github.com/apache/geode/pull/700#discussion_r133000153 --- Diff: geode-protobuf/src/main/java/org/apache/geode/protocol/protobuf/operations/GetAllRequestOperationHandler.java --- @@ -59,13 +59,14 @@ } return Success.of(RegionAPI.GetAllResponse.newBuilder().addAllEntries(entries).build()); } catch (UnsupportedEncodingTypeException ex) { - return Failure.of(BasicTypes.ErrorResponse.newBuilder() - .setErrorCode(ProtocolErrorCode.VALUE_ENCODING_ERROR.codeValue) - .setMessage("Encoding not supported.").build()); + int errorCode = ProtocolErrorCode.VALUE_ENCODING_ERROR.codeValue; + String message = "Encoding not supported."; + return Failure.of(ProtobufResponseUtilities.makeErrorResponse(errorCode, message)); --- End diff -- good catch! The variables were supposed to be temporary to enable IntelliJ's refactoring. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---