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

Add Purge method for cassandra #5414

Merged

Conversation

akagami-harsh
Copy link
Member

Which problem is this PR solving?

Description of the changes

  • added purge for method for cassandra

How was this change tested?

  • via integration tests

Checklist

Signed-off-by: Harshvir Potpose <hpotpose62@gmail.com>
Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.53%. Comparing base (8f9a9e7) to head (7248c9a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5414      +/-   ##
==========================================
+ Coverage   94.50%   94.53%   +0.02%     
==========================================
  Files         346      346              
  Lines       16945    16947       +2     
==========================================
+ Hits        16014    16020       +6     
+ Misses        729      725       -4     
  Partials      202      202              
Flag Coverage Δ
badger_v1 10.29% <0.00%> (-0.01%) ⬇️
badger_v2 6.60% <0.00%> (+0.05%) ⬆️
cassandra-3.x 18.13% <100.00%> (-0.01%) ⬇️
cassandra-4.x 18.13% <100.00%> (-0.01%) ⬇️
elasticsearch-5.x 5.89% <0.00%> (?)
elasticsearch-6.x 5.89% <0.00%> (?)
elasticsearch-7.x 5.89% <0.00%> (?)
elasticsearch-8.x 5.90% <0.00%> (?)
grpc_v1 12.60% <0.00%> (-0.01%) ⬇️
grpc_v2 11.52% <0.00%> (-0.02%) ⬇️
kafka 9.96% <0.00%> (-0.01%) ⬇️
opensearch-1.x 5.90% <0.00%> (+<0.01%) ⬆️
opensearch-2.x 5.89% <0.00%> (-0.01%) ⬇️
unittests 91.33% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -75,6 +77,7 @@ func (s *CassandraStorageIntegration) initializeCassandra(t *testing.T) {
f := s.initializeCassandraFactory(t, []string{
"--cassandra.keyspace=jaeger_v1_dc1",
})
s.factory = f
s.session = f.PrimarySession()
Copy link
Member

Choose a reason for hiding this comment

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

session field can be deleted

Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro enabled auto-merge (squash) May 4, 2024 00:07
@yurishkuro yurishkuro merged commit 24a4e04 into jaegertracing:main May 4, 2024
38 checks passed
@akagami-harsh akagami-harsh deleted the add_cassandra_Purge_method branch May 4, 2024 09:10
Pushkarm029 pushed a commit to Pushkarm029/jaeger that referenced this pull request May 4, 2024
## Which problem is this PR solving?
-
jaegertracing#5398 (comment)

## Description of the changes
- added purge for method for cassandra

## How was this change tested?
- via integration tests

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [x] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `yarn lint` and `yarn test`

---------

Signed-off-by: Harshvir Potpose <hpotpose62@gmail.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Co-authored-by: Yuri Shkuro <github@ysh.us>
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