Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5284 Roll-up of final fixes for managed sort
  3. DRILL-5294

Managed External Sort throws an OOM during the merge and spill phase

    XMLWordPrintableJSON

Details

    Description

      commit # : 38f816a45924654efd085bf7f1da7d97a4a51e38

      The below query fails with managed sort while it succeeds on the old sort

      select * from (select columns[433] col433, columns[0], columns[1],columns[2],columns[3],columns[4],columns[5],columns[6],columns[7],columns[8],columns[9],columns[10],columns[11] from dfs.`/drill/testdata/resource-manager/3500cols.tbl` order by columns[450],columns[330],columns[230],columns[220],columns[110],columns[90],columns[80],columns[70],columns[40],columns[10],columns[20],columns[30],columns[40],columns[50]) d where d.col433 = 'sjka skjf';
      Error: RESOURCE ERROR: External Sort encountered an error while spilling to disk
      
      Fragment 1:11
      
      [Error Id: 0aa20284-cfcc-450f-89b3-645c280f33a4 on qa-node190.qa.lab:31010] (state=,code=0)
      

      Env :

      No of Drillbits : 1
      DRILL_MAX_DIRECT_MEMORY="32G"
      DRILL_MAX_HEAP="4G"
      

      Attached the logs and profile. Data is too large for a jira

      Attachments

        1. 2751ce6d-67e6-ae08-3b68-e33b29f9d2a3.sys.drill
          54 kB
          Rahul Kumar Challapalli
        2. drillbit_scenario2.log
          454 kB
          Rahul Kumar Challapalli
        3. drillbit_scenario3.log
          721 kB
          Rahul Kumar Challapalli
        4. drillbit.log
          3.61 MB
          Rahul Kumar Challapalli
        5. scenario2_profile.sys.drill
          6 kB
          Rahul Kumar Challapalli
        6. scenario3_profile.sys.drill
          11 kB
          Rahul Kumar Challapalli

        Activity

          People

            paul-rogers Paul Rogers
            rkins Rahul Kumar Challapalli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: