Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutdown dbengine event loop properly #16658

Merged
merged 2 commits into from Dec 27, 2023

Conversation

stelfrag
Copy link
Collaborator

Summary

New opcode to properly shutdown dbengine event loop

@stelfrag stelfrag marked this pull request as ready for review December 22, 2023 14:44
Copy link
Contributor

@thiagoftsm thiagoftsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unittest is working:

....
labels1 (copied) entries found 5 (should be 5)
0 errors found
time=2023-12-22T16:48:17.548+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="SQLite database :memory: initialization"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="Entry cpu.cpu inserted"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="Entry cpu.cpu inserted"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="Entry cpu.cpu updated"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="List context start after insert"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="List context end after insert"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="Entry cpu.cpu updated"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="List context start after insert"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="List context end after insert"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="List context start after insert"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="List context end after insert"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="Entry cpu.cpu deleted"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="List context start after delete"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="List context end after delete"
time=2023-12-22T16:48:17.549+00:00 comm=netdata source=daemon level=info tid=351 thread=MAIN msg="Closing context SQLite database"
UUID: failed 0 out of 100000 tests.

ALL TESTS PASSED

And PR is working as expected, LGTM!

@stelfrag stelfrag merged commit 28ef054 into netdata:master Dec 27, 2023
135 checks passed
@stelfrag stelfrag deleted the proper_shutdown_dbengine branch December 27, 2023 08:57
stelfrag added a commit to stelfrag/netdata that referenced this pull request Jan 31, 2024
* Shutdown dbengine event loop properly

* Adjust messages

(cherry picked from commit 28ef054)
@stelfrag stelfrag mentioned this pull request Jan 31, 2024
tkatsoulas pushed a commit that referenced this pull request Feb 6, 2024
* Shutdown dbengine event loop properly

* Adjust messages

(cherry picked from commit 28ef054)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants