Return-Path: X-Original-To: apmail-giraph-dev-archive@www.apache.org Delivered-To: apmail-giraph-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 81737DEB9 for ; Tue, 30 Oct 2012 23:28:13 +0000 (UTC) Received: (qmail 70707 invoked by uid 500); 30 Oct 2012 23:28:13 -0000 Delivered-To: apmail-giraph-dev-archive@giraph.apache.org Received: (qmail 70645 invoked by uid 500); 30 Oct 2012 23:28:13 -0000 Mailing-List: contact dev-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@giraph.apache.org Delivered-To: mailing list dev@giraph.apache.org Received: (qmail 70575 invoked by uid 500); 30 Oct 2012 23:28:13 -0000 Delivered-To: apmail-incubator-giraph-dev@incubator.apache.org Received: (qmail 70541 invoked by uid 99); 30 Oct 2012 23:28:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 23:28:13 +0000 Date: Tue, 30 Oct 2012 23:28:13 +0000 (UTC) From: "Alessandro Presta (JIRA)" To: giraph-dev@incubator.apache.org Message-ID: <1606323886.47688.1351639693124.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (GIRAPH-393) Number of input split threads should always be >= 1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Alessandro Presta created GIRAPH-393: ---------------------------------------- Summary: Number of input split threads should always be >= 1 Key: GIRAPH-393 URL: https://issues.apache.org/jira/browse/GIRAPH-393 Project: Giraph Issue Type: Bug Reporter: Alessandro Presta Assignee: Alessandro Presta When the number of input splits is less than the number of workers, integer division in the following snippet means we end up with 0: {code} int maxInputSplitThreads = inputSplitPathList.size() / getConfiguration().getMaxWorkers(); int numThreads = Math.min(getConfiguration().getNumInputSplitsThreads(), maxInputSplitThreads); {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira