Informatievlaanderen / VSDS-LDESServer4J

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

Delete view with large amount of members- ERROR 1 --- [nio-8080-exec-3] .AdminRestResponseEntityExceptionHandler : Interrupted waiting for lock #877

Closed xdxxxdx closed 4 months ago

xdxxxdx commented 1 year ago

Prerequisites:

Scenario: User the admin api /admin/api/v1/eventstreams/{collectionName}/views to delete the by-page fragmentation of devices

curl -X 'DELETE' \
  'http://localhost:8080/admin/api/v1/eventstreams/devices/views/by-page' \
  -H 'accept: text/turtle'

Current result: LDES Server freezes and reboots, by-page view is not deleted even after reboot. In the log:

2023-08-07 13:32:25 2023-08-07T11:32:25.855Z  INFO 1 --- [nio-8080-exec-3] b.v.i.l.s.a.r.c.AdminViewsRestController : START deleting devices/by-page
2023-08-07 13:34:13 2023-08-07T11:34:13.147Z ERROR 1 --- [nio-8080-exec-3] .AdminRestResponseEntityExceptionHandler : Interrupted waiting for lock

Full log: LDESServer.txt

Expected result: There should not be error in the log by-page view should be deleted without LDES Server reboot.

jobulcke commented 4 months ago

As issue #721 was reopened, a fix for that issue was provided in https://github.com/Informatievlaanderen/VSDS-LDESServer4J/pull/1232. I tried after that fix to reproduce this bug with a dataset with 14M members and no exception was thrown, therefore, this issue can be closed