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 3E941200BD0 for ; Tue, 15 Nov 2016 20:42:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3A55F160B03; Tue, 15 Nov 2016 19:42:00 +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 84772160AF2 for ; Tue, 15 Nov 2016 20:41:59 +0100 (CET) Received: (qmail 57995 invoked by uid 500); 15 Nov 2016 19:41:58 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 57970 invoked by uid 99); 15 Nov 2016 19:41:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2016 19:41:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 786F32C4C70 for ; Tue, 15 Nov 2016 19:41:58 +0000 (UTC) Date: Tue, 15 Nov 2016 19:41:58 +0000 (UTC) From: "Saikat Maitra (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-4103) IgniteDataStreamer doesn't throw exception if cache is destroyed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 15 Nov 2016 19:42:00 -0000 [ https://issues.apache.org/jira/browse/IGNITE-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15668065#comment-15668065 ] Saikat Maitra commented on IGNITE-4103: --------------------------------------- [~avinogradov] Hi Anton, I verified that in DataStreamProcessor #localUpdate() the check is present for cache but it is not present in IgniteCacheObjectProcessorImpl #partition() method. Can you please rethrow the IgniteCheckedException in the above partition() method. Regards, Saikat > IgniteDataStreamer doesn't throw exception if cache is destroyed > ---------------------------------------------------------------- > > Key: IGNITE-4103 > URL: https://issues.apache.org/jira/browse/IGNITE-4103 > Project: Ignite > Issue Type: Bug > Components: cache > Affects Versions: 1.7 > Reporter: Valentin Kulichenko > Assignee: Saikat Maitra > Fix For: 1.8 > > Attachments: StreamerTest.java > > > Test reproducing the issue is attached. > When a streamer streams the data and someone concurrently destroys the cache, {{addData}} doesn't throw an exception. Code continues to work and a lot of messages like this appear in the log: > {noformat} > [12:20:38,451][ERROR][main][CacheObjectBinaryProcessorImpl] Failed to get partition > {noformat} > The problematic code is in {{IgniteCacheObjectProcessorImpl.partition(...)}} method: > {code} > try { > return cctx != null ? > cctx.affinity().partition(obj, false) : > ctx.kernalContext().affinity().partition0(ctx.cacheName(), obj, null); > } > catch (IgniteCheckedException e) { > U.error(log, "Failed to get partition"); > return -1; > } > {code} > There are two issues here: > # Exception is completely ignored, it's not even printed out in {{U.error}}. > # The exception should be actually rethrown so that streamer can stop adding data. -- This message was sent by Atlassian JIRA (v6.3.4#6332)