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

Backport CASSANDRA-10392 - Custom Tracing Implementations #600

Open
wants to merge 6 commits into
base: palantir-cassandra-2.2.18
Choose a base branch
from

Conversation

tpetracca
Copy link
Contributor

@tpetracca tpetracca commented Dec 12, 2024

This backports CASSANDRA-10392: apache/cassandra@bf25e66

Doing this in the process of rolling out integration of tracing (more for associating client oriented trace ids with service logs, rather than traces themselves) with the rest of our infra.

In practice 2.218 has CASSANDRA-11465 (7bd65a1) and CASSANDRA-12754 (2122ff8) which weren't yet on the 3.0 branch when CASSANDRA-10392 was introduced. So I tried to get cute and stack some reverts/cherry-picks to make it work a bit cleaner...

To make this make a little sense, when apache/cassandra takes hotfixes to a specific version, they then do chains of merge commits of the branch for that version through higher version branches up to trunk. Thus in practice the "merge commits" are just the original change + conflict resolution for each branch up to that point. So the git history typically looks something like (in this example I picked CASSANDRA-11465):
Screenshot 2024-12-12 at 5 40 11 PM

Vaguely what I did (in this order) was:

  • git revert 2122ff88fe
    • This reverts CASSANDRA-12754 from 2.2.x
    • I ignored the changes to CHANGES.txt
  • git revert 7bd65a129c
    • This reverts CASSANDRA-11465 from 2.2.x
    • I ignored the changes to CHANGES.txt
  • git cherry-pick bf25e66
    • This backports CASSANDRA-10392, which was directly on trunk and first released in 3.4
    • Again, I ignored changes to CHANGES.txt
  • git cherry-pick -m1 8e775ea
    • This backports CASSANDRA-11465, specifcally the merge commit of it from 3.0 into 3.x (which was at the time 3.9)
    • I ignored changes to CHANGES.txt
    • There were other conflicts in StageManager.java due to a method visible for testing that for now I've kept to clean up (if possible) later
  • git cherry-pick -m1 94a01f6
    • This backports CASSANDRA-12754, specifically the merge commit of it from 3.0 into 3.x
    • Again, ignored CHANGES.txt
    • There were a set of conflicts caused by CASSANDRA-11425 (largely to a test file that doesn't exist yet) -> I removed them

tpetracca and others added 6 commits December 12, 2024 17:00
… to 0"

tpetracca: Ignores changes to CHANGES.txt

This reverts commit 2122ff8.
…t same consistency level client side"

tpetracca: ignored changes to CHANGES.txt; had conflicts in StageManager.java for no-op task and testing method

This reverts commit 7bd65a1.
tpetracca: ignored changes to CHANGES.txt

Patch by Mick Semb Wever; reviewed by tjake for CASSANDRA-10392
…onsistency level client side

This was originally: Merge branch 'cassandra-3.0' into cassandra-3.9
Ignored changes to CHANGES.txt
Had conflicts in StageManager.java due to test method I wasn't sure if I could delete in earlier commit
Was originally the merge commit: Merge branch 'cassandra-3.0' into cassandra-3.X
Ignored changes to CHANGES.txt
Resolved conflicts in backport caused by CASSANDRA-11425 (which isn't on 2.2.18)
@tpetracca tpetracca force-pushed the tp/CASSANDRA-10392-2 branch from a690e73 to 20ed3e7 Compare December 16, 2024 16:24
@tpetracca tpetracca changed the title Backport CASSANDRA-10392 Backport CASSANDRA-10392 - Custom Tracing Implementations Dec 16, 2024
@tpetracca tpetracca marked this pull request as ready for review December 16, 2024 16:31
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