-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[refactor] Migrate persistent queue to consolidated metadata format #13126
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (75.53%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #13126 +/- ##
==========================================
- Coverage 91.28% 91.26% -0.03%
==========================================
Files 510 510
Lines 28725 28812 +87
==========================================
+ Hits 26223 26295 +72
- Misses 1988 1991 +3
- Partials 514 526 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Please use changes from #13125 |
Hey… something is wrong here |
250d434
to
4aa8773
Compare
It's done! Apologies, I'm still getting comfortable with git rebase operations. |
exporter/exporterhelper/internal/queuebatch/persistent_queue.go
Outdated
Show resolved
Hide resolved
exporter/exporterhelper/internal/queuebatch/persistent_queue.go
Outdated
Show resolved
Hide resolved
exporter/exporterhelper/internal/queuebatch/persistent_queue.go
Outdated
Show resolved
Hide resolved
exporter/exporterhelper/internal/queuebatch/persistent_queue.go
Outdated
Show resolved
Hide resolved
Embed QueueMetadata directly into persistentQueue, replacing the scattered metadata fields. 1. Add QueueMetadata as a member of persistentQueue. 2. Delete redundant fields (queueSize, readIdx, writeIdx, …). Relates to #13126
Please rebase with latest changes |
…ry#13140) Embed QueueMetadata directly into persistentQueue, replacing the scattered metadata fields. 1. Add QueueMetadata as a member of persistentQueue. 2. Delete redundant fields (queueSize, readIdx, writeIdx, …). Relates to open-telemetry#13126
7d0eef9
to
1acbafc
Compare
exporter/exporterhelper/internal/queuebatch/persistent_queue.go
Outdated
Show resolved
Hide resolved
exporter/exporterhelper/internal/queuebatch/persistent_queue.go
Outdated
Show resolved
Hide resolved
exporter/exporterhelper/internal/queuebatch/persistent_queue.go
Outdated
Show resolved
Hide resolved
exporter/exporterhelper/internal/queuebatch/persistent_queue.go
Outdated
Show resolved
Hide resolved
exporter/exporterhelper/internal/queuebatch/persistent_queue.go
Outdated
Show resolved
Hide resolved
return err | ||
} | ||
|
||
if metadataSizerType != pq.set.sizerType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add support for this in a followup PR, for the moment in this case return error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not returning an error directly here for now. Please see my previous comment.
exporter/exporterhelper/internal/queuebatch/persistent_queue.go
Outdated
Show resolved
Hide resolved
…streamline metadata handling
Thanks for the review, @bogdandrutu! Changes are ready. |
This PR updates the persistence strategy to consolidate all relevant queue information (start, stop, in-progress, size) under a single key for each write operation.