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 cache: the cache metadata its always replaced even if its only updating a subportion of it #892

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

eliax1996
Copy link
Contributor

@eliax1996 eliax1996 commented Jun 4, 2024

the cache each time was replacing the original metadata even if the metadata request was just for a subset of topics, this pr tries to address this by updating only partially the metadata object

About this change - What it does

References: #xxxxx

Why this way

@eliax1996 eliax1996 force-pushed the eliax1996/fix-cache-for-user-rest-proxy branch 3 times, most recently from 79ac106 to afe8403 Compare June 4, 2024 11:12
karapace/kafka_rest_apis/__init__.py Show resolved Hide resolved
@eliax1996 eliax1996 force-pushed the eliax1996/fix-cache-for-user-rest-proxy branch 3 times, most recently from ade8f80 to 624f745 Compare June 4, 2024 13:32
@eliax1996 eliax1996 requested a review from jjaakola-aiven June 4, 2024 13:33
@eliax1996 eliax1996 marked this pull request as ready for review June 4, 2024 13:33
@eliax1996 eliax1996 requested review from a team as code owners June 4, 2024 13:33
@eliax1996 eliax1996 force-pushed the eliax1996/fix-cache-for-user-rest-proxy branch from 624f745 to 3748e61 Compare June 4, 2024 13:36
@eliax1996 eliax1996 changed the title fix cache: the cache each time was replacing the original metadata ev… fix cache: the cache metadata its always replaced even if its only updating a subportion og it Jun 4, 2024
@eliax1996 eliax1996 changed the title fix cache: the cache metadata its always replaced even if its only updating a subportion og it fix cache: the cache metadata its always replaced even if its only updating a subportion of it Jun 4, 2024
@eliax1996 eliax1996 force-pushed the eliax1996/fix-cache-for-user-rest-proxy branch from 3748e61 to be669bd Compare June 4, 2024 14:06
…en if the metadata request was just for a subset of topics, this pr tries to address this by updating only partially the metadata object
@eliax1996 eliax1996 force-pushed the eliax1996/fix-cache-for-user-rest-proxy branch from be669bd to 7d7fdf6 Compare June 4, 2024 14:08
karapace/kafka_rest_apis/__init__.py Outdated Show resolved Hide resolved
karapace/kafka_rest_apis/__init__.py Outdated Show resolved Hide resolved
karapace/kafka_rest_apis/__init__.py Outdated Show resolved Hide resolved
karapace/kafka_rest_apis/__init__.py Outdated Show resolved Hide resolved
karapace/kafka_rest_apis/__init__.py Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

test_rest_proxy_cluster_metadata_cache.py?

@eliax1996 eliax1996 dismissed jjaakola-aiven’s stale review June 5, 2024 08:47

addressed requested changes

@eliax1996 eliax1996 force-pushed the eliax1996/fix-cache-for-user-rest-proxy branch from 26080c2 to d7ea187 Compare June 5, 2024 09:03
@eliax1996 eliax1996 force-pushed the eliax1996/fix-cache-for-user-rest-proxy branch from d7ea187 to 121bf3b Compare June 5, 2024 09:06
@jjaakola-aiven jjaakola-aiven enabled auto-merge June 5, 2024 09:08
@jjaakola-aiven jjaakola-aiven merged commit 2cfe49c into main Jun 5, 2024
8 checks passed
@jjaakola-aiven jjaakola-aiven deleted the eliax1996/fix-cache-for-user-rest-proxy branch June 5, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants