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 AssertionError in snuba 0006_sorting_key_change migration #6203

Closed
wants to merge 2 commits into from

Conversation

wolandspb
Copy link

If timestamp already DateTime CODEC(T64, ZSTD(1)) migration fails.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

If timestamp already DateTime CODEC(T64, ZSTD(1)) migration fails.
@wolandspb wolandspb requested a review from a team as a code owner August 14, 2024 12:54
@wolandspb
Copy link
Author

I had the same issue as #6186
This PR should fix it.

@wolandspb
Copy link
Author

Hi, @evanh can u check this?

@MeredithAnya
Copy link
Member

@wolandspb I've opened #6633 since I think we've had some issues with CI and external contributors in the past so just wanted to make things easy and open one myself. I also verified that I got the same error, and that your fix works.

@wolandspb
Copy link
Author

Thanks a lot, @MeredithAnya!
Is it possible to you to check this PR too: getsentry/sentry#81902. Its not related, but since you have CI issues Im afraid that this will can take a while too.

MeredithAnya added a commit that referenced this pull request Dec 10, 2024
Taking over #6203 (from
@wolandspb) and creating this PR.

Verified that the assertion error below happens locally:

```
  File "/Users/meredithaheller/code/snuba/snuba/snuba_migrations/querylog/0006_sorting_key_change.py", line 41, in update_querylog_table
    assert new_create_table_statement.count(new_timestamp_type) == 0
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
```
@MeredithAnya
Copy link
Member

Thanks a lot, @MeredithAnya! Is it possible to you to check this PR too: getsentry/sentry#81902. Its not related, but since you have CI issues Im afraid that this will can take a while too.

That PR is out of scope for my team, so I don't really have control over when it will get looked at, but I can let other folks know.

@wolandspb
Copy link
Author

but I can let other folks know

That would be awesome, thanks!

@wolandspb wolandspb closed this Dec 10, 2024
@wolandspb wolandspb deleted the patch-1 branch December 10, 2024 20:47
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.

2 participants