[
https://issues.apache.org/jira/browse/HADOOP-11612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328101#comment-14328101
]
Robert Kanter commented on HADOOP-11612:
----------------------------------------
{quote}I thought i'd rebuilt curator against guava < 15 and didn't see
problems.{quote}
At the time, I don't think anything was using {{ChildReaper}}, so we didn't
catch it. I'm planning on using it for something new in YARN-2942. Also,
Curator 2.5.0's {{ChildReaper}} compiles fine against guava < 15.
{quote}so we should plan to switch back to curator ChildReaper at some point in
the future -this patch needs to reflect that.{quote}
I agree. What's the best way to reflect that? I was just going to file a
followup JIRA. Or is there an "Upgrade Guava JIRA"?
{quote}if there is more JUnit support in this patch —why not try to get it into
curator{quote}
It was mainly changing some imports and not pulling in the iRetry stuff from
the parent class. I don't think we can make the test compile against JUnit and
what Curator is using (TestNG?). In any case, we want the test in Hadoop for
now, to test the copied {{ChildReaper}}.
> Workaround for Curator's ChildReaper requiring Guava 15+
> --------------------------------------------------------
>
> Key: HADOOP-11612
> URL: https://issues.apache.org/jira/browse/HADOOP-11612
> Project: Hadoop Common
> Issue Type: Task
> Affects Versions: 2.8.0
> Reporter: Robert Kanter
> Assignee: Robert Kanter
> Attachments: HADOOP-11612.001.patch, HADOOP-11612.002.patch
>
>
> HADOOP-11492 upped the Curator version to 2.7.1, which makes the
> {{ChildReaper}} class use a method that only exists in newer versions of
> Guava (we have 11.0.2, and it needs 15+). As a workaround, we can copy the
> {{ChildReaper}} class into hadoop-common and make a minor modification to
> allow it to work with Guava 11.
> The {{ChildReaper}} is used by Curator to cleanup old lock znodes. Curator
> locks are needed by YARN-2942.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)