From dev-return-2791-apmail-knox-dev-archive=knox.apache.org@knox.apache.org Fri Mar 14 16:39:11 2014 Return-Path: X-Original-To: apmail-knox-dev-archive@minotaur.apache.org Delivered-To: apmail-knox-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 79A74C7A2 for ; Fri, 14 Mar 2014 16:39:11 +0000 (UTC) Received: (qmail 50976 invoked by uid 500); 14 Mar 2014 16:39:10 -0000 Delivered-To: apmail-knox-dev-archive@knox.apache.org Received: (qmail 50851 invoked by uid 500); 14 Mar 2014 16:39:09 -0000 Mailing-List: contact dev-help@knox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@knox.apache.org Delivered-To: mailing list dev@knox.apache.org Received: (qmail 50832 invoked by uid 99); 14 Mar 2014 16:39:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 16:39:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 14 Mar 2014 16:39:05 +0000 Received: (qmail 50198 invoked by uid 99); 14 Mar 2014 16:38:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 16:38:42 +0000 Date: Fri, 14 Mar 2014 16:38:42 +0000 (UTC) From: "Kevin Minder (JIRA)" To: dev@knox.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KNOX-309) Attempt to reparse topology files to recover from overlapping write MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/KNOX-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Minder updated KNOX-309: ------------------------------ Attachment: KNOX-309__Attempt_to_reparse_topology_files_to_recover_from_overlapping_write.patch > Attempt to reparse topology files to recover from overlapping write > ------------------------------------------------------------------- > > Key: KNOX-309 > URL: https://issues.apache.org/jira/browse/KNOX-309 > Project: Apache Knox > Issue Type: Bug > Components: Server > Affects Versions: 0.4.0 > Reporter: Kevin Minder > Assignee: Kevin Minder > Priority: Blocker > Fix For: 0.4.0 > > Attachments: KNOX-309__Attempt_to_reparse_topology_files_to_recover_from_overlapping_write.patch > > > In gateway-server/src/main/java/org/apache/hadoop/gateway/topology/file/FileTopologyProvider.java > method loadTopology there needs to be a loop from the digester.parse onward. Within the loop there should be a try/catch for IOException and SAXException. If either of these are caught there should be a small sleep (e.g. 50ms) and then the parse should be reattempted. There should be a timeout for the whole loop such that it gives up within a short period (e.g. 250ms) and rethrows the last IOException or SAXException encountered. -- This message was sent by Atlassian JIRA (v6.2#6252)