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

ASF GitHub Bot logged work on HDFS-16702:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Aug/22 01:39
            Start Date: 03/Aug/22 01:39
    Worklog Time Spent: 10m 
      Work Description: snmvaughan opened a new pull request, #4680:
URL: https://github.com/apache/hadoop/pull/4680

   ### Description of PR
   
   When the MiniDFSClsuter detects that an exception caused an exit, it should 
include that exception as the cause for the AssertionError that it throws.  The 
current AssertError simply reports the message "Test resulted in an unexpected 
exit" and provides a stack trace to the location of the check for an exit 
exception.  This patch adds the original exception as the cause of the 
AssertError.
   
   ### How was this patch tested?
   
   This was used in local unit test runs during debugging.  The updated 
exception was particularly useful in CI unit test reports.
   
   ### 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?
   
   




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

    Worklog Id:     (was: 797472)
    Time Spent: 2h 10m  (was: 2h)

> MiniDFSCluster should report cause of exception in assertion error
> ------------------------------------------------------------------
>
>                 Key: HDFS-16702
>                 URL: https://issues.apache.org/jira/browse/HDFS-16702
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>         Environment: Tests running in the Hadoop dev environment image.
>            Reporter: Steve Vaughan
>            Assignee: Viraj Jasani
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> When the MiniDFSClsuter detects that an exception caused an exit, it should 
> include that exception as the cause for the AssertionError that it throws.  
> The current AssertError simply reports the message "Test resulted in an 
> unexpected exit" and provides a stack trace to the location of the check for 
> an exit exception.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to