Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1253

Inserting key into hash table and updating workspace variable in aggregate container should be an atomic operation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • None
    • None

    Description

      Currently the logic in HashAggregate and HashTable assumes that if the insertion of the key into the hash table is successful then updating the workspace variables in the aggregate container will also be successful.

      If the insertion of the key into the hash table fails we add a new batch in the hash table and retry inserting the key. However we don't check for failures while updating the workspace variables.

      Problem arises when the insertion of the key into the hash table succeeds but inserting the workspace variable fails.

      Attachments

        1. DRILL-1253.patch
          4 kB
          Mehant Baid

        Activity

          People

            Unassigned Unassigned
            mehant Mehant Baid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: