Skip to content

HBase-22027: Split non-MR related parts of TokenUtil off into a Clien… - #361

Merged
saintstack merged 6 commits into
apache:masterfrom
srdo:HBASE-22027
Sep 19, 2019
Merged

HBase-22027: Split non-MR related parts of TokenUtil off into a Clien…#361
saintstack merged 6 commits into
apache:masterfrom
srdo:HBASE-22027

Conversation

@srdo

@srdosrdo commented Jul 6, 2019

Copy link
Copy Markdown
Contributor

…tTokenUtil, and move ClientTokenUtil to hbase-client

See https://issues.apache.org/jira/browse/HBASE-22027

…tTokenUtil, and move ClientTokenUtil to hbase-client
});
return future;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@Apache-HBase

This comment has been minimized.


package org.apache.hadoop.hbase.security.token;

import com.google.protobuf.ByteString;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we using the non-relocated classes here?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a mistake, nice catch. Will fix.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The deleted code in TokenUtil was using non relocated classes, as AuthenticationProtos uses the unshaded classes. Should I update AuthenticationProtos to reference shaded classes, or what do you think I should do here?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which I guess would require figuring out how to modify the generated code.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left the imports as-is for now.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think thats right for this client-facing class. Client stuff is all unshaded 2.5 pb hbase-protocol (as opposed to hbase-protocol-shaded).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having second thoughts now.

Why can't this new class be an Interface?

If an Interface, can hide stuff like this.

I can help refactor if you think Interface will work. Thanks

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I follow. How does making ClientTokenUtil an interface affect class shading? The implementation of the ClientTokenUtil interface would still have to reference the unshaded classes, right?

If you have an idea for refactoring this, I'd be happy to merge it into this PR. If you put up a PR against the HBASE-22027 branch at https://github.com/srdo/hbase, I could update this PR with your changes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried my 'idea' and realize my suggestion of no help -- pardon me. Trying my idea did help me w/ this review though.

Yes, it is appropriate here to use the non-relocated protobuf stuff --i.e. as you have it -- while auth goes via Coprocessor API.

