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

AddPartitionMessage.getPartitions() can return null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      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.3.patch
          13 kB
          Sushanth Sowmyan
        2. HIVE-9609.2.patch
          10 kB
          Sushanth Sowmyan
        3. HIVE-9609.patch
          8 kB
          Sushanth Sowmyan

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: