You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Jacky Li (JIRA)" <ji...@apache.org> on 2017/08/01 17:17:02 UTC

[jira] [Resolved] (CARBONDATA-1351) When 'SORT_SCOPE'='GLOBAL_SORT' and 'enable.unsafe.columnpage'='true', 'ThreadLocalTaskInfo.getCarbonTaskInfo()' return null

     [ https://issues.apache.org/jira/browse/CARBONDATA-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacky Li resolved CARBONDATA-1351.
----------------------------------
    Resolution: Fixed

> When 'SORT_SCOPE'='GLOBAL_SORT' and 'enable.unsafe.columnpage'='true', 'ThreadLocalTaskInfo.getCarbonTaskInfo()' return null
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CARBONDATA-1351
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1351
>             Project: CarbonData
>          Issue Type: Bug
>          Components: data-load, spark-integration
>    Affects Versions: 1.2.0
>            Reporter: Zhichao  Zhang
>            Assignee: Zhichao  Zhang
>            Priority: Minor
>             Fix For: 1.2.0
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> When 'SORT_SCOPE'='GLOBAL_SORT' and 'enable.unsafe.columnpage'='true', it uses native RDD of Spark to load data, the method of 'ThreadLocalTaskInfo.setCarbonTaskInfo(carbonTaskInfo)' in ‘CarbonRDD.compute’ does not be called, so 'ThreadLocalTaskInfo.getCarbonTaskInfo()' will return null in some unsafe related classes, such as: UnsafeFixLengthColumnPage, UnsafeVarLengthColumnPage, UnsafeMemoryDMStore and so on.
> Solution: Set the CarbonTaskInfo in the method of 'ThreadLocalTaskInfo.getCarbonTaskInfo()' when 'threadLocal.get()' is null.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)