Alluxio / Community

New Contributor Tasks for Alluxio
20 stars 38 forks source link

[SMALLFIX] Java 8 Improvement: replace anonymous type with lambda in alluxio/core/common/src/main/java/alluxio/AbstractClient.java#getRemoteServiceVersion #416

Closed newnius closed 5 years ago

newnius commented 5 years ago

Replace

    return retryRPC(new RpcCallable<Long>() {
      public Long call() {
        return mVersionService.getServiceVersion(
            GetServiceVersionPRequest.newBuilder().setServiceType(getRemoteServiceType()).build())
            .getVersion();
      }
    });

with

    return retryRPC(() -> mVersionService.getServiceVersion(
        GetServiceVersionPRequest.newBuilder().setServiceType(getRemoteServiceType()).build())
        .getVersion());
Oscilloputer0627 commented 5 years ago

Hey, so I just replace and then GG ?

Oscilloputer0627 commented 5 years ago

Don't need to compile am I ?

newnius commented 5 years ago

Yes, you can skip that step.

Oscilloputer0627 commented 5 years ago

Wow, now you are really flashing! Thank you very much !!!!!

Oscilloputer0627 commented 5 years ago

I submitted a pull request, I hope I get a 10/10. thanks.

Oscilloputer0627 commented 5 years ago

Did I pass it ? I received a message saying that test FAILED, why ? I did exactly as same as the instruction, except I didn't compile it. compilation failed on the last step , creating the UI 2.0.0. If there is a package that called "node" exists, I think I could compile it.

newnius commented 5 years ago
/usr/src/alluxio/core/common/src/main/java/alluxio/AbstractClient.java:115: error: Trailing whitespace found.
/usr/src/alluxio/core/common/src/main/java/alluxio/AbstractClient.java:119: error: Trailing whitespace found.
/usr/src/alluxio/core/common/src/main/java/alluxio/AbstractClient.java:120: error: Trailing whitespace found.
/usr/src/alluxio/core/common/src/main/java/alluxio/AbstractClient.java:128: error: Trailing whitespace found.

and just remove the commented lines.

Oscilloputer0627 commented 5 years ago

Roger that

Oscilloputer0627 commented 5 years ago

Hey is it ok if I visit you right now, I am at 1021, there is some problem I ddin't figure out.

newnius commented 5 years ago

Have no idea what the error means, restarted another test.

Oscilloputer0627 commented 5 years ago

I am at 1021 where are you, I made changes as instructed.

Oscilloputer0627 commented 5 years ago

these maven and java things are freaking me out , why not just C++ it works perfectly ?

newnius commented 5 years ago

I am not one of the maintainers.

Oscilloputer0627 commented 5 years ago

Do I suppose to wait or ? Can't figure out that bug...

newnius commented 5 years ago

Just wait a moment to see the results.

By the way, you haven't signed the contribution agreement.

Oscilloputer0627 commented 5 years ago

I submitted the sign , now pending ,thank you very much. new result failed again...

Oscilloputer0627 commented 5 years ago

It is a great pleasure working with you , thanks for your paitence

newnius commented 5 years ago

