Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-10546

Check partitionId's range in ExternalSorter#spill()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.4.1
    • 1.6.0
    • Spark Core
    • None

    Description

      See this thread for background:
      http://search-hadoop.com/m/q3RTt0rWvIkHAE81

      We should check the range of partition Id and provide meaningful message through exception.

      Alternatively, we can use abs() and modulo to force the partition Id into legitimate range. However, expectation is that user should correct the logic error in his / her code.

      Attachments

        Activity

          People

            tedyu@apache.org Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: