Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-666

java.nio.BufferOverflowException occurs when the query includes an order by clause on a TEXT column

    XMLWordPrintableJSON

Details

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

    Description

      See the title.
      The query and the error log of the query master are as follows.
      The 'method' column type is TEXT.

      tajo> select method, sum(totaltime) from logs_20130404 group by method order by method;
      
      2014-03-06 11:26:03,432 ERROR querymaster.QueryUnitAttempt (QueryUnitAttempt.java:transition(409)) - FROM xxx.xxx.xxx.xxx >> java.nio.BufferOverflowException
              at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:183)
              at java.nio.ByteBuffer.put(ByteBuffer.java:832)
              at org.apache.tajo.storage.RowStoreUtil$RowStoreEncoder.toBytes(RowStoreUtil.java:181)
              at org.apache.tajo.storage.index.bst.BSTIndex$BSTIndexWriter.writeHeader(BSTIndex.java:168)
              at org.apache.tajo.storage.index.bst.BSTIndex$BSTIndexWriter.close(BSTIndex.java:187)
              at org.apache.hadoop.io.IOUtils.cleanup(IOUtils.java:237)
              at org.apache.tajo.engine.planner.physical.RangeShuffleFileWriteExec.close(RangeShuffleFileWriteExec.java:123)
              at org.apache.tajo.worker.Task.run(Task.java:385)
              at org.apache.tajo.worker.TaskRunner$1.run(TaskRunner.java:395)
              at java.lang.Thread.run(Thread.java:744)
      

      Attachments

        1. TAJO-666-complement.patch
          19 kB
          Jihoon Son
        2. TAJO-666-complement_2.patch
          2 kB
          Jihoon Son
        3. TAJO-666.Mai.140722.0.patch.txt
          2 kB
          Mai Hai Thanh
        4. TAJO-666.Mai.140721.0.patch.txt
          2 kB
          Mai Hai Thanh

        Activity

          People

            mhthanh Mai Hai Thanh
            jihoonson Jihoon Son
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: