You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Joe Ferner (JIRA)" <ji...@apache.org> on 2017/10/30 13:09:01 UTC
[jira] [Commented] (ACCUMULO-3727) FileNotFoundException on
failed/data during recovery
[ https://issues.apache.org/jira/browse/ACCUMULO-3727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16224890#comment-16224890 ]
Joe Ferner commented on ACCUMULO-3727:
--------------------------------------
I ran into this problem today with Accumulo 1.7.2. What was strange was "/accumulo/recovery/<recoveryid>/failed" was a file not a directory, so "/accumulo/recovery/<recoveryid>/failed/data" could never exist. I tried moving the "failed" file into a new directory as "failed/data" but Accumulo said it wasn't a valid sequence file. Tried removing the "failed" file but still didn't recover. Ended up removing the whole "/accumulo/recovery/<recoveryid>" directory and things started working again.
> FileNotFoundException on failed/data during recovery
> ----------------------------------------------------
>
> Key: ACCUMULO-3727
> URL: https://issues.apache.org/jira/browse/ACCUMULO-3727
> Project: Accumulo
> Issue Type: Bug
> Components: tserver
> Affects Versions: 1.5.2
> Reporter: William Slacum
>
> Over night there was a mass failure of Accumulo (most likely due to too many mappers for a job). After restarting Accumulo, one of the metadata tablets failed to load. There was a log message showing a `FileNotFoundException` on the file `hdfs:///accumulo/recovery/<log id>/failed/data`. Removing the `<log id>` directory from HDFS seemed to unclog the jam and things came back (though potentially with data loss).
> I wanted to investigate why somewhere in the plumbing of `TabletServer`, `TabletServerLogger`, and `SortedLogRecovery`, an attempt was made to use the `failure` file.
> I see in `SortedLogRecovery#sort` where the marker file gets created:
> {code}
> public void sort(String name, Path srcPath, String destPath) {
> ...
> } catch (Throwable t) {
> try {
> // parent dir may not exist
> fs.mkdirs(new Path(destPath));
> fs.create(new Path(destPath, "failed")).close();
> } catch (IOException e) {
> log.error("Error creating failed flag file " + name, e);
> }
> log.error(t, t);
> } finally {
> ...
> {code}
> I have not stepped out to figure out where/why the `failed` files gets included in the list of recovered data dir.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)