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 25F19200B40 for ; Thu, 16 Jun 2016 13:17:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 24E46160A51; Thu, 16 Jun 2016 11:17:07 +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 9B116160A60 for ; Thu, 16 Jun 2016 13:17:06 +0200 (CEST) Received: (qmail 94381 invoked by uid 500); 16 Jun 2016 11:17:05 -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 94354 invoked by uid 99); 16 Jun 2016 11:17:05 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2016 11:17:05 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3FF912C1F62 for ; Thu, 16 Jun 2016 11:17:05 +0000 (UTC) Date: Thu, 16 Jun 2016 11:17:05 +0000 (UTC) From: "Alexei Scherbakov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-3326) Map-reduce query waits for rebalancing forever when it's disabled. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 16 Jun 2016 11:17:07 -0000 Alexei Scherbakov created IGNITE-3326: ----------------------------------------- Summary: Map-reduce query waits for rebalancing forever when it's disabled. Key: IGNITE-3326 URL: https://issues.apache.org/jira/browse/IGNITE-3326 Project: Ignite Issue Type: Bug Reporter: Alexei Scherbakov Priority: Minor The code below doesn't print anything: {code} public static void main(String[] args) throws IgniteException { Ignite start = Ignition.start(new IgniteConfiguration()); CacheConfiguration cfg = new CacheConfiguration<>(); cfg.setRebalanceMode(CacheRebalanceMode.NONE); cfg.setCacheMode(CacheMode.PARTITIONED); cfg.setName("test"); cfg.setIndexedTypes(Integer.class, Person.class); IgniteCache cache = start.createCache(cfg); cache.put(1, new Person(1L, "Test 1", "Test 1")); cache.put(2, new Person(1L, "Test 2", "Test 2")); cache.put(3, new Person(1L, "Test 3", "Test 3")); QueryCursor> query = cache.query(new SqlQuery(Person.class, "_key >= 0")); List> all = query.getAll(); System.out.println(all); } {code} Suggested fix: disable reservation if rebalancing is disabled. In GridMapQueryExecutor.reservePartitions add if (cctx.isLocal() || !cctx.rebalanceEnabled()) continue; -- This message was sent by Atlassian JIRA (v6.3.4#6332)