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

ldes members are duplicated #119

Closed zargha closed 2 years ago

zargha commented 2 years ago

The Problem

The problem occurred while testing the e2e 20220705.demo1. The problem is seen during the Scenario: data set contains 2 fragments. beta.jsonld cannot be replicated to ldes server. Therefore, the NiFi workflow was stopped. First LdesClient has been started and then InvokeHTTP. This results in total of 750 ldes members whereas it should be alfa.jsonld + beta.jsonld = 500 members

Fragments uploaded:

curl -X POST http://localhost:9001/ldes -H 'Content-Type: application/json-ld' -d '@gipod-server-simulator/data/scenario3/alfa.jsonld'
curl -X POST http://localhost:9001/ldes -H 'Content-Type: application/json-ld' -d '@gipod-server-simulator/data/scenario3/beta.jsonld'
{"content-type":"application/json-ld","cache-control":"public, max-age=604800, immutable","id":"/api/v1/ldes/mobility-hindrances?generatedAtTime=2022-05-20T09:58:15.867Z"}{"content-type":"application/json-ld","cache-control":"public, max-age=604800, immutable","id":"/api/v1/ldes/mobility-hindrances?generatedAtTime=2022-05-25T10:22:45.82Z"}%                                                                                                                  

Environment

Components under test

mongodb: image

ldes-server: ldesserverduplicate.txt

Steps to reproduce

  1. Setup the demo as described here
  2. Scenario: replication has not yet started
  3. Scenario: replication has just started
  4. Scenario: data set contains 2 fragments
  5. Stop NiFi workflow
  6. Start LdesClient worflow
  7. Start InvokeHTTP workflow

The problem occurs during step 7 where duplicate fragments are seen in mongodb.

WLefever-Cegeka commented 2 years ago

Issue should be fixed in #120

zargha commented 2 years ago

The issue has been tested against the image: ghcr.io/informatievlaanderen/ldes-server:20220713T1625 and no duplication has been seen.