[
https://issues.apache.org/jira/browse/CARBONDATA-595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacky Li resolved CARBONDATA-595.
---------------------------------
Resolution: Fixed
Assignee: Ravindra Pesala
Fix Version/s: 1.0.0-incubating
> Drop Table for carbon throws NPE with HDFS lock type.
> -----------------------------------------------------
>
> Key: CARBONDATA-595
> URL:
https://issues.apache.org/jira/browse/CARBONDATA-595> Project: CarbonData
> Issue Type: Bug
> Affects Versions: 0.2.0-incubating
> Reporter: Babulal
> Assignee: Ravindra Pesala
> Priority: Minor
> Fix For: 1.0.0-incubating
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Start version :- 1.6.2
> Start carbon thrift server
> set HDFS LOCK Type
> drop table from beeline
> 0: jdbc:hive2://hacluster> drop table oscon_new_1;
> Error: java.lang.NullPointerException (state=,code=0)
> Error in thrftserver
> 17/01/04 20:40:08 AUDIT DropTableCommand: [hadoop-master][anonymous][Thread-182]Deleted table [oscon_new_1] under database [default]
> 17/01/04 20:40:08 ERROR AbstractDFSCarbonFile: pool-25-thread-12 Exception occured:File does not exist: hdfs://hacluster/opt/CarbonStore/default/oscon_new_1/droptable.lock
> 17/01/04 20:40:08 ERROR SparkExecuteStatementOperation: Error executing query, currentState RUNNING,
> java.lang.NullPointerException
> at org.apache.carbondata.core.datastorage.store.filesystem.AbstractDFSCarbonFile.delete(AbstractDFSCarbonFile.java:128)
> at org.apache.carbondata.lcm.locks.HdfsFileLock.unlock(HdfsFileLock.java:110)
> at org.apache.spark.sql.execution.command.DropTableCommand.run(carbonTableSchema.scala:613)
> at org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:58)
> at org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:56)
> Note :- lock file and data are deleted successfully but in beeline it throws ERROR message instead of success.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)