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 80CD1200BEA for ; Mon, 12 Dec 2016 20:58:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7F72D160B1A; Mon, 12 Dec 2016 19:58:47 +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 C8BFA160B22 for ; Mon, 12 Dec 2016 20:58:46 +0100 (CET) Received: (qmail 24158 invoked by uid 500); 12 Dec 2016 19:58:46 -0000 Mailing-List: contact dev-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 dev@ignite.apache.org Received: (qmail 23715 invoked by uid 99); 12 Dec 2016 19:58:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2016 19:58:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 278FF1AA950 for ; Mon, 12 Dec 2016 19:58:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.998 X-Spam-Level: * X-Spam-Status: No, score=1.998 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=evam-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id F0d-MPxX8ayI for ; Mon, 12 Dec 2016 19:58:43 +0000 (UTC) Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id CFBA95FD23 for ; Mon, 12 Dec 2016 19:58:42 +0000 (UTC) Received: by mail-qk0-f171.google.com with SMTP id x190so94809259qkb.0 for ; Mon, 12 Dec 2016 11:58:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=evam-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=719yLvG3Ju47Th6c+vTNxE8znxD8OkZX5saQQMPtID4=; b=Mgyj7ZE9iN9IonmIsb50Gb56WKjsOh/35ubcXUXkj9J1UROHpPBXpa28suuCTDSXFY qTkJrlty+DpmBhJOGDDKzLR2vDF0PdiXC01PIDNCCP+aog/9ng5JmAMzHcMsUcwiWrRZ 1eG1id5dIifaR+QbzNu8agRq46HGoCWZXsl6jvfQ4kbfuzx1ibfT9i37yzNDUi/wpx9s wAzBgJdlyz3JxXAK9/FAhsYTCb32DNSy1H6UDbhTigZNRjszVGy7jCo/l/bIY4tL5tEA y5asMfFRrUwZyJU93kZNE6aUwpHOhPuLQ3rRDxcW7wcoHWxYrhasjkvqbXrjU0w+ojq3 /jZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=719yLvG3Ju47Th6c+vTNxE8znxD8OkZX5saQQMPtID4=; b=RWTm5RJxSK7EMnpLJw6uVi7+QgOkt4UQyYQGph0AQYA9/85CBJjINSrAAZQrIcwjND GaVjA/CD4JNPJ9QOrZFCMDSyaDD2uSP/nyc+8MSXaHyjaG/ucflyAIZFkCV4FfklDLl0 QduIt4E2y7opkyyCCDs6IZ/+9ItcP84bRwPxTivju0Q+16ckVHy241PgWifjI1SAcWA7 9aa+LUQn89rHqSdCc/eX77NjYm3wtpMByem9Xl7ou9oXJebCQy3xbG34GAj8MXhAJVNi s+q47pbEDsi/8oHH2z3IbpO22F0HamrmeQbOpL3OfDqnQz0cfuMaZa+ygB41WnpjCV26 6pxg== X-Gm-Message-State: AKaTC03iQ4o3X6a0XIf5hYZbBdr+c7y+Ar1W46uW8JSa5yc2u6DD+t4ZUkKe8Zu3stDYFCCeOV46XasjZ6xu+A== X-Received: by 10.55.106.134 with SMTP id f128mr90512710qkc.121.1481572722490; Mon, 12 Dec 2016 11:58:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.172.251 with HTTP; Mon, 12 Dec 2016 11:58:42 -0800 (PST) In-Reply-To: References: From: Alper Tekinalp Date: Mon, 12 Dec 2016 22:58:42 +0300 Message-ID: Subject: Re: NullPointerException on ScanQuery To: user@ignite.apache.org Cc: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a114fddf6d58cd605437b8721 archived-at: Mon, 12 Dec 2016 19:58:47 -0000 --001a114fddf6d58cd605437b8721 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > > Hi, > Hi Andrey. First of all thanks for your responces. First of all you have races in your code. For example your start two > threads and destroy caches before thread is finished and it leads to > cache closed error. It is of course reasonable to get "cache closed" errors in that case and I am OK with that. > Moreover, you stops application before any thread > finished and it leads to topology changing and NPE. > Correct me if I am wrong but I dont think that is true. NPE occurs before stopping the application. Hence, before any topology changes. I can understand that this error occurs in a topology change but in that case it is not. > The second, I don't understand why do you use threads at all? Usually > you should start Ignite cluster, connect to it using client node and > run scan query. > > Starting of several instances of Ignite in one JVM makes sense only > for test purposes. Anyway, you should start Ignite instances, creates > caches and after it run threads with your tasks. Actually this is a test code I try to simulate our real use case. In our application we have two server nodes that internally running in our application and we run scan query in that server nodes. In some cases both of the servers destroy cache and I expect to get the cache closed errors. But not NPEs because there is no change in topology. Again thanks for your responses. Regards. --=20 Alper Tekinalp Software Developer Evam Streaming Analytics Atat=C3=BCrk Mah. Turgut =C3=96zal Bulv. Gardenya 5 Plaza K:6 Ata=C5=9Fehir 34758 =C4=B0STANBUL Tel: +90 216 455 01 53 Fax: +90 216 455 01 54 www.evam.com.tr --001a114fddf6d58cd605437b8721--