[ https://issues.apache.org/jira/browse/HDFS-15679?focusedWorklogId=522982&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-522982 ]
ASF GitHub Bot logged work on HDFS-15679: ----------------------------------------- Author: ASF GitHub Bot Created on: 11/Dec/20 02:20 Start Date: 11/Dec/20 02:20 Worklog Time Spent: 10m Work Description: hadoop-yetus commented on pull request #2456: URL: https://github.com/apache/hadoop/pull/2456#issuecomment-742921731 :broken_heart: **-1 overall** | Vote | Subsystem | Runtime | Logfile | Comment | |:----:|----------:|--------:|:--------:|:-------:| | +0 :ok: | reexec | 1m 7s | | Docker mode activated. | |||| _ Prechecks _ | | +1 :green_heart: | dupname | 0m 0s | | No case conflicting files found. | | +1 :green_heart: | @author | 0m 0s | | The patch does not contain any @author tags. | | +1 :green_heart: | | 0m 0s | [test4tests](test4tests) | The patch appears to include 1 new or modified test files. | |||| _ trunk Compile Tests _ | | +0 :ok: | mvndep | 13m 28s | | Maven dependency ordering for branch | | +1 :green_heart: | mvninstall | 23m 36s | | trunk passed | | +1 :green_heart: | compile | 4m 30s | | trunk passed with JDK Ubuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04 | | +1 :green_heart: | compile | 3m 59s | | trunk passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01 | | +1 :green_heart: | checkstyle | 1m 0s | | trunk passed | | +1 :green_heart: | mvnsite | 2m 11s | | trunk passed | | +1 :green_heart: | shadedclient | 20m 21s | | branch has no errors when building and testing our client artifacts. | | +1 :green_heart: | javadoc | 1m 30s | | trunk passed with JDK Ubuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04 | | +1 :green_heart: | javadoc | 1m 53s | | trunk passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01 | | +0 :ok: | spotbugs | 3m 10s | | Used deprecated FindBugs config; considering switching to SpotBugs. | | +1 :green_heart: | findbugs | 5m 38s | | trunk passed | |||| _ Patch Compile Tests _ | | +0 :ok: | mvndep | 0m 23s | | Maven dependency ordering for patch | | +1 :green_heart: | mvninstall | 1m 58s | | the patch passed | | +1 :green_heart: | compile | 4m 18s | | the patch passed with JDK Ubuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04 | | +1 :green_heart: | javac | 4m 18s | | hadoop-hdfs-project-jdkUbuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04 with JDK Ubuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04 generated 0 new + 773 unchanged - 5 fixed = 773 total (was 778) | | +1 :green_heart: | compile | 3m 54s | | the patch passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01 | | +1 :green_heart: | javac | 3m 54s | | hadoop-hdfs-project-jdkPrivateBuild-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01 with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01 generated 0 new + 751 unchanged - 5 fixed = 751 total (was 756) | | +1 :green_heart: | checkstyle | 0m 54s | | the patch passed | | +1 :green_heart: | mvnsite | 2m 0s | | the patch passed | | +1 :green_heart: | whitespace | 0m 0s | | The patch has no whitespace issues. | | +1 :green_heart: | shadedclient | 17m 6s | | patch has no errors when building and testing our client artifacts. | | +1 :green_heart: | javadoc | 1m 28s | | the patch passed with JDK Ubuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04 | | +1 :green_heart: | javadoc | 1m 50s | | the patch passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01 | | +1 :green_heart: | findbugs | 5m 51s | | the patch passed | |||| _ Other Tests _ | | +1 :green_heart: | unit | 2m 13s | | hadoop-hdfs-client in the patch passed. | | -1 :x: | unit | 114m 20s | [/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2456/2/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt) | hadoop-hdfs in the patch passed. | | +1 :green_heart: | asflicense | 0m 37s | | The patch does not generate ASF License warnings. | | | | 237m 7s | | | | Reason | Tests | |-------:|:------| | Failed junit tests | hadoop.hdfs.TestDFSStripedOutputStreamWithFailureWithRandomECPolicy | | | hadoop.hdfs.server.namenode.ha.TestStandbyCheckpoints | | | hadoop.hdfs.TestDFSStripedOutputStreamWithFailure | | | hadoop.hdfs.server.namenode.ha.TestBootstrapAliasmap | | Subsystem | Report/Notes | |----------:|:-------------| | Docker | ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2456/2/artifact/out/Dockerfile | | GITHUB PR | https://github.com/apache/hadoop/pull/2456 | | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle | | uname | Linux f0f7e1d4810a 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | maven | | Personality | dev-support/bin/hadoop.sh | | git revision | trunk / 9bd3c9bc506 | | Default Java | Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01 | | Multi-JDK versions | /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01 | | Test Results | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2456/2/testReport/ | | Max. process+thread count | 3213 (vs. ulimit of 5500) | | modules | C: hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project | | Console output | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2456/2/console | | versions | git=2.17.1 maven=3.6.0 findbugs=4.0.6 | | Powered by | Apache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org | This message was automatically generated. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 522982) Time Spent: 0.5h (was: 20m) > DFSOutputStream close should be a no-op when called multiple times > ------------------------------------------------------------------ > > Key: HDFS-15679 > URL: https://issues.apache.org/jira/browse/HDFS-15679 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Ahmed Hussein > Assignee: Ahmed Hussein > Priority: Major > Labels: pull-request-available > Time Spent: 0.5h > Remaining Estimate: 0h > > While I was looking into the incorrect implementation of HDFS-15678, I found > that once I implement the correct logic, the Junit test fails. > It turns out that there is inconsistency in {{DFSOutputStream.closeImpl()}} > introduced by HDFS-13164. > The change in [that > line|https://github.com/apache/hadoop/commit/51088d323359587dca7831f74c9d065c2fccc60d#diff-3a80b95578dc5079cebf0441e1dab63d5844c02fa2d04071c165ec4f7029f918R860] > makes the close() throws exception multiple times which contradicts with > HDFS-5335. > That change breaks the semantic of {{close()}}. For convenience, this is a > test code that fails because of the change in HDFS-13164. > {code:java} > public void testCloseTwice() throws IOException { > DistributedFileSystem fs = cluster.getFileSystem(); > FSDataOutputStream os = fs.create(new Path("/test")); > DFSOutputStream dos = (DFSOutputStream) Whitebox.getInternalState(os, > "wrappedStream"); > DataStreamer streamer = (DataStreamer) Whitebox > .getInternalState(dos, "streamer"); > @SuppressWarnings("unchecked") > LastExceptionInStreamer ex = (LastExceptionInStreamer) Whitebox > .getInternalState(streamer, "lastException"); > Throwable thrown = (Throwable) Whitebox.getInternalState(ex, "thrown"); > Assert.assertNull(thrown); > // force stream to break. output stream needs to encounter a real > // error to properly mark it closed with an exception > cluster.shutdown(true, false); > try { > dos.close(); > Assert.fail("should have thrown"); > } catch (IOException e) { > Assert.assertEquals(e.toString(), EOFException.class, e.getClass()); > } > thrown = (Throwable) Whitebox.getInternalState(ex, "thrown"); > Assert.assertNull(thrown); > dos.close(); > // even if the exception is set again, close should not throw it > ex.set(new IOException("dummy")); > dos.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org