[
https://issues.apache.org/jira/browse/HADOOP-15984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17570206#comment-17570206
]
Viraj Jasani commented on HADOOP-15984:
---------------------------------------
Here is the summary of current progress:
Yarn modules are compiling fine after a lot of code changes. Before moving on
to MapReduce modules, I just wanted to make sure we have some level of
confidence with tests that are extending JerseyTest (using GrizzlyTestContainer
utilities). I am trying to run TestRMWebServices before making any further
progress overall.
I have codebases of latest Jersey 1.x and 2.x locally available to compare and
find alternatives, however lots of things are removed in Jersey 2, which is
making this a roller coaster journey. Many of the tests we are using have very
common references to Grizzly APIs on Jersey 1.x codebase but Jersey 2.x have
majority of these tests removed unfortunately and hence it's making our
progress difficult. So far, by digging into various stackoverflow references, I
was able to get these points to make some progress for TestRMWebServices (to
begin with) but it's still not completely working:
# RMWebServices has com.google.inject.Inject and com.google.inject.Singleton
references that new Jersey 2 based Grizzly + HK2 doesn't recognize anymore, so
we need to use javax.inject annotations.
# Dependency Injection doesn't have auto detection based on above annotations
so we need to bind the references with ResourceConfig registration.
# jakarta.annotation-api has to be included in our dependency with a bit older
1.3.5 version.
However, after chasing the test issues till above points, i still see
HttpServletResponse with `@`Context (which is used to inject info to class
field, bean props) still not getting properly injected, it is still null. I
have searched a lot but not able to get any references to resolve this over the
internet. And unfortunately, looking for references in Jersey 2.x codebase is
also not getting any helpful since they have removed lot of the tests that had
such reference in Jersey 1.x.
Before resolving any more compilation issues in mapreduce and other modules, i
have put up this WIP PR: [https://github.com/apache/hadoop/pull/4612]. If
someone can please help resolve TestRMWebServices, that would be really great.
Once we have some progress for TestRMWebServices, we can make progress for all
yarn tests. Once we are done with yarn tests, we can proceed further resolving
compilation issues for rest of the modules and target tests for all of them.
Once we are done with this overall, we can do functional testing on local dev
cluster and then deploy services to bit larger test cluster and re-run
functional tests.
cc [~ayushtkn] [~aajisaka] [~iwasakims] [[email protected]] [~weichiu]
> Update jersey from 1.19 to 2.x
> ------------------------------
>
> Key: HADOOP-15984
> URL: https://issues.apache.org/jira/browse/HADOOP-15984
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Akira Ajisaka
> Assignee: Viraj Jasani
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h
> Remaining Estimate: 0h
>
> jersey-json 1.19 depends on Jackson 1.9.2. Let's upgrade.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]