Every service starts bleve goroutines
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 274
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 103
Description
## Describe the bug
Start a service (except search). Have a look at the goroutines.
## Steps to reproduce
Steps to reproduce the behavior:
1. run a single oCIS service with pprof enabled
2. open the /debug/pprof endpoint and look at the goroutines
## Expected behavior
See no bleve goroutines
## Actual behavior
See bleve goroutines
```
4 @ 0x43e376 0x44e29c 0x1ecbf0f 0x4702e1
# 0x1ecbf0e github.com/blevesearch/bleve_index_api.AnalysisWorker+0x8e github.com/blevesearch/bleve_index_api@v1.0.3/analysis.go:46
```
## Additional context
Bleve analyzer use an init() function to register themselves (eg. https://github.com/blevesearch/bleve/blob/20e6eb5564e5c94478c865c6e03944882c7a886c/analysis/analyzer/keyword/keyword.go#L36-L38)
We import it through our config / command setup in the single binary, so it always started. Even if we just start one service (not using bleve).
Contributor guide
Assessment
This issue has not been assessed yet.