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 9A4CD200D3B for ; Fri, 10 Nov 2017 20:59:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 98B19160BEE; Fri, 10 Nov 2017 19:59:11 +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 E0272160BE0 for ; Fri, 10 Nov 2017 20:59:10 +0100 (CET) Received: (qmail 39502 invoked by uid 500); 10 Nov 2017 19:59:10 -0000 Mailing-List: contact issues-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 issues@geode.apache.org Received: (qmail 39493 invoked by uid 99); 10 Nov 2017 19:59:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2017 19:59:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 23C62183EA4 for ; Fri, 10 Nov 2017 19:59:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id yEeW5WAXxneu for ; Fri, 10 Nov 2017 19:59:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 811A360E3F for ; Fri, 10 Nov 2017 19:59:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 39514E0E4D for ; Fri, 10 Nov 2017 19:59:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 464AD240E6 for ; Fri, 10 Nov 2017 19:59:00 +0000 (UTC) Date: Fri, 10 Nov 2017 19:59:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-3149) Protobuf protocol module will throw exceptions on some input MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Nov 2017 19:59:11 -0000 [ https://issues.apache.org/jira/browse/GEODE-3149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16247989#comment-16247989 ] ASF GitHub Bot commented on GEODE-3149: --------------------------------------- dgkimura commented on a change in pull request #148: GEODE-3149: Removing the VectorT.hpp header file and typedefs URL: https://github.com/apache/geode-native/pull/148#discussion_r150325113 ########## File path: cppcache/include/geode/CacheLoader.hpp ########## @@ -67,8 +68,8 @@ class CPPCACHE_EXPORT CacheLoader { * *@see Region::get . */ - virtual CacheablePtr load(const RegionPtr& rp, const CacheableKeyPtr& key, - const SerializablePtr& aCallbackArgument) = 0; + virtual std::shared_ptr load(const std::shared_ptr& rp, const std::shared_ptr& key, + const std::shared_ptr& aCallbackArgument) = 0; Review comment: format ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org > Protobuf protocol module will throw exceptions on some input > ------------------------------------------------------------ > > Key: GEODE-3149 > URL: https://issues.apache.org/jira/browse/GEODE-3149 > Project: Geode > Issue Type: Bug > Components: client/server > Reporter: Brian Rowe > Fix For: 1.3.0 > > > The protobuf protocol handler needs to be able to handle any input on the incoming socket without crashing. > Right now closing the socket will cause a crash as we try to process a message from the empty stream (the bug here might be that the server connection shouldn't be trying to process a message here, but the protocol deserialization still needs to have much better error handling). > {code:java} > severe 2017/06/28 13:50:55.565 PDT tid=0x31] Uncaught exception in thread Thread[ServerConnection on port 22514 Thread 0,5,ServerConnection on port 22514] > java.lang.NullPointerException > at org.apache.geode.protocol.protobuf.ProtobufStreamProcessor.processOneMessage(ProtobufStreamProcessor.java:67) > at org.apache.geode.protocol.protobuf.ProtobufStreamProcessor.receiveMessage(ProtobufStreamProcessor.java:79) > at org.apache.geode.internal.cache.tier.sockets.GenericProtocolServerConnection.doOneMessage(GenericProtocolServerConnection.java:68) > at org.apache.geode.internal.cache.tier.sockets.ServerConnection.run(ServerConnection.java:1155) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at org.apache.geode.internal.cache.tier.sockets.AcceptorImpl$1$1.run(AcceptorImpl.java:552) > at java.lang.Thread.run(Thread.java:748) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)