[
https://issues.apache.org/jira/browse/HADOOP-18427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17630081#comment-17630081
]
ASF GitHub Bot commented on HADOOP-18427:
-----------------------------------------
melissayou opened a new pull request, #5118:
URL: https://github.com/apache/hadoop/pull/5118
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
As part of
[HADOOP-18518](https://issues.apache.org/jira/browse/HADOOP-18518), this is the
3rd PR to fix deprecation of EnsurePath. in new Curator. It's a clean cherry
pick from [HADOOP-18427](https://issues.apache.org/jira/browse/HADOOP-18427)
and [HADOOP-18452](https://issues.apache.org/jira/browse/HADOOP-18452).
### How was this patch tested?
`mvn clean install -Pdist -Dtar -DskipTests -Dmaven.javadoc.skip` builds
success
### For code changes:
- [X] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
> Improve ZKDelegationTokenSecretManager#startThead With recommended methods.
> ---------------------------------------------------------------------------
>
> Key: HADOOP-18427
> URL: https://issues.apache.org/jira/browse/HADOOP-18427
> Project: Hadoop Common
> Issue Type: Improvement
> Components: common
> Affects Versions: 3.4.0
> Reporter: fanshilun
> Assignee: fanshilun
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.4.0
>
>
> When reading the code, I found a deprecated method to use. In
> ZKDelegationTokenSecretManager#startThead, the code here uses the Curator's
> EnsurePath,
> But EnsurePath is deprecated, use the recommended method instead
> public class EnsurePath
> Deprecated.
> Since 2.9.0 - Prefer
> CuratorFramework.create().creatingParentContainersIfNeeded() or
> CuratorFramework.exists().creatingParentContainersIfNeeded()
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]