owncloud / owncloud/ocis

investigate goroutine leak in settings and graph services

Open
#6,621 1 comment 0 reactions 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 2h
Merged PRs (30d)
106

Description

After some load tests on 3.1.0-next.2 the number of goroutines stays quite high:
# settings
![image](https://github.com/owncloud/ocis/assets/956847/75d2470b-afe5-4410-87a4-758d82543fb5)

# graph
![image](https://github.com/owncloud/ocis/assets/956847/0a6cebe8-98be-460c-81ef-76172449df3b)

The code does not contain any search fixes so it might be caused by the search service still indexing ...

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the 3.1.0-next.2 load-test observation and compare goroutine counts for the settings and graph services while checking whether search is still indexing. Trace the retained goroutines to the responsible service; done means the leak or indexing-related cause is identified and the goroutine count no longer remains high after the test.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, performance, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.