Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.0-beta, 3.0.0-alpha1
-
None
-
None
-
Reviewed
Description
In HistoryFileManager.getTimestampPartFromPath() method, we use the following regular expression to match the timestamp in a Path object.
"\\d{4}" + "\\" + File.separator + "\\d{2}" + "\\" + File.separator + "\\d{2}"
This is incorrect because Path uses backslash even for Windows path while File.separator is platform dependent, and is a forward slash on Windows.
This leads to failure matching the timestamp on Windows. One consequence is that addDirectoryToSerialNumberIndex() also failed. Later, getFileInfo() will fail if the job info is not in cache or intermediate directory.
The test case TestJobHistoryParsing.testScanningOldDirs() tests exactly the above scenario and fails on Windows.
Attachments
Attachments
Issue Links
- is part of
-
MAPREDUCE-4401 Enhancements to MapReduce for Windows Server and Windows Azure development and runtime environments
- Resolved