Author: ggregory
Date: Thu Jan 10 14:17:46 2013
New Revision: 1431376
URL: http://svn.apache.org/viewvc?rev=1431376&view=rev
Log:
[VFS-450] HDFSFileSystem.resolveFile() does not honor CacheStrategy.ON_RESOLVE.
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java
commons/proper/vfs/trunk/src/changes/changes.xml
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java
URL:
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java?rev=1431376&r1=1431375&r2=1431376&view=diff
==============================================================================
---
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java
(original)
+++
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java
Thu Jan 10 14:17:46 2013
@@ -149,13 +149,13 @@ public class HdfsFileSystem extends Abst
{
this.putFileToCache(file);
}
- /**
- * resync the file information if requested
- */
- if
(getFileSystemManager().getCacheStrategy().equals(CacheStrategy.ON_RESOLVE))
- {
- file.refresh();
- }
+ }
+ /**
+ * resync the file information if requested
+ */
+ if
(getFileSystemManager().getCacheStrategy().equals(CacheStrategy.ON_RESOLVE))
+ {
+ file.refresh();
}
return file;
}
Modified: commons/proper/vfs/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/src/changes/changes.xml?rev=1431376&r1=1431375&r2=1431376&view=diff
==============================================================================
--- commons/proper/vfs/trunk/src/changes/changes.xml (original)
+++ commons/proper/vfs/trunk/src/changes/changes.xml Thu Jan 10 14:17:46 2013
@@ -26,8 +26,8 @@
<!-- <action issue="VFS-443" dev="ggregory" type="update"
due-to="nickallen"> -->
<!-- [Local] Need an easy way to convert from a FileObject to a
File. -->
<!-- </action> -->
- <action issue="VFS-449" dev="ggregory" type="fix" due-to="dlmarion">
- HDFS Provider is not removing cached files.
+ <action issue="VFS-450" dev="ggregory" type="fix" due-to="dlmarion">
+ HDFSFileSystem.resolveFile() does not honor CacheStrategy.ON_RESOLVE.
</action>
<action issue="VFS-442" dev="ggregory" type="add" due-to="dlmarion">
Add an HDFS FileSystem Provider.