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

Akira Ajisaka commented on HADOOP-14281:
----------------------------------------

In {{new SimpleDateFormat("hh:mm:ss")}}, 'hh' should be 'HH'. The bug was fixed 
in the production code by HADOOP-13235, but not fixed in the test code.

> Fix TestKafkaMetrics
> --------------------
>
>                 Key: HADOOP-14281
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14281
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: metrics
>            Reporter: Akira Ajisaka
>              Labels: newbie
>
> TestKafkaMetrics#testPutMetrics fails
> {noformat}
> org.junit.ComparisonFailure: 
> Expected :{"hostname": "localhost", "timestamp": 1491385648730, "date": 
> "2017-04-05","time": "06:47:28","name": "Kafka record name" , "KafkaTag":  
> "test_tag", "KafkaCounter":  "123"}
> Actual   :{"hostname": "localhost", "timestamp": 1491385648730, "date": 
> "2017-04-05","time": "18:47:28","name": "Kafka record name" , "KafkaTag":  
> "test_tag", "KafkaCounter":  "123"}
>       at org.junit.Assert.assertEquals(Assert.java:115)
>       at org.junit.Assert.assertEquals(Assert.java:144)
>       at 
> org.apache.hadoop.metrics2.impl.TestKafkaMetrics.testPutMetrics(TestKafkaMetrics.java:148)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to