[ 
https://issues.apache.org/jira/browse/TEZ-3947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16498248#comment-16498248
 ] 

Jonathan Eagles commented on TEZ-3947:
--------------------------------------

[~ewohlstadter], please make use of the MediaType.isCompatible api to future 
proof this test and have it passing regardless of the hadoop version

Something like this.
{noformat}
    
assertTrue(MediaType.APPLICATION_JSON_TYPE.isCompatible(response.getType()));
{noformat}

> TestATSHistoryWithACLs fails with Hadoop3 and Jersey 1.19
> ---------------------------------------------------------
>
>                 Key: TEZ-3947
>                 URL: https://issues.apache.org/jira/browse/TEZ-3947
>             Project: Apache Tez
>          Issue Type: Sub-task
>            Reporter: Eric Wohlstadter
>            Assignee: Eric Wohlstadter
>            Priority: Major
>         Attachments: TEZ-3947.1.patch
>
>
> Without upgrading to Jersey 1.19, was running into NoSuchMethodError.
> After adding the upgrade to Jersey 1.19, I hit this change in behavior:
> {code}
> java.lang.AssertionError: expected:<application/json> but 
> was:<application/json; charset=utf-8>
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.failNotEquals(Assert.java:743)
>         at org.junit.Assert.assertEquals(Assert.java:118)
>         at org.junit.Assert.assertEquals(Assert.java:144)
>         at 
> org.apache.tez.dag.history.ats.acls.TestATSHistoryWithACLs.testDagLoggingEnabled(TestATSHistoryWithACLs.java:461)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to