Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 73442 invoked from network); 20 Oct 2008 05:03:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Oct 2008 05:03:36 -0000 Received: (qmail 21466 invoked by uid 500); 20 Oct 2008 05:03:38 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 20818 invoked by uid 500); 20 Oct 2008 05:03:37 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 20807 invoked by uid 99); 20 Oct 2008 05:03:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Oct 2008 22:03:37 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 05:02:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 54B73234C234 for ; Sun, 19 Oct 2008 22:02:44 -0700 (PDT) Message-ID: <322240572.1224478964345.JavaMail.jira@brutus> Date: Sun, 19 Oct 2008 22:02:44 -0700 (PDT) From: "dhruba borthakur (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-4397) fuse-dfs causes corruptions on multi-threaded access In-Reply-To: <1844616353.1223744744198.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-4397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] dhruba borthakur updated HADOOP-4397: ------------------------------------- Status: Patch Available (was: Open) I will commit it to the 0.18 and 0.19 branch as well as trunk. > fuse-dfs causes corruptions on multi-threaded access > ---------------------------------------------------- > > Key: HADOOP-4397 > URL: https://issues.apache.org/jira/browse/HADOOP-4397 > Project: Hadoop Core > Issue Type: Bug > Components: contrib/fuse-dfs > Affects Versions: 0.18.1, 0.18.0 > Reporter: Brian Bockelman > Assignee: Pete Wyckoff > Priority: Blocker > Fix For: 0.18.2 > > Attachments: HADOOP-4397.2.txt, HADOOP-4397.3.txt, HADOOP-4397.4.txt, hadoop-4397.out, hadoop-4397.patch > > > If multiple threads in the same process perform file system reads, then fuse-dfs causes various problems due to the per-context buffer. I've seen this reflected in segmentation violations and corruptions. > I'll attach a proposed patch which takes the "easy way" out - I surround all calls to dfs_read with a mutex. You will obviously get performance degradations through thrashing if the threads are reading different parts of the file (but for our application, the multi-threaded reads are very, very infrequent. > If we want to have fuse-dfs writes/reads in 0.19 or 0.20, we'll probably need to do the same thing with writes. > This patch could be easily integrated as stands, or a more elaborate approach could be taken - per-thread buffers maybe? > Thanks as always for looking into this, > Brian -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.