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

fix(flags): don't enclose in overall transaction so we get latest reads #15003

Merged
merged 3 commits into from
Apr 7, 2023

Conversation

neilkakkar
Copy link
Collaborator

Problem

I'm not 100% if this is what's going wrong (this is terribly hard to reproduce); but my hypothesis now is that because of the overarching transaction, the read committed mode implies even when we restart the inner transaction, we're seeing the exact same things as before, so the exact same problem happens.

This PR breaks it down into one top level transaction only, which hopefully will resolve this problem.

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

@neilkakkar neilkakkar requested a review from EDsCODE April 6, 2023 16:30
@neilkakkar neilkakkar marked this pull request as ready for review April 6, 2023 17:09
@EDsCODE EDsCODE merged commit a12977e into master Apr 7, 2023
@EDsCODE EDsCODE deleted the decide-fix-att-3 branch April 7, 2023 15:11
fuziontech added a commit that referenced this pull request Apr 7, 2023
* master:
  fix(flags): don't enclose in overall transaction so we get latest reads (#15003)
  fix(tests): make getEventsByPerson output stable to avoid flakes (#15009)
  feat(data-exploration): convert funnel correlation to data exploration (#14963)
  fix: Set hobby deployments to 'latest' by default (#14956)
  feat(hogql): lambdas (#14987)
  feat(hogql): arrays and tuples (#14986)
  fix(funnel): always use total step count for funnel chart label (#14993)
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.

2 participants