Unable to restart the projection of a composite view
- Dominant language
- Scala
- Stars
- 301
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
Using `DELETE /v1/views/{org_label}/{project_label}/{view_id}/projections/{projection_id}/offset` endpoint does not seem to be reflected in the statistics.
After deleting the projection offset, here is an example of what's shown in the Delta logs:
```
2023-07-10 13:01:09 INFO c.e.b.n.d.p.c.p.CompositeProjections - Scheduling a FullRebuild from composite view https://bluebrain.github.io/nexus/vocabulary/searchView in project bbp-users/oliver
2023-07-10 13:01:12 INFO c.e.b.n.d.p.c.p.CompositeProjections - Acknowledging FullRebuild for composite view bbp-users/oliver/https://bluebrain.github.io/nexus/vocabulary/searchView
2023-07-10 13:01:12 INFO c.e.b.n.d.p.c.i.CompositeViewDef - Starting composite view 'bbp-users/oliver/https://bluebrain.github.io/nexus/vocabulary/searchView' with offset CompositeProgress(Map((https://bluebrain.github.io/nexus/vocabulary/searchSource,Main) -> At(280853)),Map(CompositeBranch(https://bluebrain.github.io/nexus/vocabulary/searchSource,https://bluebrain.github.io/nexus/vocabulary/searchProjection,Main) -> ProjectionProgress(At(280853),2023-07-10T09:16:57.864Z,68,67,0))).
```
Despite these logs, there does not seem to be anything reindexed in ES.
To reproduce:
1. Check the `` using `GET /v1/views/{org_label}/{project_label}/{view_id}/projections/{projection_id}/statistics`
2. Delete the projection offset using `DELETE /v1/views/{org_label}/{project_label}/{view_id}/projections/{projection_id}/offset`
3. After a minute, check the statistic as in point 1 again. The value `lastProcessedEventDateTime` will be unchanged.
Contributor guide
Research direction
Start with the DELETE offset and statistics endpoints, then inspect the CompositeProjections and CompositeViewDef paths shown in the logs. Reproduce the reset with the statistics endpoint and compare lastProcessedEventDateTime before and after; done means the reset triggers the expected projection reindexing and updated statistics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elasticsearch, scala
- Domain
- api, backend, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100