Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2897#discussion_r243810009
  
    --- Diff: 
core/src/main/java/org/apache/carbondata/core/memory/UnsafeMemoryManager.java 
---
    @@ -173,6 +174,7 @@ public synchronized void freeMemoryAll(String taskId) {
               "Freeing offheap working memory of size %d. Current available 
memory is %d",
               occuppiedMemory, totalMemory - memoryUsed));
         }
    +    ThreadLocalTaskInfo.clearCarbonTaskInfo();
    --- End diff --
    
    Better call explicitly from methods where we call `freeMemoryAll, thread 
clearing should not be part of it.


---

Reply via email to