Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 45590 invoked from network); 5 Mar 2008 16:40:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2008 16:40:56 -0000 Received: (qmail 81787 invoked by uid 500); 5 Mar 2008 16:40:51 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 81768 invoked by uid 500); 5 Mar 2008 16:40:51 -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 81759 invoked by uid 99); 5 Mar 2008 16:40:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 08:40:51 -0800 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; Wed, 05 Mar 2008 16:40:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A9934234C084 for ; Wed, 5 Mar 2008 08:39:40 -0800 (PST) Message-ID: <52202669.1204735180693.JavaMail.jira@brutus> Date: Wed, 5 Mar 2008 08:39:40 -0800 (PST) From: "Nigel Daley (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Assigned: (HADOOP-742) JobConf needs better javadoc 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-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nigel Daley reassigned HADOOP-742: ---------------------------------- Assignee: (was: Nigel Daley) > JobConf needs better javadoc > ---------------------------- > > Key: HADOOP-742 > URL: https://issues.apache.org/jira/browse/HADOOP-742 > Project: Hadoop Core > Issue Type: Bug > Components: mapred > Affects Versions: 0.8.0 > Reporter: Nigel Daley > Priority: Minor > > The org.apache.hadoop.mapred.JobConf class needs better javadoc comments. > In general terms, these guidelines should be followed: > - http://java.sun.com/j2se/javadoc/writingdoccomments/#styleguide > - document the unchecked exceptions that the caller might reasonably want to catch > - use font appropriately (detailed in link above) > - document default values and appropriate configuration file properties > - comments, tags, links, etc used consistently across API > In particular, the javadoc for this class should at least answer these questions: > - all constructors: what happens if the supplied class, file path, or configuration doesn't exist or is null? > - JobConf() constructor: where are default values loaded from? > - JobConf(Configuration) constructor: indicate that this is effectively a copy constructor > - JobConf(String) constructor: are there any format requirements on the string? local and dfs paths allowed? > - setter methods that take a path: what happens if the path doesn't exist? > - getter methods returning objects: if value has not been set, is null returned or something else? > - are JobConf objects immutable? If not, why not? > - setNum*Tasks: is this per TaskTracker? or something else? > - methods that take a Path: what if the path is relative? > - setWorkingDirectory: is this deleted at the end of a job? should it be local or dfs? > - *KeepFailedTaskFiles: if they are kept, where can they be found? > - *KeepTaskFilesPattern: what does "the files" mean? if they are kept, where can they be found? > - deleteLocalFiles: undoubtedly a risky operation. Need a good spec. Is it a recursive delete? > - which configuration entries are mandatory (i.e. must be set before submitting the job)? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.