Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9609

AddPartitionMessage.getPartitions() can return null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • None
    • None

    Description

      DbNotificationListener and NotificationListener both depend on AddPartitionEvent.getPartitions() to get their partitions to trigger a message, but this can be null if an AddPartitionEvent was initialized on a PartitionSpec rather than a List<Partition>.

      Also, AddPartitionEvent seems to have a duality, where getPartitions() works only if instantiated on a List<Partition>, and getPartitionIterator() works only if instantiated on a PartitionSpec.

      Attachments

        1. HIVE-9609.2.patch
          10 kB
          Sushanth Sowmyan
        2. HIVE-9609.3.patch
          13 kB
          Sushanth Sowmyan
        3. HIVE-9609.patch
          8 kB
          Sushanth Sowmyan

        Issue Links

          Activity

            People

              sushanth Sushanth Sowmyan
              sushanth Sushanth Sowmyan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: