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

Add CacheTtl to DataConf struct in iglu_resolver_model #403

Merged
merged 4 commits into from
Jul 16, 2024

Conversation

spenes
Copy link
Contributor

@spenes spenes commented Jul 5, 2024

Jira ref: PDP-1241

Main purpose of this PR is fixing the bug that leads to caching schemas indefinitely in Enrich. This bug is fixed by adding cacheTtl field to DataConf struct in iglu_resolver_model in control plane api.

Other changes:

  • cacheTtl in the iglu-resolver.json is increased to 60 seconds to avoid sending too much request to Iglu registries.
  • control-plane-api build was failing due to the problem of finding the dependency modules. It is solved by adding go.mod and go.sum files.
  • Go version is bumped to 1.22.
  • control-plane-api unit tests are fixed and they are included to Github Action workflow.

spenes added 3 commits July 3, 2024 16:18
When CacheTtl isn't in that struct, CacheTtl has been removed from iglu_resolver.json when adding external iglu with '/external-iglu' endpoint and that leads to caching schemas indefinitely.
Add go.mod and go.sum files
@spenes spenes force-pushed the fix/enrich-cache-big branch from c3c9558 to 4754128 Compare July 16, 2024 10:46
@spenes spenes force-pushed the fix/enrich-cache-big branch from 4754128 to 467ecc0 Compare July 16, 2024 10:53
@spenes spenes merged commit 467ecc0 into develop Jul 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants