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

Document the possibility of MultiCallback receiving a null pointer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.4.7, 3.4.8, 3.4.9, 3.4.10, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.4.11, 3.5.4, 3.4.12, 3.4.13
    • 3.6.0
    • None
    • Patch

    Description

      A MultiCallback can receive a null pointer on failure, rather than a list of org.apache.zookeeper.OpResult.ErrorResult as documented. This is evident from the implementation.

      This causes NullPointerExceptions in Kafka 2.1.x (see KAFKA-7898). Kafka 2.0.x does not use the async multi interface, and Kafka 2.2.x handles the null pointer case.

      However, this is enough of a hazard that it should be documented. I have a patch for that which I will try to attach in a moment (JIRA won't allow me to attach it now for some reason).

      Attachments

        Issue Links

          Activity

            People

              steven-usabilla Steven McDonald
              steven-usabilla Steven McDonald
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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