Skip to content

HBASE-28825 Add deprecation cycle for methods in TokenUtil (#6237) #6242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class TokenUtil {
/**
* It was removed in HBase-2.0 but added again as spark code relies on this method to obtain
* delegation token
* @deprecated Since 2.0.0.
* @deprecated Since 2.0.0 and will be removed in 4.0.0.
*/
@Deprecated
public static Token<AuthenticationTokenIdentifier> obtainToken(Configuration conf)
Expand All @@ -55,8 +55,8 @@ public static Token<AuthenticationTokenIdentifier> obtainToken(Configuration con

/**
* See {@link ClientTokenUtil#obtainToken(org.apache.hadoop.hbase.client.Connection)}.
* @deprecated External users should not use this method. Please post on the HBase dev mailing
* list if you need this method. Internal HBase code should use
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
* the HBase dev mailing list if you need this method. Internal HBase code should use
* {@link ClientTokenUtil} instead.
*/
@Deprecated
Expand All @@ -67,8 +67,8 @@ public static Token<AuthenticationTokenIdentifier> obtainToken(Connection conn)

/**
* See {@link ClientTokenUtil#toToken(Token)}.
* @deprecated External users should not use this method. Please post on the HBase dev mailing
* list if you need this method. Internal HBase code should use
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
* the HBase dev mailing list if you need this method. Internal HBase code should use
* {@link ClientTokenUtil} instead.
*/
@Deprecated
Expand All @@ -78,8 +78,8 @@ public static AuthenticationProtos.Token toToken(Token<AuthenticationTokenIdenti

/**
* See {@link ClientTokenUtil#obtainToken(Connection, User)}.
* @deprecated External users should not use this method. Please post on the HBase dev mailing
* list if you need this method. Internal HBase code should use
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
* the HBase dev mailing list if you need this method. Internal HBase code should use
* {@link ClientTokenUtil} instead.
*/
@Deprecated
Expand All @@ -99,8 +99,8 @@ public static void obtainAndCacheToken(final Connection conn, User user)
/**
* See
* {@link ClientTokenUtil#toToken(org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.Token)}.
* @deprecated External users should not use this method. Please post on the HBase dev mailing
* list if you need this method. Internal HBase code should use
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
* the HBase dev mailing list if you need this method. Internal HBase code should use
* {@link ClientTokenUtil} instead.
*/
@Deprecated
Expand Down