* @throws IOException if a remote error or serialization problem occurs.
* @return the authentication token instance
* See {@link ClientTokenUtil#obtainToken(org.apache.hadoop.hbase.client.Connection)}.
* @deprecated Please use the corresponding method in {@link ClientTokenUtil} instead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and several of the other deprecated methods point folks to a method that's labeled IA.Private.

If there isn't a IA.Public method to send folks to, we should call out in the deprecation that folks should stop using the functionality or come ask dev@ if it's needed

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going by the posts here https://issues.apache.org/jira/browse/HBASE-22027?focusedCommentId=16789499&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16789499. As I understand, these methods should be IA.Private, as they return types that are IA.Private.

I don't know if there's a public replacement, but I'm happy to update the deprecation notice.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@srdo

srdo commented Jul 15, 2019

Copy link
Copy Markdown
ContributorAuthor

The failure on Jenkins seems to be the hbase-server not compiling because it can't find the new ClientTokenUtil class (e.g. https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/5/artifact/out/patch-unit-hbase-server.txt). This build command runs fine for me locally.

Is the script maybe set up so it is pulling in an old hbase-client jar?

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@srdo

srdo commented Jul 22, 2019

Copy link
Copy Markdown
ContributorAuthor

@busbey Is there anything I should do to get this approved?

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec75Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1hbaseanti0Patch does not have any anti-patterns.
+1@author1The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
0mvndep30Maven dependency ordering for branch
+1mvninstall352master passed
+1compile81master passed
+1checkstyle104master passed
+1shadedjars278branch has no errors when building our shaded downstream artifacts.
+1javadoc56master passed
0spotbugs277Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs354master passed
_ Patch Compile Tests _
0mvndep17Maven dependency ordering for patch
+1mvninstall311the patch passed
-1compile41hbase-server in the patch failed.
-1javac41hbase-server in the patch failed.
+1checkstyle106the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars308patch has no errors when building our shaded downstream artifacts.
-1hadoopcheck491The patch causes 10 errors with Hadoop v2.9.2.
-1hadoopcheck649The patch causes 10 errors with Hadoop v3.1.2.
-1javadoc36hbase-server generated 28 new + 0 unchanged - 0 fixed = 28 total (was 0)
-1findbugs43hbase-server in the patch failed.
_ Other Tests _
+1unit110hbase-client in the patch passed.
-1unit47hbase-server in the patch failed.
+1asflicense24The patch does not generate ASF License warnings.
3247
SubsystemReport/Notes
DockerClient=19.03.0 Server=19.03.0 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/29/artifact/out/Dockerfile
GITHUB PR#361
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 214ac9725f02 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-361/out/precommit/personality/provided.sh
git revisionmaster / de98fee
Default Java1.8.0_181
compilehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/29/artifact/out/patch-compile-hbase-server.txt
javachttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/29/artifact/out/patch-compile-hbase-server.txt
hadoopcheckhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/29/artifact/out/patch-javac-2.9.2.txt
hadoopcheckhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/29/artifact/out/patch-javac-3.1.2.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/29/artifact/out/diff-javadoc-javadoc-hbase-server.txt
findbugshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/29/artifact/out/patch-findbugs-hbase-server.txt
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/29/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/29/testReport/
Max. process+thread count295 (vs. ulimit of 10000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/29/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec38Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 2 new or modified test files.
_ master Compile Tests _
0mvndep38Maven dependency ordering for branch
+1mvninstall314master passed
+1compile83master passed
+1checkstyle109master passed
+1shadedjars274branch has no errors when building our shaded downstream artifacts.
+1javadoc58master passed
0spotbugs248Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs312master passed
_ Patch Compile Tests _
0mvndep17Maven dependency ordering for patch
+1mvninstall296the patch passed
+1compile81the patch passed
+1javac80the patch passed
+1checkstyle106the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars269patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck946Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1javadoc56the patch passed
+1findbugs362the patch passed
_ Other Tests _
+1unit121hbase-client in the patch passed.
-1unit10276hbase-server in the patch failed.
+1asflicense61The patch does not generate ASF License warnings.
14222
ReasonTests
Failed junit testshadoop.hbase.master.replication.TestTransitPeerSyncReplicationStateProcedureRetry
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/152/artifact/out/Dockerfile
GITHUB PR#361
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 011e8c91f2e8 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-361/out/precommit/personality/provided.sh
git revisionmaster / 8e8bd8b
Default Java1.8.0_181
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/152/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/152/testReport/
Max. process+thread count4873 (vs. ulimit of 10000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/152/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.


package org.apache.hadoop.hbase.security.token;

import com.google.protobuf.ByteString;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think thats right for this client-facing class. Client stuff is all unshaded 2.5 pb hbase-protocol (as opposed to hbase-protocol-shaded).

@saintstacksaintstack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some notes informed by my trying to make an impl.


package org.apache.hadoop.hbase.security.token;

import com.google.protobuf.ByteString;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried my 'idea' and realize my suggestion of no help -- pardon me. Trying my idea did help me w/ this review though.

Yes, it is appropriate here to use the non-relocated protobuf stuff --i.e. as you have it -- while auth goes via Coprocessor API.

* @return the authentication token instance, wrapped by a {@link CompletableFuture}.
*/
@InterfaceAudience.Private
public static CompletableFuture<Token<AuthenticationTokenIdentifier>> obtainToken(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is public so the TokenUtil on server can use this method? Can it be package private given both TokenUtil and this class are in the same java package? Then you could drop the IA Private.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm... but seems like you want these to be public now? You are pointing users of TokenUtil here?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is public so TokenUtil can delegate to this method, but also so any internal HBase code that needs this method can use it. The TokenUtil methods have been deprecated, so new internal HBase code would ideally use ClientTokenUtil instead.

If there isn't a need for these methods elsewhere in HBase, I'm happy to try making them package private.

The Javadoc on the deprecated methods in TokenUtil explicitly says not to use these methods when you are developing non-HBase code. The only users I want to point to ClientTokenUtil (except obtainAndCacheToken) are internal HBase users.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also happy to update any call sites in HBase so they use the ClientTokenUtil methods instead of the now deprecated TokenUtil methods.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The audience annotations are for downstreamers, not for hbase internally.

Given ClientTokenUtil is a new class, we have opportunity for setting access as we see fit.

The #toToken methods are used internal to the package only it seems (tests and the class-itself). Suggest these become package private or private especially the overrides that take protobufs.

Otherwise, methods seem innocuous-looking. The less API we make public, the better otherwise, make a call.

Regards changing internal usage, could do here or in a follow-on.

Thanks for persisting on this.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only obtainToken(AsyncConnection) seems to need to be public, as it is used by SecureBulkLoadManager. Everything else can be package private. Updated the PR to make the methods package private, as well as to get rid of uses of the deprecated TokenUtil methods.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced the use of reflection in TestClientTokenUtil with just calling the obtainToken methods directly. The existing code doesn't find package private methods, causing the test to fail. I grepped for the method names, and they don't seem to be used via reflection anywhere else in HBase.

* @return the authentication token instance
*/
@InterfaceAudience.Private
public static Token<AuthenticationTokenIdentifier> obtainToken(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, looks like used by test only and the tests are in same package.

…hods. Make methods that don't need to be public package-private
@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
💙reexec0m 35sDocker mode activated.
_ Prechecks _
💚dupname0m 0sNo case conflicting files found.
💚hbaseanti0m 0sPatch does not have any anti-patterns.
💚@author0m 0sThe patch does not contain any @author tags.
💚test4tests0m 0sThe patch appears to include 4 new or modified test files.
_ master Compile Tests _
💙mvndep0m 36sMaven dependency ordering for branch
💚mvninstall5m 18smaster passed
💚compile1m 21smaster passed
💚checkstyle1m 50smaster passed
💚shadedjars4m 28sbranch has no errors when building our shaded downstream artifacts.
💚javadoc1m 2smaster passed
💙spotbugs4m 4sUsed deprecated FindBugs config; considering switching to SpotBugs.
💚findbugs5m 9smaster passed
_ Patch Compile Tests _
💙mvndep0m 15sMaven dependency ordering for patch
💚mvninstall4m 58sthe patch passed
💚compile1m 20sthe patch passed
💚javac1m 20sthe patch passed
💚checkstyle1m 48sthe patch passed
💚whitespace0m 0sThe patch has no whitespace issues.
💚shadedjars4m 36spatch has no errors when building our shaded downstream artifacts.
💚hadoopcheck15m 28sPatch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚javadoc0m 58sthe patch passed
💚findbugs5m 23sthe patch passed
_ Other Tests _
💔unit1m 39shbase-client in the patch failed.
💚unit160m 49shbase-server in the patch passed.
💚asflicense1m 5sThe patch does not generate ASF License warnings.
225m 24s
ReasonTests
Failed junit testshadoop.hbase.security.token.TestClientTokenUtil
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/153/artifact/out/Dockerfile
GITHUB PR#361
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 10a411869ed2 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-361/out/precommit/personality/provided.sh
git revisionmaster / cb62f73
Default Java1.8.0_181
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/153/artifact/out/patch-unit-hbase-client.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/153/testReport/
Max. process+thread count4610 (vs. ulimit of 10000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/153/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
💙reexec0m 29sDocker mode activated.
_ Prechecks _
💚dupname0m 0sNo case conflicting files found.
💚hbaseanti0m 0sPatch does not have any anti-patterns.
💚@author0m 0sThe patch does not contain any @author tags.
💚test4tests0m 0sThe patch appears to include 4 new or modified test files.
_ master Compile Tests _
💙mvndep0m 35sMaven dependency ordering for branch
💚mvninstall5m 43smaster passed
💚compile1m 22smaster passed
💚checkstyle2m 3smaster passed
💚shadedjars5m 16sbranch has no errors when building our shaded downstream artifacts.
💚javadoc1m 6smaster passed
💙spotbugs4m 24sUsed deprecated FindBugs config; considering switching to SpotBugs.
💚findbugs5m 40smaster passed
_ Patch Compile Tests _
💙mvndep0m 13sMaven dependency ordering for patch
💚mvninstall5m 33sthe patch passed
💚compile1m 26sthe patch passed
💚javac1m 26sthe patch passed
💔checkstyle0m 35shbase-client: The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
💚whitespace0m 0sThe patch has no whitespace issues.
💚shadedjars5m 1spatch has no errors when building our shaded downstream artifacts.
💚hadoopcheck16m 58sPatch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚javadoc0m 57sthe patch passed
💚findbugs5m 48sthe patch passed
_ Other Tests _
💚unit1m 49shbase-client in the patch passed.
💚unit156m 57shbase-server in the patch passed.
💚asflicense0m 47sThe patch does not generate ASF License warnings.
226m 47s
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/154/artifact/out/Dockerfile
GITHUB PR#361
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 4580648ed206 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-361/out/precommit/personality/provided.sh
git revisionmaster / cb62f73
Default Java1.8.0_181
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/154/artifact/out/diff-checkstyle-hbase-client.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/154/testReport/
Max. process+thread count4496 (vs. ulimit of 10000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/154/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
💙reexec1m 17sDocker mode activated.
_ Prechecks _
💚dupname0m 0sNo case conflicting files found.
💚hbaseanti0m 0sPatch does not have any anti-patterns.
💚@author0m 0sThe patch does not contain any @author tags.
💚test4tests0m 0sThe patch appears to include 4 new or modified test files.
_ master Compile Tests _
💙mvndep0m 33sMaven dependency ordering for branch
💚mvninstall5m 47smaster passed
💚compile1m 25smaster passed
💚checkstyle2m 6smaster passed
💚shadedjars5m 4sbranch has no errors when building our shaded downstream artifacts.
💚javadoc1m 1smaster passed
💙spotbugs4m 28sUsed deprecated FindBugs config; considering switching to SpotBugs.
💚findbugs5m 39smaster passed
_ Patch Compile Tests _
💙mvndep0m 15sMaven dependency ordering for patch
💚mvninstall5m 26sthe patch passed
💚compile1m 25sthe patch passed
💚javac1m 25sthe patch passed
💚checkstyle2m 0sthe patch passed
💚whitespace0m 0sThe patch has no whitespace issues.
💚shadedjars5m 1spatch has no errors when building our shaded downstream artifacts.
💚hadoopcheck17m 25sPatch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚javadoc0m 55sthe patch passed
💚findbugs6m 17sthe patch passed
_ Other Tests _
💚unit1m 55shbase-client in the patch passed.
💔unit271m 13shbase-server in the patch failed.
💚asflicense0m 52sThe patch does not generate ASF License warnings.
342m 44s
ReasonTests
Failed junit testshadoop.hbase.client.TestAsyncTableAdminApi
hadoop.hbase.client.TestFromClientSide3
hadoop.hbase.master.TestMasterShutdown
SubsystemReport/Notes
DockerClient=19.03.2 Server=19.03.2 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/155/artifact/out/Dockerfile
GITHUB PR#361
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 8633bba476a7 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-361/out/precommit/personality/provided.sh
git revisionmaster / ab076b0
Default Java1.8.0_181
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/155/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/155/testReport/
Max. process+thread count4812 (vs. ulimit of 10000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/155/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
💙reexec0m 45sDocker mode activated.
_ Prechecks _
💚dupname0m 0sNo case conflicting files found.
💚hbaseanti0m 0sPatch does not have any anti-patterns.
💚@author0m 0sThe patch does not contain any @author tags.
💚test4tests0m 0sThe patch appears to include 4 new or modified test files.
_ master Compile Tests _
💙mvndep0m 39sMaven dependency ordering for branch
💚mvninstall7m 1smaster passed
💚compile1m 37smaster passed
💚checkstyle2m 15smaster passed
💚shadedjars5m 58sbranch has no errors when building our shaded downstream artifacts.
💚javadoc1m 16smaster passed
💙spotbugs5m 2sUsed deprecated FindBugs config; considering switching to SpotBugs.
💚findbugs6m 21smaster passed
_ Patch Compile Tests _
💙mvndep0m 16sMaven dependency ordering for patch
💚mvninstall6m 27sthe patch passed
💚compile1m 35sthe patch passed
💚javac1m 35sthe patch passed
💚checkstyle2m 17sthe patch passed
💚whitespace0m 0sThe patch has no whitespace issues.
💚shadedjars5m 46spatch has no errors when building our shaded downstream artifacts.
💚hadoopcheck20m 0sPatch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚javadoc1m 12sthe patch passed
💚findbugs6m 39sthe patch passed
_ Other Tests _
💚unit2m 2shbase-client in the patch passed.
💚unit157m 44shbase-server in the patch passed.
💚asflicense1m 44sThe patch does not generate ASF License warnings.
240m 0s
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/1/artifact/out/Dockerfile
GITHUB PR#361
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 102d9c34f74e 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-361/out/precommit/personality/provided.sh
git revisionmaster / a0e8723
Default Java1.8.0_181
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/1/testReport/
Max. process+thread count5160 (vs. ulimit of 10000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/1/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@saintstacksaintstack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice.

@busbey Will commit in next day or so. Take a looksee if you get a chance.

@ClassRule
public static final HBaseClassTestRule CLASS_RULE =
HBaseClassTestRule.forClass(TestTokenUtil.class);
HBaseClassTestRule.forClass(TestClientTokenUtil.class);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit spacing

@saintstack
saintstack merged commit 0ec0a94 into apache:masterSep 19, 2019
@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
💙reexec0m 36sDocker mode activated.
_ Prechecks _
💚dupname0m 0sNo case conflicting files found.
💚hbaseanti0m 0sPatch does not have any anti-patterns.
💚@author0m 0sThe patch does not contain any @author tags.
💚test4tests0m 0sThe patch appears to include 4 new or modified test files.
_ master Compile Tests _
💙mvndep0m 35sMaven dependency ordering for branch
💚mvninstall5m 21smaster passed
💚compile1m 27smaster passed
💚checkstyle1m 56smaster passed
💚shadedjars4m 52sbranch has no errors when building our shaded downstream artifacts.
💚javadoc1m 2smaster passed
💙spotbugs4m 17sUsed deprecated FindBugs config; considering switching to SpotBugs.
💚findbugs5m 26smaster passed
_ Patch Compile Tests _
💙mvndep0m 15sMaven dependency ordering for patch
💚mvninstall5m 3sthe patch passed
💚compile1m 24sthe patch passed
💚javac1m 24sthe patch passed
💚checkstyle1m 51sthe patch passed
💚whitespace0m 0sThe patch has no whitespace issues.
💚shadedjars4m 43spatch has no errors when building our shaded downstream artifacts.
💚hadoopcheck17m 18sPatch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚javadoc1m 5sthe patch passed
💚findbugs6m 22sthe patch passed
_ Other Tests _
💚unit1m 58shbase-client in the patch passed.
💚unit165m 40shbase-server in the patch passed.
💚asflicense1m 2sThe patch does not generate ASF License warnings.
236m 8s
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/2/artifact/out/Dockerfile
GITHUB PR#361
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 7c01b08952c7 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-361/out/precommit/personality/provided.sh
git revisionmaster / 1fec3d1
Default Java1.8.0_181
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/2/testReport/
Max. process+thread count4486 (vs. ulimit of 10000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-361/2/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

srdo added a commit to srdo/hbase that referenced this pull request Sep 20, 2019
apache#361)
* HBase-22027: Split non-MR related parts of TokenUtil off into a ClientTokenUtil, and move ClientTokenUtil to hbase-client
* Replace uses of deprecated TokenUtil methods with ClientTokenUtil methods. Make methods that don't need to be public package-private
* Don't use reflection where not necessary in TestClientTokenUtil
Signed-off-by: Sean Busbey <busbey@apache.org>
Signed-off-by: stack <stack@apache.org>
@srdosrdo mentioned this pull request Sep 20, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@srdo@Apache-HBase@busbey@saintstack