carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenliang...@apache.org
Subject [8/9] incubator-carbondata git commit: make test faster
Date Wed, 01 Feb 2017 15:25:08 GMT
make test faster

add csv

remove show

revert audit log


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

Branch: refs/heads/master
Commit: 2d01f590738e94b8741fce92026fc5a0a06c80cb
Parents: 3d1bd38
Author: jackylk <jacky.likun@huawei.com>
Authored: Sun Jan 29 17:38:41 2017 +0800
Committer: chenliang613 <chenliang613@huawei.com>
Committed: Wed Feb 1 23:23:28 2017 +0800

----------------------------------------------------------------------
 .../common/logging/impl/StandardLogService.java |    8 +-
 .../src/test/resources/10dim_4msr.csv           |  900 ----------------
 .../src/test/resources/avgTest.csv              |   10 +-
 .../src/test/resources/dataDiff.csv             | 1001 ------------------
 .../src/test/resources/example-data.csv         | 1001 ------------------
 .../src/test/resources/seq_20Records.csv        |   20 +
 .../src/test/resources/seq_500Records.csv       |  500 ---------
 .../src/test/resources/source.csv               |  101 ++
 .../test/resources/source_without_header.csv    | 1000 +++++++++++++++++
 .../src/test/resources/windows.csv              | 1000 -----------------
 .../dataload/TestLoadDataWithJunkChars.scala    |    9 +-
 .../aggquery/AggregateQueryTestCase.scala       |   42 -
 .../aggquery/AverageQueryTestCase.scala         |    7 +
 .../AllDataTypesTestCaseAggregate.scala         |    2 +-
 .../InsertIntoCarbonTableTestCase.scala         |    8 +-
 .../badrecordloger/BadRecordLoggerTest.scala    |    9 -
 .../DataCompactionBlockletBoundryTest.scala     |    2 -
 .../MajorCompactionIgnoreInMinorTest.scala      |    1 -
 .../MajorCompactionStopsAfterCompaction.scala   |    6 +-
 .../TestDataLoadWithColumnsMoreThanSchema.scala |    2 +-
 .../dataload/TestLoadDataUseAllDictionary.scala |    2 +-
 .../TestLoadDataWithFileHeaderException.scala   |    4 +-
 .../dataload/TestTableLevelBlockSize.scala      |    4 +-
 .../DataRetentionConcurrencyTestCase.scala      |    9 +-
 .../dataretention/DataRetentionTestCase.scala   |   32 +-
 .../deleteTable/TestDeleteTableNewDDL.scala     |   10 -
 .../DateDataTypeDirectDictionaryTest.scala      |    1 -
 .../filterexpr/FilterProcessorTestCase.scala    |   30 +-
 .../GrtLtFilterProcessorTestCase.scala          |    4 +-
 .../TestAndEqualFilterEmptyOperandValue.scala   |    4 -
 .../TestNullValueSerialization.scala            |    4 -
 .../windowsexpr/WindowsExprTestCase.scala       |    6 +-
 .../dataload/TestLoadDataWithSinglePass.scala   |    6 +-
 .../TestNoInvertedIndexLoadAndQuery.scala       |    4 +-
 .../bucketing/TableBucketingTestCase.scala      |   10 +-
 .../vectorreader/VectorReaderTestCase.scala     |    6 +-
 .../apache/spark/util/CarbonCommandSuite.scala  |    1 +
 37 files changed, 1208 insertions(+), 4558 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/2d01f590/common/src/main/java/org/apache/carbondata/common/logging/impl/StandardLogService.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/carbondata/common/logging/impl/StandardLogService.java
b/common/src/main/java/org/apache/carbondata/common/logging/impl/StandardLogService.java
index 5052f98..bec4b5d 100644
--- a/common/src/main/java/org/apache/carbondata/common/logging/impl/StandardLogService.java
+++ b/common/src/main/java/org/apache/carbondata/common/logging/impl/StandardLogService.java
@@ -191,21 +191,19 @@ public final class StandardLogService implements LogService {
    * @param msg audit log message
    */
   @Override public void audit(String msg) {
-    String hostName = "";
-
+    String hostName;
+    String username;
     try {
       hostName = InetAddress.getLocalHost().getHostName();
     } catch (UnknownHostException e) {
       hostName = "localhost";
     }
-    String username = "unknown";
-    String threadid = "unknown";
     try {
-      threadid = Thread.currentThread().getId() + "";
       username = UserGroupInformation.getCurrentUser().getShortUserName();
     } catch (IOException e) {
       username = "unknown";
     }
+    String threadid = Thread.currentThread().getId() + "";
     logger.log(AuditLevel.AUDIT,
         "[" + hostName + "]" + "[" + username + "]" + "[Thread-" + threadid + "]" + msg);
   }


Mime
View raw message