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

Tristan Stevens commented on FLUME-2889:
----------------------------------------

Hi [~roshan_naik] and [~hshreedharan] - I'm a bit worried that what is 
committed onto trunk at the moment is a regression and will cause problems for 
any users using this (by setting the year to year 2000 +/- 1 year) - any chance 
we can take a look at some fix OR revert the previous patch?

> Fixes to  DateTime computations
> -------------------------------
>
>                 Key: FLUME-2889
>                 URL: https://issues.apache.org/jira/browse/FLUME-2889
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.6.0
>            Reporter: Roshan Naik
>            Assignee: Roshan Naik
>             Fix For: v1.7.0
>
>         Attachments: FLUME-2889-2.patch, FLUME-2889-4.patch, 
> FLUME-2889.3.patch, FLUME-2889.patch
>
>
> date.withYear(year+1)  can lead to incorrect date calculations .. for example 
> if  the date is Feb 29th.   need to use date.plusYears(1) instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to