Skip to content

Job fails when reader not able to read next record  #175

Description

@nfleury

Hi !

First of all thanks for this nice and useful framework !

I would like to understand why does a Job fails/stops when the reader cannot read the next record with RecordReader::readNextRecord() in default JobImpl ?

Don't you think this is a strange behavior (or at least not very flexible) to stop the job only if a single record cannot be retrieved among many other valid ones ?

What do you think if current behavior is activated for strict mode only otherwise it continues to loop

you would have somthing like this:

  //read next record
                Record currentRecord;
                try {
                    currentRecord = readNextRecord();
                    recordCount++;
                } catch (RecordReadingException e) {

                    eventManager.fireOnRecordReadingException(e);                    

                    if (parameters.isStrictMode()){
                        return report;                        
                    }else{
                        continue;    
                    }


                }

Thanks !

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions