gentics / gentics/mesh

Search-Status Endpoint doesn't show running

Open
#487 1 comment 0 reactions 0 assignees View on GitHub
bug f/elasticsearch minor
Dominant language
Java
Stars
593
Forks
123
Avg merge
2d 18h
Merged PRs (30d)
4

Description

## Gentics Mesh Version, operating system, or hardware.
- v0.22.1

## Problem

I noticed that the response from the `/search/status`-endpoint has a field `indexSyncRunning`.
However, that field is always set to false and never changes as far as I can tell.

Seems like there's still a TODO there: https://github.com/gentics/mesh/blob/master/elasticsearch/src/main/java/com/gentics/mesh/search/index/AdminIndexHandler.java#L58

## Reproducer

Start the index sync via `POST` `/api/v1/search/sync`. Returns the message `The index sync process was started.`.

## Expected behaviour and actual behaviour

That the `indexSyncRunning` reflects if the sync is actually running.

Contributor guide

Open the contributing guide

Research direction

Start in elasticsearch/src/main/java/com/gentics/mesh/search/index/AdminIndexHandler.java at the TODO mentioned in the issue. Run POST /api/v1/search/sync, then query /search/status while synchronization is in progress and confirm that indexSyncRunning reports the actual state and changes when the process finishes.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, java
Domain
api, backend, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.