You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/08/14 02:02:00 UTC

[jira] [Work logged] (MAPREDUCE-7342) Non-idempotent test in TestClientRedirect

     [ https://issues.apache.org/jira/browse/MAPREDUCE-7342?focusedWorklogId=637922&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-637922 ]

ASF GitHub Bot logged work on MAPREDUCE-7342:
---------------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Aug/21 02:01
            Start Date: 14/Aug/21 02:01
    Worklog Time Spent: 10m 
      Work Description: lzx404243 commented on pull request #2968:
URL: https://github.com/apache/hadoop/pull/2968#issuecomment-898794250


   Hi @aajisaka , could you please help reviewing this change? It resolves similar issues as #2499 . Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 637922)
    Time Spent: 0.5h  (was: 20m)

> Non-idempotent test in TestClientRedirect
> -----------------------------------------
>
>                 Key: MAPREDUCE-7342
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-7342
>             Project: Hadoop Map/Reduce
>          Issue Type: Test
>            Reporter: Zhengxi Li
>            Assignee: Zhengxi Li
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: MAPREDUCE-7342-master.001.patch
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The test *{{*org.apache.hadoop.mapred.TestClientRedirect.testRedirect}}** is not idempotent and fail if run twice in the same JVM, because it pollutes some states shared among tests. It may be good to clean this state pollution so that some other tests do not fail in the future due to the shared state polluted by this test.
> h3. Detail
> Running *{{TestClientRedirect.testRedirect}}* twice would result in the second run failing due to the following assertion error:
> {noformat}
> INFO  [main] service.AbstractService (AbstractService.java:noteFailure(267)) - Service test failed in state STARTED
> org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.net.BindException: 
> Problem binding to [0.0.0.0:8054] java.net.BindException: Address already in use
> {noformat}
> The root cause is that the RM server listening on port 8054) is started in the first run of this test, but hasn't been stopped when the test finishes. In the second run, when the test is trying to start the RMService, it fails because port 8054 is already in use, leading to the exception.
> PR link: https://github.com/apache/hadoop/pull/2968



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org