Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
2.7.2, 3.0.0-alpha1
-
None
-
None
-
None
Description
After run the following code, "old" file is renamed to "new", but ".old.crc" is not renamed to ".new.crc"
Path oldPath = new Path("/tmp/old"); Path newPath = new Path("/tmp/new"); Configuration conf = new Configuration(); FileContext fc = FileContext.getLocalFSFileContext(conf); FSDataOutputStream out = fc.create(oldPath, EnumSet.of(CreateFlag.CREATE)); out.close(); fc.rename(oldPath, newPath);
On the other hand, local FileSystem successfully renames .crc file.
Path oldPath = new Path("/tmp/old"); Path newPath = new Path("/tmp/new"); Configuration conf = new Configuration(); FileSystem fs = FileSystem.getLocal(conf); FSDataOutputStream out = fs.create(oldPath); out.close(); fs.rename(oldPath, newPath);
Attachments
Attachments
Issue Links
- is blocked by
-
HADOOP-14629 Improve exception checking in FileContext related JUnit tests
- Resolved