[ https://issues.apache.org/jira/browse/KNOX-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kevin Minder resolved KNOX-309.
-------------------------------
Resolution: Fixed
> 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)
|