Skip to content

fix: Upgrade SDK and reenable DDM - #5557

Merged
untitaker merged 1 commit into
masterfrom
fix/enable-ddm-2
Feb 16, 2024
Merged

untitaker merged 1 commit into
masterfrom
fix/enable-ddm-2

Conversation

@untitaker

Copy link
Copy Markdown
Member

it seems getsentry/sentry-python#2699 is
closed, and the outcome is:

  • deadlock is fixed
  • segfault is caused by improper uwsgi settings, and the SDK should warn
    if those are present

I ran snuba api locally and the warning doesn't trigger, so I assume
we're good. But also, I think we may have only encountered the deadlock,
not the segfault.

it seems getsentry/sentry-python#2699 is
closed, and the outcome is:

* deadlock is fixed
* segfault is caused by improper uwsgi settings, and the SDK should warn
  if those are present

I ran `snuba api` locally and the warning doesn't trigger, so I assume
we're good. But also, I think we may have only encountered the deadlock,
not the segfault.
@untitaker
untitaker requested a review from a team as a code owner February 16, 2024 15:31
@untitaker
untitaker enabled auto-merge (squash) February 16, 2024 15:35
@codecov

codecov Bot commented Feb 16, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a01834b) 89.98% compared to head (b9479bf) 89.94%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5557      +/-   ##
==========================================
- Coverage   89.98%   89.94%   -0.04%     
==========================================
  Files         892      892              
  Lines       43226    43226              
  Branches      288      288              
==========================================
- Hits        38895    38879      -16     
- Misses       4289     4305      +16     
  Partials       42       42              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@untitaker
untitaker merged commit 3842820 into master Feb 16, 2024
@untitaker
untitaker deleted the fix/enable-ddm-2 branch February 16, 2024 16:02
@sentrivana

sentrivana commented Feb 19, 2024 •

Copy link
Copy Markdown

@untitaker @evanh Hey folks, a bit late to the party, but in 1.40.4 metrics are still disabled by default and there are no warnings, those were only added in 1.40.5 (metrics were also re-enabled in that release).

Looking at the snuba uwsgi config you'd not get any warnings anyway since you're running with lazy_apps and enable_threads, which is one of the supported config combinations.
There's "threads": 1 which I'm unsure about though -- snuba seems to be using virtually all parts of the SDK that spawn a bg thread (profiler, metrics, transport, backpressure monitor, session flusher) -- but I think the threads setting might be controlling the worker threads and not the actual number of threads available to the app? Not sure, the docs are not great there. Maybe it's fine?

LMK if you observe any issues with 1.40.5.

@untitaker

Copy link
Copy Markdown
Member Author

ok #5564

@untitaker

Copy link
Copy Markdown
Member Author

but I think the threads setting might be controlling the worker threads and not the actual number of threads available to the app?

yes, pretty sure that's how it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants