You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Minder (JIRA)" <ji...@apache.org> on 2014/03/14 16:38:42 UTC
[jira] [Updated] (KNOX-309) Attempt to reparse topology files to
recover from overlapping write
[ https://issues.apache.org/jira/browse/KNOX-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Minder updated KNOX-309:
------------------------------
Description:
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.
> 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
>
>
> 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)