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

Fix failed reading and writing to cache when file is too long #12109

Merged
merged 3 commits into from
May 31, 2022

Conversation

piochelepiotr
Copy link
Contributor

…long

What does this PR do?

Bug introduced by #11861
The issue is that the value in the cache can't be set / read when we have too many tags.
And self.instance.get('tags', []) doesn't return only custom_tags as I thought, but all the host tags. (Where is that logic?)

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

@codecov
Copy link

codecov bot commented May 31, 2022

Codecov Report

Merging #12109 (351f7d1) into master (ea457f9) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Flag Coverage Δ
kafka_consumer 84.28% <100.00%> (+1.62%) ⬆️

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

piochelepiotr and others added 2 commits May 31, 2022 13:21
@sarah-witt sarah-witt merged commit 9455227 into master May 31, 2022
@sarah-witt sarah-witt deleted the piotr-wolski/fix-kafka-check-long-names branch May 31, 2022 14:15
sarah-witt pushed a commit that referenced this pull request May 31, 2022
#12109)

* kafka_consumer: failed reading and writing to cache when file is too long

* kafka_consumer: Fixed cache key.

Co-authored-by: Julia <611228+hithwen@users.noreply.github.com>

* kafka_consumer: use constant for broker timestamp cache key

Co-authored-by: Julia <611228+hithwen@users.noreply.github.com>
@yzhan289 yzhan289 changed the title kafka_consumer: failed reading and writing to cache when file is too … Fix failed reading and writing to cache when file is too long Jun 28, 2022
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.

None yet

3 participants