Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 7D12410BA1 for ; Tue, 19 Nov 2013 20:23:22 +0000 (UTC) Received: (qmail 98848 invoked by uid 500); 19 Nov 2013 20:23:22 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 98770 invoked by uid 500); 19 Nov 2013 20:23:22 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 98762 invoked by uid 99); 19 Nov 2013 20:23:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Nov 2013 20:23:22 +0000 Date: Tue, 19 Nov 2013 20:23:22 +0000 (UTC) From: "Colin Patrick McCabe (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5511) improve CacheManipulator interface to allow better unit testing 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/HDFS-5511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13826903#comment-13826903 ] Colin Patrick McCabe commented on HDFS-5511: -------------------------------------------- Findbugs warnings are HADOOP-10116, not related to this change. Will commit shortly based on Andrew's +1. > improve CacheManipulator interface to allow better unit testing > --------------------------------------------------------------- > > Key: HDFS-5511 > URL: https://issues.apache.org/jira/browse/HDFS-5511 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: datanode > Affects Versions: 3.0.0 > Reporter: Colin Patrick McCabe > Assignee: Colin Patrick McCabe > Attachments: HDFS-5511.001.patch, HDFS-5511.002.patch > > > The CacheManipulator interface has been helpful in allowing us to stub out {{mlock}} in cases where we don't want to test it. We should move the {{getMemlockLimit}} and {{getOperatingSystemPageSize}} functions into this interface as well so that we don't have to skip these tests on machines where these methods would ordinarily not work for us. -- This message was sent by Atlassian JIRA (v6.1#6144)