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

Venkata Ramana G updated CARBONDATA-1063:
-----------------------------------------
    Description: 
User1 in beeline terminal1 performs below operation
1) Create table t1
2) show segments for t1
User2(Does not have privilege to read t1) in beeline terminal2 performs below 
operation
1) show segments for t1 -- Throws permission denied and removes the CarbonTable 
metadata from CarbonMetadata
User1 in beeline terminal1 performs below operation
1) Show segments for t1 - NullPointerException is thrown as the CarbonTable is 
not fetched from CarbonMetastore, instead fetched from SingleTon Instance 
CarbonMetadata.

This is corrected by fetching the carbonTable from CarbonMetastore of 
corresponding Session.


  was:
User1 in beeline terminal1 performs below operation
1) Create table t1
2) load data into t1
3) show segments for t1
User2(Does not have privilege to read t1) in beeline terminal2 performs below 
operation
1) show segments for t1 -- Throws permission denied and removes the CarbonTable 
metadata from CarbonMetadata
User1 in beeline terminal1 performs below operation
1) Show segments for t1 - NullPointerException is thrown as the CarbonTable is 
not fetched from CarbonMetastore, instead fetched from SingleTon Instance 
CarbonMetadata.

This is corrected by fetching the carbonTable from CarbonMetastore of 
corresponding Session.



> When multi user perform concurrent operations like load, show segments 
> NullPointerException is getting thrown
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: CARBONDATA-1063
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1063
>             Project: CarbonData
>          Issue Type: Bug
>         Environment: Spark-2.1
>            Reporter: Naresh P R
>            Assignee: Naresh P R
>            Priority: Minor
>             Fix For: 1.2.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> User1 in beeline terminal1 performs below operation
> 1) Create table t1
> 2) show segments for t1
> User2(Does not have privilege to read t1) in beeline terminal2 performs below 
> operation
> 1) show segments for t1 -- Throws permission denied and removes the 
> CarbonTable metadata from CarbonMetadata
> User1 in beeline terminal1 performs below operation
> 1) Show segments for t1 - NullPointerException is thrown as the CarbonTable 
> is not fetched from CarbonMetastore, instead fetched from SingleTon Instance 
> CarbonMetadata.
> This is corrected by fetching the carbonTable from CarbonMetastore of 
> corresponding Session.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to