-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Results are being returned with descending serverVersions from the practitioner and organization endpoints. Work to support serverVersions was being tracked here. The beam-etl requires that these come in an ascending order as is the case for events.
Facing the following error at the moment because newer events are being fetched first
2022-04-26 12:49:31,004 [main] ERROR com.onaio.beam.etl.pipes.RunPipeline - Pipeline error:??? java.lang.RuntimeException: Batch was not monotonic - found an entity at an earlier server version than a previous entity: prevId=e8daa671-be96-4e1b-bd2d-4122afb88b03 prevServerVersion=48 id=e2eca7a5-5942-45ff-8add-6e558aec1608 serverVersion=47 reqServerVersion=0 batchServerVersions=48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,3,5,4,2,1??? at com.onaio.beam.etl.OpenSrpRestSource$OpenSrpRestReader.checkMonotonic(OpenSrpRestSource.java:671)??? at com.onaio.beam.etl.OpenSrpRestSource$OpenSrpRestReader.fetchNextBatch(OpenSrpRestSource.java:614)???
...
Reactions are currently unavailable