Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13932

[JDK 11] Casts to BlockStoragePolicy[] in unit tests raise ClassCastExceptions

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      For example

      java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class [Lorg.apache.hadoop.hdfs.protocol.BlockStoragePolicy; ([Ljava.lang.Object; is in module java.base of loader 'bootstrap'; [Lorg.apache.hadoop.hdfs.protocol.BlockStoragePolicy; is in unnamed module of loader 'app')
      at org.apache.hadoop.hdfs.web.TestWebHDFS.testStoragePolicy(TestWebHDFS.java:1391)

      This is with Java 11+28.

        Attachments

        1. HDFS-13932.patch
          3 kB
          Andrew Kyle Purtell
        2. HDFS-13932.patch
          3 kB
          Andrew Kyle Purtell

        Issue Links

          Activity

            People

            • Assignee:
              apurtell Andrew Kyle Purtell
              Reporter:
              apurtell Andrew Kyle Purtell

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment