Repository: carbondata
Updated Branches:
  refs/heads/branch-1.3 f71d3050c -> 31c7b505a


[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/31c7b505
Tree: http://git-wip-us.apache.org/repos/asf/carbondata/tree/31c7b505
Diff: http://git-wip-us.apache.org/repos/asf/carbondata/diff/31c7b505

Branch: refs/heads/branch-1.3
Commit: 31c7b505aeb4f4b66f2664a16fe7cb977300cd36
Parents: f71d305
Author: Indhumathi27 <[email protected]>
Authored: Fri Apr 6 11:27:18 2018 +0530
Committer: manishgupta88 <[email protected]>
Committed: Fri Apr 6 14:02:37 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/31c7b505/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 9985a3a..4f64f83 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
@@ -487,12 +487,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