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

ColPartitionStoreExec can cause URISyntaxException due to special characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • Physical Operator
    • None

    Description

      When partition keys includes some special characters which cannot be represented in URI, ColPartitionStoreExec::getData can cause URISyntaxException. Please see the following stack trace:

      Progress: 62%, response time: 106.344 sec
      Progress: 62%, response time: 107.345 sec
      Progress: 62%, response time: 108.347 sec
      ERROR: java.net.URISyntaxException: Relative path in absolute URI: l_returnflag=yly:%20furiously%20ev/part-02-000002-000
      java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: l_returnflag=yly:%20furiously%20ev/part-02-000002-000
      	at org.apache.hadoop.fs.Path.initialize(Path.java:206)
      	at org.apache.hadoop.fs.Path.<init>(Path.java:172)
      	at org.apache.hadoop.fs.Path.<init>(Path.java:94)
      	at org.apache.tajo.storage.StorageUtil.concatPath(StorageUtil.java:104)
      	at org.apache.tajo.engine.planner.physical.ColPartitionStoreExec.getDataFile(ColPartitionStoreExec.java:112)
      	at org.apache.tajo.engine.planner.physical.SortBasedColPartitionStoreExec.getAppenderForNewPartition(SortBasedColPartitionStoreExec.java:86)
      	at org.apache.tajo.engine.planner.physical.SortBasedColPartitionStoreExec.next(SortBasedColPartitionStoreExec.java:156)
      	at org.apache.tajo.worker.Task.run(Task.java:425)
      	at org.apache.tajo.worker.TaskRunner$1.run(TaskRunner.java:406)
      	at java.lang.Thread.run(Thread.java:744)
      Caused by: java.net.URISyntaxException: Relative path in absolute URI: l_returnflag=yly:%20furiously%20ev/part-02-000002-000
      	at java.net.URI.checkPath(URI.java:1804)
      	at java.net.URI.<init>(URI.java:752)
      	at org.apache.hadoop.fs.Path.initialize(Path.java:203)
      	... 9 more
      

      Attachments

        1. TAJO-947_2.patch
          12 kB
          Hyunsik Choi
        2. TAJO-947.Mai.140730.patch.txt
          11 kB
          Mai Hai Thanh
        3. TAJO-947.Mai.140728.patch.txt
          5 kB
          Mai Hai Thanh

        Activity

          People

            mhthanh Mai Hai Thanh
            hyunsik Hyunsik Choi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: