@Override public TaskResult validate(Map<String, String> optionsMap) { if (!UnderFileSystemUtils.isHdfs(mUfs)) {
@Test public void createOpenEmpty() throws IOException { String testFile = PathUtils.concatPath(mUnderfsAddress, "createOpenEmpty"); createEmptyFile(testFile); byte[] buf = new byte[0]; int bytesRead = mUfs.open(testFile).read(buf); // TODO(adit): Consider making the return value uniform across UFSs if (UnderFileSystemUtils.isHdfs(mUfs)) { assertEquals(-1, bytesRead); } else { assertEquals(0, bytesRead); } }
@Override public TaskResult validate(Map<String, String> optionsMap) { if (!UnderFileSystemUtils.isHdfs(mUfs)) {