Sorry for the late response, it seems there is some bug (or something I don't know) caused the failure.

You can change the task, or simply skip the following parts (since the core purpose of this experiment is to learn the steps to contribute to open-source projects).

Which do you prefer?

There will no impact on the final score.

Oscilloputer0627 commented 5 years ago

How about you teach me how to debug, I don't want to walk away from the problem. I want to face it...

Oscilloputer0627 commented 5 years ago

Hey, any clue where did the style check catches at that line ?

newnius commented 5 years ago

Hey, any clue where did the style check catches at that line ?

Where's the PR link?

Oscilloputer0627 commented 5 years ago

I give you one better: what is PR link?

Oscilloputer0627 commented 5 years ago

kidding, it is https://github.com/Alluxio/new-contributor-tasks/issues/416 this one

newnius commented 5 years ago

Something like this : https://github.com/Alluxio/alluxio/pull/9205

Oscilloputer0627 commented 5 years ago

Hey, any clue where did the style check catches at that line ?

Where's the PR link?

I have logged all of them yet no clue what errors exactly it is making, is maven suppressing the output??

Oscilloputer0627 commented 5 years ago

Something like this : https://github.com/Alluxio/alluxio/pull/9205

I didn't assign PR since I know it won't work, just need to print those errors first.

Oscilloputer0627 commented 5 years ago

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle) on project alluxio-core-common: Failed during checkstyle execution: There are 2 errors reported by Checkstyle 6.11.2 with /home/orkesh_nurbolat/Projects/1_Alluxio/alluxio/build/checkstyle/alluxio_checks.xml ruleset. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle) on project alluxio-core-common: Failed during checkstyle execution at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed during checkstyle execution at org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo.execute (CheckstyleViolationCheckMojo.java:547) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.checkstyle.exec.CheckstyleExecutorException: There are 2 errors reported by Checkstyle 6.11.2 with /home/orkesh_nurbolat/Projects/1_Alluxio/alluxio/build/checkstyle/alluxio_checks.xml ruleset. at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.executeCheckstyle (DefaultCheckstyleExecutor.java:313) at org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo.execute (CheckstyleViolationCheckMojo.java:538) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :alluxio-core-common

newnius commented 5 years ago

The problem is located above these lines.

Oscilloputer0627 commented 5 years ago

The problem is located above these lines.

yes they are, but unable to identify WHAT EXACTLY IS THE PROBLEM?

newnius commented 5 years ago

You can save all the logs and post the file here.

Oscilloputer0627 commented 5 years ago

[INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.alluxio:alluxio-shaded-hadoop:jar:2.2.0 [WARNING] 'version' contains an expression but should be a constant. @ org.alluxio:alluxio-shaded-hadoop:${ufs.hadoop.version}, /home/orkesh_nurbolat/Projects/1_Alluxio/alluxio/shaded/hadoop/pom.xml, line 23, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. @ org.alluxio:alluxio-shaded-hadoop:${ufs.hadoop.version}, /home/orkesh_nurbolat/Projects/1_Alluxio/alluxio/shaded/hadoop/pom.xml, line 116, column 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Detecting the operating system and CPU architecture [INFO] ------------------------------------------------------------------------ [INFO] os.detected.name: linux [INFO] os.detected.arch: x86_64 [INFO] os.detected.version: 4.15 [INFO] os.detected.version.major: 4 [INFO] os.detected.version.minor: 15 [INFO] os.detected.release: ubuntu [INFO] os.detected.release.version: 16.04 [INFO] os.detected.release.like.ubuntu: true [INFO] os.detected.release.like.debian: true [INFO] os.detected.classifier: linux-x86_64 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Alluxio Parent [pom] [INFO] Alluxio Core [pom] [INFO] Alluxio Core - Transport [jar] [INFO] Alluxio Core - Base module [jar] [INFO] Alluxio Core - Common Utilities [jar] [INFO] Alluxio Core - Client [pom] [INFO] Alluxio Core - Client - File System [jar] [INFO] Alluxio Examples [jar] [INFO] Alluxio Job Service [pom] [INFO] Alluxio Job Service - Common Utilities [jar] [INFO] Alluxio Job Service - Client [jar] [INFO] Alluxio Shell [jar] [INFO] Alluxio Assembly [pom] [INFO] Alluxio Assembly - Client [jar] [INFO] Alluxio Core - Server [pom] [INFO] Alluxio Core - Server - Common Utilities [jar] [INFO] Alluxio Under File System [pom] [INFO] Alluxio Under File System - Local FS [jar] [INFO] Alluxio Core - Server - Master [jar] [INFO] Alluxio Core - Server - Proxy [jar] [INFO] Alluxio Core - Server - Worker [jar] [INFO] Alluxio Job Service - Server [jar] [INFO] Alluxio Log Server [jar] [INFO] Alluxio Assembly - Server [jar] [INFO] Alluxio Core - Client - HDFS [jar] [INFO] Alluxio Core - Client - Runtime [jar] [INFO] Alluxio Integration [pom] [INFO] Alluxio Integration - Checker [jar] [INFO] Alluxio Integration - FUSE [jar] [INFO] Alluxio MiniCluster [jar] [INFO] Alluxio Shaded Libraries [pom] [INFO] Alluxio Shaded Libraries - Hadoop [jar] [INFO] Alluxio Tests [jar] [INFO] Alluxio Under File System - Tencent Cloud COS [jar] [INFO] Alluxio Under File System - GCS [jar] [INFO] Alluxio Under File System - HDFS [jar] [INFO] Alluxio Under File System - Qiniu Kodo [jar] [INFO] Alluxio Under File System - Aliyun OSS [jar] [INFO] Alluxio Under File System - S3 [jar] [INFO] Alluxio Under File System - Swift [jar] [INFO] Alluxio Under File System - Microsoft Azure Blob Storage [jar] [INFO] Alluxio Under File System - Web [jar] [INFO] Alluxio UI [pom] [INFO] [INFO] ---------------------< org.alluxio:alluxio-parent >--------------------- [INFO] Building Alluxio Parent 2.1.0-SNAPSHOT [1/43] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ alluxio-parent --- [INFO] Deleting /home/orkesh_nurbolat/Projects/1_Alluxio/alluxio/target [INFO] [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ alluxio-parent --- [INFO] [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-versions) @ alluxio-parent --- [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle) @ alluxio-parent --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- license-maven-plugin:2.9:check (default) @ alluxio-parent --- [INFO] Checking licenses... [WARNING] Unknown file extension: /home/orkesh_nurbolat/Projects/1_Alluxio/alluxio/templates/markdown.hbs [WARNING] Unknown file extension: /home/orkesh_nurbolat/Projects/1_Alluxio/alluxio/log.txgt [WARNING] Unknown file extension: /home/orkesh_nurbolat/Projects/1_Alluxio/alluxio/templates/operation.hbs [WARNING] Unknown file extension: /home/orkesh_nurbolat/Projects/1_Alluxio/alluxio/templates/strapdown.html.hbs [WARNING] Unknown file extension: /home/orkesh_nurbolat/Projects/1_Alluxio/alluxio/dev/scripts/generate-tarballs [WARNING] Missing header in: /home/orkesh_nurbolat/Projects/1_Alluxio/alluxio/log.txt [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Alluxio Parent 2.1.0-SNAPSHOT ...................... FAILURE [ 4.859 s] [INFO] Alluxio Core 2.1.0-SNAPSHOT ........................ SKIPPED [INFO] Alluxio Core - Transport 2.1.0-SNAPSHOT ............ SKIPPED [INFO] Alluxio Core - Base module 2.1.0-SNAPSHOT .......... SKIPPED [INFO] Alluxio Core - Common Utilities 2.1.0-SNAPSHOT ..... SKIPPED [INFO] Alluxio Core - Client 2.1.0-SNAPSHOT ............... SKIPPED [INFO] Alluxio Core - Client - File System 2.1.0-SNAPSHOT . SKIPPED [INFO] Alluxio Examples 2.1.0-SNAPSHOT .................... SKIPPED [INFO] Alluxio Job Service 2.1.0-SNAPSHOT ................. SKIPPED [INFO] Alluxio Job Service - Common Utilities 2.1.0-SNAPSHOT SKIPPED [INFO] Alluxio Job Service - Client 2.1.0-SNAPSHOT ........ SKIPPED [INFO] Alluxio Shell 2.1.0-SNAPSHOT ....................... SKIPPED [INFO] Alluxio Assembly 2.1.0-SNAPSHOT .................... SKIPPED [INFO] Alluxio Assembly - Client 2.1.0-SNAPSHOT ........... SKIPPED [INFO] Alluxio Core - Server 2.1.0-SNAPSHOT ............... SKIPPED [INFO] Alluxio Core - Server - Common Utilities 2.1.0-SNAPSHOT SKIPPED [INFO] Alluxio Under File System 2.1.0-SNAPSHOT ........... SKIPPED [INFO] Alluxio Under File System - Local FS 2.1.0-SNAPSHOT SKIPPED [INFO] Alluxio Core - Server - Master 2.1.0-SNAPSHOT ...... SKIPPED [INFO] Alluxio Core - Server - Proxy 2.1.0-SNAPSHOT ....... SKIPPED [INFO] Alluxio Core - Server - Worker 2.1.0-SNAPSHOT ...... SKIPPED [INFO] Alluxio Job Service - Server 2.1.0-SNAPSHOT ........ SKIPPED [INFO] Alluxio Log Server 2.1.0-SNAPSHOT .................. SKIPPED [INFO] Alluxio Assembly - Server 2.1.0-SNAPSHOT ........... SKIPPED [INFO] Alluxio Core - Client - HDFS 2.1.0-SNAPSHOT ........ SKIPPED [INFO] Alluxio Core - Client - Runtime 2.1.0-SNAPSHOT ..... SKIPPED [INFO] Alluxio Integration 2.1.0-SNAPSHOT ................. SKIPPED [INFO] Alluxio Integration - Checker 2.1.0-SNAPSHOT ....... SKIPPED [INFO] Alluxio Integration - FUSE 2.1.0-SNAPSHOT .......... SKIPPED [INFO] Alluxio MiniCluster 2.1.0-SNAPSHOT ................. SKIPPED [INFO] Alluxio Shaded Libraries 2.1.0-SNAPSHOT ............ SKIPPED [INFO] Alluxio Shaded Libraries - Hadoop 2.2.0 ............ SKIPPED [INFO] Alluxio Tests 2.1.0-SNAPSHOT ....................... SKIPPED [INFO] Alluxio Under File System - Tencent Cloud COS 2.1.0-SNAPSHOT SKIPPED [INFO] Alluxio Under File System - GCS 2.1.0-SNAPSHOT ..... SKIPPED [INFO] Alluxio Under File System - HDFS 2.1.0-SNAPSHOT .... SKIPPED [INFO] Alluxio Under File System - Qiniu Kodo 2.1.0-SNAPSHOT SKIPPED [INFO] Alluxio Under File System - Aliyun OSS 2.1.0-SNAPSHOT SKIPPED [INFO] Alluxio Under File System - S3 2.1.0-SNAPSHOT ...... SKIPPED [INFO] Alluxio Under File System - Swift 2.1.0-SNAPSHOT ... SKIPPED [INFO] Alluxio Under File System - Microsoft Azure Blob Storage 2.1.0-SNAPSHOT SKIPPED [INFO] Alluxio Under File System - Web 2.1.0-SNAPSHOT ..... SKIPPED [INFO] Alluxio UI 2.1.0-SNAPSHOT .......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.374 s [INFO] Finished at: 2019-07-02T14:06:21+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.9:check (default) on project alluxio-parent: Some files do not have the expected license header -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.mycila:license-maven-plugin:2.9:check (default) on project alluxio-parent: Some files do not have the expected license header at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.MojoExecutionException: Some files do not have the expected license header at com.mycila.maven.plugin.license.LicenseCheckMojo.execute (LicenseCheckMojo.java:68) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Oscilloputer0627 commented 5 years ago

wait, I didn't know how this error comes up, there was only style check error before.

newnius commented 5 years ago

This is only part of it. The whole output should be like this,https://amplab.cs.berkeley.edu/jenkins/job/Alluxio-Pull-Request-Builder/4429/console

Oscilloputer0627 commented 5 years ago

This is only part of it. The whole output should be like this,https://amplab.cs.berkeley.edu/jenkins/job/Alluxio-Pull-Request-Builder/4429/console

I am sorry that's all, I ran "mvn clean install -DskipTests > log.txt"

newnius commented 5 years ago

Try without > log.txt, or change it to 2> error.txt

Oscilloputer0627 commented 5 years ago

Try without > log.txt, or change it to 2> error.txt

ok, I am re-downloading the project, will do soon, I hope the last " license problem" will go away first.

newnius commented 5 years ago

I got it.

Some files do not have the expected license header

It seems that you changed the license sentences.

Oscilloputer0627 commented 5 years ago

I got it.

Some files do not have the expected license header

It seems that you changed the license sentences.

not that error, the style check

Oscilloputer0627 commented 5 years ago

I got it.

Some files do not have the expected license header

It seems that you changed the license sentences.

just wait for a new log

Oscilloputer0627 commented 5 years ago

I got it.

Some files do not have the expected license header

It seems that you changed the license sentences.

or how do I suppose to find which file it is??

newnius commented 5 years ago

https://amplab.cs.berkeley.edu/jenkins/job/Alluxio-Pull-Request-Builder/4420/consoleText

Just scroll up, the exact problem should be listed not far from the test result summary.

For example here:

java.io.IOException: java.lang.RuntimeException: alluxio.exception.status.UnavailableException: Failed to connect to FileSystemMasterClient @ 9cd60a95e2f8/172.17.0.2:46585 after 7 attempts

Oscilloputer0627 commented 5 years ago

https://amplab.cs.berkeley.edu/jenkins/job/Alluxio-Pull-Request-Builder/4420/consoleText

Just scroll up, the extract problem should be listed not far from the test result summary.

For example here:

java.io.IOException: java.lang.RuntimeException: alluxio.exception.status.UnavailableException: Failed to connect to FileSystemMasterClient @ 9cd60a95e2f8/172.17.0.2:46585 after 7 attempts

nope, there is no, I know the Jenkins shows these things, but the maven is not showing. what is the proper command line that makes it output like that???

newnius commented 5 years ago

I think the results shall be same. By default > would't redirect stderr.

Oscilloputer0627 commented 5 years ago

I think the results shall be same. By default > would't redirect stderr.

yeahh.... let me try this.

Oscilloputer0627 commented 5 years ago

I think the results shall be same. By default > would't redirect stderr.

Hey, github says I can't comment long text, error.txt is casted as you instructed I mailed it to you ,please check out. thanks

Oscilloputer0627 commented 5 years ago

I think the results shall be same. By default > would't redirect stderr.

I am gonna give it to Jenkins to see what it says

Oscilloputer0627 commented 5 years ago

can you run the code, sorry for taking too long...

newnius commented 5 years ago

/usr/src/alluxio/core/common/src/main/java/alluxio/AbstractClient.java:115: error: Line is longer than 100 characters (found 162).

Oscilloputer0627 commented 5 years ago

/usr/src/alluxio/core/common/src/main/java/alluxio/AbstractClient.java:115: error: Line is longer than 100 characters (found 162).

thanks, I solved the last one but now I get:

Inconsistent synchronization of alluxio.AbstractClient.mVersionService; locked 50% of time [alluxio.AbstractClient, alluxio.AbstractClient] Unsynchronized access at AbstractClient.java:[line 116]Synchronized access at AbstractClient.java:[line 230] IS2_INCONSISTENT_SYNC

this error is spotted by "Find Bug"

newnius commented 5 years ago

Yes, that's what we have discussed days ago. There seems sonething wrong with Java compliler or thedebug tool. I have no idea what is going wrong and how to solve it. 🤷‍♂️

I will mark this task as resolved. You can try to find the solution if you are instered in this.