Repository: carbondata
Updated Branches:
  refs/heads/master 638ed1fa7 -> 85a958ee3


[CARBONDATA-2315] Success and failure log fixed when no data is loaded into 
table

Success and failure log fixed when no data is loaded into table

This closes #2140


Project: http://git-wip-us.apache.org/repos/asf/carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/carbondata/commit/85a958ee
Tree: http://git-wip-us.apache.org/repos/asf/carbondata/tree/85a958ee
Diff: http://git-wip-us.apache.org/repos/asf/carbondata/diff/85a958ee

Branch: refs/heads/master
Commit: 85a958ee3a87bba7b4312bff2aac88dc6814bcc7
Parents: 638ed1f
Author: Indhumathi27 <indhumathi...@gmail.com>
Authored: Fri Apr 6 11:27:18 2018 +0530
Committer: manishgupta88 <tomanishgupt...@gmail.com>
Committed: Fri Apr 6 13:59:55 2018 +0530

----------------------------------------------------------------------
 .../apache/carbondata/spark/rdd/CarbonDataRDDFactory.scala    | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/carbondata/blob/85a958ee/integration/spark2/src/main/scala/org/apache/carbondata/spark/rdd/CarbonDataRDDFactory.scala
----------------------------------------------------------------------
diff --git 
a/integration/spark2/src/main/scala/org/apache/carbondata/spark/rdd/CarbonDataRDDFactory.scala
 
b/integration/spark2/src/main/scala/org/apache/carbondata/spark/rdd/CarbonDataRDDFactory.scala
index 65e5e51..e978614 100644
--- 
a/integration/spark2/src/main/scala/org/apache/carbondata/spark/rdd/CarbonDataRDDFactory.scala
+++ 
b/integration/spark2/src/main/scala/org/apache/carbondata/spark/rdd/CarbonDataRDDFactory.scala
@@ -495,12 +495,7 @@ object CarbonDataRDDFactory {
       val newEntryLoadStatus =
       if 
(!carbonLoadModel.getCarbonDataLoadSchema.getCarbonTable.isChildDataMap &&
           !CarbonLoaderUtil.isValidSegment(carbonLoadModel, 
carbonLoadModel.getSegmentId.toInt)) {
-
-        LOGGER.audit(s"Data load is failed for " +
-                     s"${ carbonLoadModel.getDatabaseName }.${ 
carbonLoadModel.getTableName }" +
-                     " as there is no data to load")
-        LOGGER.warn("Cannot write load metadata file as data load failed")
-
+        LOGGER.warn("Cannot write load metadata file as there is no data to 
load")
         SegmentStatus.MARKED_FOR_DELETE
       } else {
         loadStatus

Reply via email to