kylin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Feng, Zhutian" <zhutian.f...@intel.com>
Subject unit tests fail on master-hadoop3.0
Date Mon, 13 Nov 2017 14:38:25 GMT
Environment:
    Ubuntu16.04
    Java1.8
    Maven3.5

Steps:

1.      checkout to master-hadoop3.0

2.      As HTableDescriptor(String)  is no longer supported in the latest Hbase API,

So I change "HTableDescriptor table = new HTableDescriptor(tableName) " to "HTableDescriptor
table = new HTableDescriptor(TableName.valueOf(tableName))" in MockHTable.java

3.      I use "build/script/package.sh" to build Binary Package

4.      I use "mvn clean test" to run unit tests.

5.      I got test failures.



[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ kylin-core-common ---

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed
in 8.0
Running org.apache.kylin.common.KylinConfigTest
2017-11-13 13:51:33,749 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:33,858 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_metadata/
2017-11-13 13:51:33,865 INFO  [main KylinConfig:70]: Initialized a new KylinConfig from getInstanceFromEnv
: 2081269248
2017-11-13 13:51:33,865 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: ../examples/test_metadata/
2017-11-13 13:51:33,866 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.env.hdfs-working-dir
: file:///tmp/kylin
2017-11-13 13:51:33,911 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:33,918 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:33,959 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_metadata/
2017-11-13 13:51:33,961 INFO  [main KylinConfig:70]: Initialized a new KylinConfig from getInstanceFromEnv
: 1400582895
2017-11-13 13:51:33,961 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: ../examples/test_metadata/
2017-11-13 13:51:33,962 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.env.hdfs-working-dir
: file:///tmp/kylin
2017-11-13 13:51:33,962 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: meta1
2017-11-13 13:51:33,963 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: meta2
Started new thread.
2017-11-13 13:51:33,978 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:33,981 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:34,014 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_metadata/
2017-11-13 13:51:34,017 INFO  [main KylinConfig:70]: Initialized a new KylinConfig from getInstanceFromEnv
: 1969856053
2017-11-13 13:51:34,017 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: ../examples/test_metadata/
2017-11-13 13:51:34,017 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.env.hdfs-working-dir
: file:///tmp/kylin
2017-11-13 13:51:34,017 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_metadata/
2017-11-13 13:51:34,023 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_metadata/
2017-11-13 13:51:34,038 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:34,039 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:34,070 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_metadata/
2017-11-13 13:51:34,072 INFO  [main KylinConfig:70]: Initialized a new KylinConfig from getInstanceFromEnv
: 1256893889
2017-11-13 13:51:34,072 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: ../examples/test_metadata/
2017-11-13 13:51:34,072 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.env.hdfs-working-dir
: file:///tmp/kylin
2017-11-13 13:51:34,073 INFO  [main KylinConfigBase:153]: Kylin Config was updated with 1234
: 1234
2017-11-13 13:51:34,089 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:34,090 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:34,118 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_metadata/
2017-11-13 13:51:34,120 INFO  [main KylinConfig:70]: Initialized a new KylinConfig from getInstanceFromEnv
: 641030345
2017-11-13 13:51:34,120 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: ../examples/test_metadata/
2017-11-13 13:51:34,120 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.env.hdfs-working-dir
: file:///tmp/kylin
2017-11-13 13:51:34,121 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: testMetaPrefix@hbase
2017-11-13 13:51:34,121 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: testMetaPrefix@hdfs
2017-11-13 13:51:34,121 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: /kylin/temp
2017-11-13 13:51:34,135 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:34,136 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:34,164 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_metadata/
2017-11-13 13:51:34,166 INFO  [main KylinConfig:70]: Initialized a new KylinConfig from getInstanceFromEnv
: 521466380
2017-11-13 13:51:34,166 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: ../examples/test_metadata/
2017-11-13 13:51:34,166 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.env.hdfs-working-dir
: file:///tmp/kylin
2017-11-13 13:51:34,172 WARN  [main BackwardCompatibilityConfig:93]: Config 'kylin.test.bcc.old.key'
is deprecated, use 'kylin.test.bcc.new.key' instead
2017-11-13 13:51:34,172 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.test.bcc.old.key
: 2
2017-11-13 13:51:34,173 WARN  [main BackwardCompatibilityConfig:93]: Config 'kylin.test.bcc.old.key'
is deprecated, use 'kylin.test.bcc.new.key' instead
2017-11-13 13:51:34,187 INFO  [main KylinConfig:83]: Destroy KylinConfig
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.814 sec - in org.apache.kylin.common.KylinConfigTest
Running org.apache.kylin.common.util.RangeTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec - in org.apache.kylin.common.util.RangeTest
Running org.apache.kylin.common.util.RandomSamplerTest
[246, 747, 772, 97, 820, 712, 860, 733, 255, 425, 316, 548, 705, 620, 858, 403, 796, 804,
297, 94, 273, 604, 703, 138, 458, 441, 442, 849, 671, 638, 560, 272, 242, 322, 218, 546, 116,
685, 234, 873, 561, 224, 518, 253, 950, 284, 918, 667, 629, 972]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.apache.kylin.common.util.RandomSamplerTest
Running org.apache.kylin.common.util.DateFormatTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec - in org.apache.kylin.common.util.DateFormatTest
Running org.apache.kylin.common.util.PartialSorterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in org.apache.kylin.common.util.PartialSorterTest
Running org.apache.kylin.common.util.MailServiceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec - in org.apache.kylin.common.util.MailServiceTest
Running org.apache.kylin.common.util.HiveCmdBuilderTest
2017-11-13 13:51:34,313 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_case_data/localmeta
2017-11-13 13:51:34,314 INFO  [main KylinConfig:70]: Initialized a new KylinConfig from getInstanceFromEnv
: 775423528
2017-11-13 13:51:34,327 DEBUG [main HiveCmdBuilder:93]: The SQL to execute in beeline:
USE default;
DROP TABLE test;
SHOW
TABLES;

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec - in org.apache.kylin.common.util.HiveCmdBuilderTest
Running org.apache.kylin.common.util.BasicTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec - in org.apache.kylin.common.util.BasicTest
Running org.apache.kylin.common.util.SSHClientTest
2017-11-13 13:51:34,330 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:34,362 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_case_data/localmeta
2017-11-13 13:51:34,364 INFO  [main KylinConfig:70]: Initialized a new KylinConfig from getInstanceFromEnv
: 2071674587
2017-11-13 13:51:34,364 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: ../examples/test_metadata/
2017-11-13 13:51:34,364 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.env.hdfs-working-dir
: file:///tmp/kylin
2017-11-13 13:51:34,375 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:34,376 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:34,395 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_metadata/
2017-11-13 13:51:34,395 INFO  [main KylinConfig:70]: Initialized a new KylinConfig from getInstanceFromEnv
: 1799831668
2017-11-13 13:51:34,396 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: ../examples/test_metadata/
2017-11-13 13:51:34,396 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.env.hdfs-working-dir
: file:///tmp/kylin
2017-11-13 13:51:34,407 INFO  [main KylinConfig:83]: Destroy KylinConfig
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.076 sec - in org.apache.kylin.common.util.SSHClientTest
Running org.apache.kylin.common.util.TimeUtilTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in org.apache.kylin.common.util.TimeUtilTest
Running org.apache.kylin.common.util.BitSetsTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in org.apache.kylin.common.util.BitSetsTest
Running org.apache.kylin.common.util.RangeUtilTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec - in org.apache.kylin.common.util.RangeUtilTest
Running org.apache.kylin.common.util.ClassUtilTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec <<< FAILURE!
- in org.apache.kylin.common.util.ClassUtilTest
testFindContainingJar(org.apache.kylin.common.util.ClassUtilTest)  Time elapsed: 0.02 sec
 <<< FAILURE!
java.lang.AssertionError
        at org.apache.kylin.common.util.ClassUtilTest.testFindContainingJar(ClassUtilTest.java:29)

Running org.apache.kylin.common.util.JacksonTest
{"a":"valuea","b":0,"configuration":{"1":"1","2":"2","3":"3"}}
{"a":"valuea","b":0,"configuration":{"2":"2","3":"3","1":"1"}}
JacksonBean{a='valuea', b=0}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.672 sec - in org.apache.kylin.common.util.JacksonTest
Running org.apache.kylin.common.util.BytesUtilTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.039 sec - in org.apache.kylin.common.util.BytesUtilTest
Running org.apache.kylin.common.util.CacheBuilderTest
REPLACED
SIZE
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.119 sec - in org.apache.kylin.common.util.CacheBuilderTest
Running org.apache.kylin.common.util.ImplementationSwitchTest
2017-11-13 13:51:35,320 WARN  [main ImplementationSwitch:72]: Implementation missing non.exist.class
- java.lang.RuntimeException: java.lang.ClassNotFoundException: non.exist.class
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in org.apache.kylin.common.util.ImplementationSwitchTest
Running org.apache.kylin.common.util.IdentityUtilTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in org.apache.kylin.common.util.IdentityUtilTest
Running org.apache.kylin.common.persistence.LocalFileResourceStoreTest
2017-11-13 13:51:35,331 INFO  [main KylinConfig:83]: Destroy KylinConfig
2017-11-13 13:51:35,361 INFO  [main KylinConfig:228]: Use KYLIN_CONF=../examples/test_metadata/
2017-11-13 13:51:35,365 INFO  [main KylinConfig:70]: Initialized a new KylinConfig from getInstanceFromEnv
: 328708417
2017-11-13 13:51:35,365 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: ../examples/test_metadata/
2017-11-13 13:51:35,370 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.env.hdfs-working-dir
: file:///tmp/kylin
2017-11-13 13:51:35,371 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
:
[/cube/_test.json]
2017-11-13 13:51:35,441 INFO  [main KylinConfigBase:153]: Kylin Config was updated with kylin.metadata.url
: ../examples/test_metadata/
2017-11-13 13:51:35,455 INFO  [main KylinConfig:83]: Destroy KylinConfig
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.127 sec - in org.apache.kylin.common.persistence.LocalFileResourceStoreTest
Running org.apache.kylin.common.restclient.RestClientTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec - in org.apache.kylin.common.restclient.RestClientTest

Results :

Failed tests:
  ClassUtilTest.testFindContainingJar:29

Tests run: 34, Failures: 1, Errors: 0, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Kylin ....................................... SUCCESS [  4.294 s]
[INFO] Apache Kylin - Calcite Overrides ................... SUCCESS [  5.503 s]
[INFO] Apache Kylin - Core Common ......................... FAILURE [ 11.459 s]
[INFO] Apache Kylin - Core Metadata ....................... SKIPPED

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message