Informatievlaanderen / VSDS-LDESServer4J

Linked Data Event Streams Server for Java
https://informatievlaanderen.github.io/VSDS-LDESServer4J
European Union Public License 1.2
10 stars 10 forks source link

After upgrading LDES Server, new ingested LDES member restarts the sequence from 1 #875

Closed xdxxxdx closed 9 months ago

xdxxxdx commented 1 year ago

Prerequisites

To Reproduce

  1. Pause the workbench output. curl -X POST "http://localhost:8081/admin/api/v1/pipeline/halt"
  2. Bring old server down (stop it, remove volumes and image without confirmation). docker compose rm --stop --force --volumes old-ldes-server
  3. Launch new server, wait until database migrated and server started docker compose up new-ldes-server -d docker logs --tail 1000 -f $(docker ps -q --filter "name=new-ldes-server$")
  4. Resume the workbench output. curl -X POST "http://localhost:8081/admin/api/v1/pipeline/resume"

Current behavior 851 NEW LDES members are ingested to the new LDES Server, together with the OLD 315 LDES members. => 1165 LDES members are in the iow_devices.ingest_ldesmember table The end of the sequenceNr is 851 instead of 1165 image

The sequenceNr is restarted from 1 from the new ingest members of the new LDES Server image

Table dump: iow_devices.ingest_ldesmember.zip

Expected behavior All 1165 ldes members should be in a continuously sequence?. e.g. from 1 to 1165

Yalz commented 9 months ago

Hi @xdxxxdx , Although this issue is still there, the reality is that this has very little impact on current customers. Everyone who used a ldes-server older than ~june 2023 might have this behaviour. But the worst thing that could come of this, is that a few members are fragmented out of order.

However since we don't have any more onboarders who haven't migrated yet. This is to be a non issue