You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Stuart Bertram (JIRA)" <ji...@apache.org> on 2017/11/06 15:26:00 UTC

[jira] [Updated] (METRON-1300) DateFunctionsTest.testWeekOfYear:185 expected:<35> but was:<34>

     [ https://issues.apache.org/jira/browse/METRON-1300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Bertram updated METRON-1300:
-----------------------------------
    Description: 
When I build Apache Metron using {{mvn package}} then it fails early due to a unit test failure.

{{DateFunctionsTest.testWeekOfYear:185 expected:<35> but was:<34>}}

The epoch it is converting is the variable AUG2016, which has the value 1472131630748. This commented as Thu Aug 25 2016 09:27:10 EST and the {{date}} command converts it to Thu 25 Aug 14:27:10 BST 2016, but passing the format string {{+%V}} ("ISO week number, with Monday as first day of week (01..53)") gives a value of 34, which matches the "incorrect" value.

  was:
When I build Apache Metron using {{mvn package}} then it fails early due to a unit test failure.

{{
DateFunctionsTest.testWeekOfYear:185 expected:<35> but was:<34>
}}

The epoch it is converting is the variable AUG2016, which has the value 1472131630748. This commented as Thu Aug 25 2016 09:27:10 EST and the {{date}} command converts it to Thu 25 Aug 14:27:10 BST 2016, but passing the format string "+%V" ("ISO week number, with Monday as first day of week (01..53)") gives a value of 34, which matches the "incorrect" value.


> DateFunctionsTest.testWeekOfYear:185 expected:<35> but was:<34>
> ---------------------------------------------------------------
>
>                 Key: METRON-1300
>                 URL: https://issues.apache.org/jira/browse/METRON-1300
>             Project: Metron
>          Issue Type: Bug
>    Affects Versions: 0.4.1
>         Environment: openSUSE Tumbleweed 20171102, OpenJDK 1.8.0_144, GMT timezone
>            Reporter: Stuart Bertram
>
> When I build Apache Metron using {{mvn package}} then it fails early due to a unit test failure.
> {{DateFunctionsTest.testWeekOfYear:185 expected:<35> but was:<34>}}
> The epoch it is converting is the variable AUG2016, which has the value 1472131630748. This commented as Thu Aug 25 2016 09:27:10 EST and the {{date}} command converts it to Thu 25 Aug 14:27:10 BST 2016, but passing the format string {{+%V}} ("ISO week number, with Monday as first day of week (01..53)") gives a value of 34, which matches the "incorrect" value.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)