almex / Raildelays

Fill-in Excel sheet with delays from belgian railway company
http://repo1.maven.org/maven2/com/github/almex/
MIT License
7 stars 3 forks source link

FilterTwoSensPerDayProcessor seems to not handle correctly the last element of an Excel sheet #17

Closed almex closed 8 years ago

almex commented 10 years ago

Maybe it's linked to the issue [#16] or not. Following the log (and upon a restart in my test) if this processor re-process the last element it declare it as to be added to a new line instead of finding the matching element. Maybe it's a bug in the AbstractItemResourceLocator or its sub-classes. It has to checked upon a restart to validate all possibilities.

almex commented 8 years ago

As we have moved to ResourceLocator pattern I don't think this issue will happen again

almex commented 8 years ago

Those two logs expose the problem : step2Processor.txt step2Writer.txt 03/02/2016 Bruxelles -> Liège is not part of the new file

From 04/02/2016 this is what we have in the writer :

FlatFileItemWriter Writing to flat file with 1 items. SortedItemStreamWriter Item added: 2016-02-04 Liege-Guillemins Bruxelles-Central 06:40:00 07:37:00 7444 06:41:00 08:04:00 7444 27 DEPARTURE SortedItemStreamWriter Indexed item to=0 SortedItemStreamWriter Items sorted=1 ExcelSheetItemWriter Output file '/diskstation/NetDrive/999 - Divers/SNCB/retard_sncb 20160204.xls' created=true ExcelSheetItemWriter Previous row=null SortedItemStreamWriter Written 1 items

almex commented 8 years ago

Maybe the error is located in SortedItemStreamWriter...