FAQ
FSDirectory#unprotectedConcat calls setModificationTime on a file
-----------------------------------------------------------------

Key: HDFS-1498
URL: https://issues.apache.org/jira/browse/HDFS-1498
Project: Hadoop HDFS
Issue Type: Bug
Components: name-node
Reporter: Eli Collins
Assignee: Eli Collins
Priority: Minor
Fix For: 0.22.0


The HDFSConcat test fails when asserts are enabled because FSDirectory#unprotectedConcat calls INode#setModificationTime on a file, this method asserts that the argument is a directory. It should use setModificationTimeForce since we know the target is a file, it's mod time should be set to now unconditionally since we know we're modifying it. The behavior should be equivalent.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouphdfs-dev @
categorieshadoop
postedNov 14, '10 at 5:07a
activeNov 14, '10 at 5:07a
posts1
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Eli Collins (JIRA): 1 post

People

Translate

site design / logo © 2022 Grokbase