accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ACCUMULO-2327) Better handling of NoSuchMethodException in DfsLogger#open()
Date Tue, 10 Jun 2014 15:38:02 GMT

     [ https://issues.apache.org/jira/browse/ACCUMULO-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Josh Elser resolved ACCUMULO-2327.
----------------------------------

    Resolution: Won't Fix

This was recently changed in ACCUMULO-2858

> Better handling of NoSuchMethodException in DfsLogger#open()
> ------------------------------------------------------------
>
>                 Key: ACCUMULO-2327
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2327
>             Project: Accumulo
>          Issue Type: Task
>            Reporter: Ted Yu
>
> Currently NoSuchMethodException is ignored in the open method:
> {code}
>         try {
>           // hsync: send data to datanodes and sync the data to disk
>           sync = logFile.getClass().getMethod("hsync");
>           e = null;
>         } catch (NoSuchMethodException ex) {}
> {code}
> Since logFile.getClass() would be the same for one log file, we can use boolean field
to indicate whether hsync is supported so that we don't call hsync again and again if hsync
is not supported.
> A log statement for NoSuchMethodException would be desirable too.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message