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

Allow JUnit test build with IBM Java

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.4, 3.4.5, 3.5.0
    • 3.4.6, 3.5.0
    • tests
    • Linux, RHEL 6.3, IBM Java 6 SR 11

    Description

      The org.apache.zookeeper.test.ClientBase, org.apache.zookeeper.test.ClientTest, org.apache.zookeeper.test.QuorumBase and org.apache.zookeeper.test.QuorumUtil classes import the com.sun.management.UnixOperatingSystemMXBean class, that fail to build when using IBM Java 6 SR 11. This issue is resolved by new class OSMXBean class proposed in JIRA's ZOOKEEPER-1474.

      The class OSMXBean (org.apache.zookeeper.server.util.OSMXBean) is a wrapper for the implementation of com.sun.management.UnixOperatingSystemMXBean, and decides to use the SUN API or its own implementation depending on the runtime (vendor) used.

      Attachments

        1. zookeeper-1564.patch
          3 kB
          Paulo Ricardo Paz Vital
        2. ZOOKEEPER-1564-v2.patch
          9 kB
          Paulo Ricardo Paz Vital
        3. ZOOKEEPER-1564-v3.patch
          9 kB
          Paulo Ricardo Paz Vital

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            pvital Paulo Ricardo Paz Vital
            pvital Paulo Ricardo Paz Vital
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment