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

Upgrade Badger v3->Badger v4 #5619

Merged
merged 8 commits into from
Jun 14, 2024
Merged

Conversation

hellspawn679
Copy link
Contributor

@hellspawn679 hellspawn679 commented Jun 13, 2024

Which problem is this PR solving?

Description of the changes

  • updated flag names that was changes from v3 to v4 causing the test's to fail

How was this change tested?

  • test log in the comments

Checklist

Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
@hellspawn679 hellspawn679 requested a review from a team as a code owner June 13, 2024 07:48
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.19%. Comparing base (1830148) to head (b2f55ec).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5619      +/-   ##
==========================================
- Coverage   96.20%   96.19%   -0.02%     
==========================================
  Files         327      327              
  Lines       16014    16014              
==========================================
- Hits        15406    15404       -2     
- Misses        432      433       +1     
- Partials      176      177       +1     
Flag Coverage Δ
badger_v1 8.05% <ø> (ø)
badger_v2 1.93% <ø> (ø)
cassandra-3.x-v1 16.45% <ø> (ø)
cassandra-3.x-v2 1.85% <ø> (ø)
cassandra-4.x-v1 16.45% <ø> (ø)
cassandra-4.x-v2 1.85% <ø> (ø)
elasticsearch-7.x-v1 18.89% <ø> (+0.01%) ⬆️
elasticsearch-8.x-v1 19.07% <ø> (-0.02%) ⬇️
elasticsearch-8.x-v2 19.07% <ø> (-0.02%) ⬇️
grpc_v1 9.48% <ø> (ø)
grpc_v2 7.52% <ø> (-0.02%) ⬇️
kafka 9.77% <ø> (ø)
opensearch-1.x-v1 18.94% <ø> (+0.01%) ⬆️
opensearch-2.x-v1 18.94% <ø> (+0.01%) ⬆️
opensearch-2.x-v2 18.93% <ø> (-0.02%) ⬇️
unittests 94.06% <ø> (-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.

yarn.lock Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
plugin/storage/badger/factory_test.go Outdated Show resolved Hide resolved
plugin/storage/badger/factory_test.go Show resolved Hide resolved
@yurishkuro
Copy link
Member

Please see testing requirements in the issue.

Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
@yurishkuro yurishkuro added the changelog:new-feature Change that should be called out as new feature in CHANGELOG label Jun 13, 2024
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
@yurishkuro
Copy link
Member

did you do the backwards compatibility test as described in the issue?

@hellspawn679
Copy link
Contributor Author

did you do the backwards compatibility test as described in the issue?

how can I do that? Is there a make command that I can use to check it?

@yurishkuro
Copy link
Member

yurishkuro commented Jun 13, 2024

how can I do that? Is there a make command that I can use to check it?

no, there's not. You'd need:

  • run all-in-one with badger storage from the main branch (or from one of the official released binaries)
    • specify non-ephemeral mode for badger so that it stores data in files on local disk
  • run hotrod demo and generate some traces, verify you can load them in the UI. Stop hotrod.
  • stop all-in-one and now run it from your branch
  • verify you can query & load the same traces in the UI using new version of Badger
  • capture a log of commands you ran and post here

@hellspawn679
Copy link
Contributor Author

steps taken :-

  1. [ TERMINAL: 1] git checkout main( current main branch)
  2. [ TERMINAL: 1]
mkdir tmp && cd tmp && mkdir key && mkdir span

image

  1. [ TERMINAL: 1 ] taken form here (badger)
export SPAN_STORAGE_TYPE=badger
export BADGER_EPHEMERAL=false
export BADGER_CONSISTENCY=true
export BADGER_DIRECTORY_KEY=/home/kali/go/new/jaeger/tmp/key
export BADGER_DIRECTORY_VALUE=/home/kali/go/new/jaeger/tmp/span
cd ..
make run-all-in-one
  1. [ TERMINAL: 2 ] open a new terminal for hotrod and run it using this command opens at localhost:8080
go run ./examples/hotrod/main.go all
  1. click on Rachel's Floral design and click on open trace

  2. this will create new file in /tmp dir
    image

  3. [TERMINAL: 1]we can see span process logs in terminal-1
    image

  4. and this is how UI look like
    image

  5. stop terminal-1 and terminal-2

  6. [TERMINAL: 1]

git checkout badger
make run-all-in-one
  1. open http://localhost:16686/search select frontend as service and find trace
    image
  2. terminal-1 after this
    image

@yurishkuro
Copy link
Member

that's an awesome log of testing!

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

Thanks!

@yurishkuro yurishkuro merged commit f9e5eb8 into jaegertracing:main Jun 14, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:new-feature Change that should be called out as new feature in CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Badger storage to v4
2 participants