Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1579

Compile error of UnixOperationSystemMXBean with open JDK

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.4, 3.4.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      zookeeper invokes getOpenFileDescriptorCount() function in com.sun.management.UnixOperatingSystemMXBean, which only exists in SUN JDK, and open JDK did not implement this function.

      [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientBase.java:57: package com.sun.management does not exist
      [javac] import com.sun.management.UnixOperatingSystemMXBean;
      [javac] ^
      [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumBase.java:39: package com.sun.management does not exist
      [javac] import com.sun.management.UnixOperatingSystemMXBean;
      [javac] ^
      [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientTest.java:48: package com.sun.management does not exist
      [javac] import com.sun.management.UnixOperatingSystemMXBean;
      [javac] ^
      [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumUtil.java:39: package com.sun.management does not exist
      [javac] import com.sun.management.UnixOperatingSystemMXBean;

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michelle Li Ping Zhang
                Reporter:
                michelle Li Ping Zhang
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 168h
                  168h
                  Remaining:
                  Remaining Estimate - 168h
                  168h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified