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

feat: update rdr codes for dropped message #232

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

denopink
Copy link
Contributor

For dropped messages, dispose of the payload and update the rdr code to the following:

  • rdr value of 4 for payloads too large
  • rdr value of 102 for lower priority messages

@denopink denopink added enhancement improvement or small functionality added to an existing feature feature new functionality proposal/implementation labels Sep 13, 2024
@denopink denopink self-assigned this Sep 13, 2024
For dropped messages, dispose of the payload and update the rdr code to the following:
- rdr value of 4 for payloads too large
- rdr value of 102 for lower priority messages
@denopink denopink force-pushed the denopink/feat/qos-drop-message-response branch from 438d579 to fcaeb57 Compare September 13, 2024 15:10
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.56%. Comparing base (d2319bd) to head (461022d).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #232   +/-   ##
=======================================
  Coverage   77.55%   77.56%           
=======================================
  Files          74       74           
  Lines        4625     4626    +1     
=======================================
+ Hits         3587     3588    +1     
  Misses        841      841           
  Partials      197      197           
Flag Coverage Δ
unittests 77.56% <100.00%> (+<0.01%) ⬆️

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.

itm := heap.Pop(pq).(item)
// itm.discard will be true if `itm` has been marked to be discarded,
// i.e. trimmed by `pq.trim()'.
if itm.discard {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previously we were discarding the message without sending any response back to xmidt

@denopink denopink requested a review from schmidtw September 13, 2024 19:04
@schmidtw schmidtw merged commit 218e496 into main Sep 13, 2024
17 of 18 checks passed
@schmidtw schmidtw deleted the denopink/feat/qos-drop-message-response branch September 13, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvement or small functionality added to an existing feature feature new functionality proposal/implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

how should the xmidt-agent respond when messages are dropped either due to their size or due to queue trimming
2 participants