Skip to content

Conversation

devanbenz
Copy link

Taking a look at some of our new DeleteSeries changes I'm seeing two paths in which we can escape the function without releasing the lock

We hold the lock here 40ec5b0/tsdb/store.go#L1652

And then within this code block we can return errors without releasing the lock:

40ec5b0/tsdb/store.go#L1665-L1682

We do not log out the errors on the server side and bubble up by returning the error via the http handler to the client

40ec5b0/services/httpd/handler.go#L1060-L1064

(cherry picked from commit c67028a)

Taking a look at some of our new DeleteSeries changes I'm seeing two paths in which we can escape the function without releasing the lock

We hold the lock here 40ec5b0/tsdb/store.go#L1652

And then within this code block we can return errors without releasing the lock:

40ec5b0/tsdb/store.go#L1665-L1682

We do not log out the errors on the server side and bubble up by returning the error via the http handler to the client

40ec5b0/services/httpd/handler.go#L1060-L1064

(cherry picked from commit c67028a)
Copy link
Contributor

@davidby-influx davidby-influx left a comment

Choose a reason for hiding this comment

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

LGTM

@devanbenz devanbenz merged commit 21ab484 into 1.12 Sep 26, 2025
9 checks passed
@devanbenz devanbenz deleted the db/cherrypick-c6702 branch September 26, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants