Return-Path: X-Original-To: apmail-tez-issues-archive@minotaur.apache.org Delivered-To: apmail-tez-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7360A17801 for ; Thu, 2 Jul 2015 22:44:05 +0000 (UTC) Received: (qmail 82477 invoked by uid 500); 2 Jul 2015 22:44:05 -0000 Delivered-To: apmail-tez-issues-archive@tez.apache.org Received: (qmail 82321 invoked by uid 500); 2 Jul 2015 22:44:05 -0000 Mailing-List: contact issues-help@tez.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tez.apache.org Delivered-To: mailing list issues@tez.apache.org Received: (qmail 82151 invoked by uid 99); 2 Jul 2015 22:44:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2015 22:44:05 +0000 Date: Thu, 2 Jul 2015 22:44:05 +0000 (UTC) From: "Rajesh Balamohan (JIRA)" To: issues@tez.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEZ-2575) Handle KeyValue pairs size which do not fit in a single block MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TEZ-2575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612636#comment-14612636 ] Rajesh Balamohan commented on TEZ-2575: --------------------------------------- lgtm. Thanks [~saikatr]. One very minor comment - "conf.setBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_ENABLE_FINAL_MERGE_IN_OUTPUT, false);" has to be reset to false after testExceedsKVWithMultiplePartitions(). Otherwise other tests could be running with the same setting. Sorry, should have caught this in earlier patch. > Handle KeyValue pairs size which do not fit in a single block > ------------------------------------------------------------- > > Key: TEZ-2575 > URL: https://issues.apache.org/jira/browse/TEZ-2575 > Project: Apache Tez > Issue Type: Improvement > Reporter: Saikat > Assignee: Saikat > Attachments: TEZ-2575.1.patch, TEZ-2575.2.patch, TEZ-2575.3.patch, TEZ-2575.patch > > > In the present implementation, the available buffer is divided into blocks (specified in the constructor for pipeline sort). and a linked list of these block byte buffers is maintained. > A span is created out of the buffers. > The present logic, doesnot handle scenario where a single key-value pair size doesnot fit into any of the blocks. > example if 1mb total memory is divided into 4 blocks, (256 kb each), > if a single KV pair is greater than the blocksize(~ignoring meta data size), > then it fails with buffer exceptions. -- This message was sent by Atlassian JIRA (v6.3.4#6332)