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

Balu Vellanki commented on FALCON-704:
--------------------------------------

To fix this, I plan to add an extra check in method getStartAndEndDate of 
AbstractInstanceManager class. 

{code}
if (startDate.compareTo(endDate) == 0) {
            endDate = new Date(startDate.getTime() + 1000); // Next sec
        }
{code}

Submitting the patch with this change. 

> Number of process instances returned in the response are null, when in the 
> request, start and end time specified are the same
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FALCON-704
>                 URL: https://issues.apache.org/jira/browse/FALCON-704
>             Project: Falcon
>          Issue Type: Bug
>    Affects Versions: 0.6
>         Environment: QA
>            Reporter: Karishma Gulati
>            Assignee: Balu Vellanki
>            Priority: Minor
>             Fix For: 0.6
>
>         Attachments: FALCON-704.patch
>
>
> Response generated is start time inclusive, and end time exclusive. So if the 
> same start and end time are mentioned,  no instances are returned. The 
> expected behaviou should probably be to return the instance of that time 
> stamp, if it exists.



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

Reply via email to