Skip to content

PATCH - fix: immediately purge caches on E173012 too many modified relations - DO NOT MERGE TO/FROM MAIN#418

Closed
yosiharan wants to merge 1 commit intomainfrom
patch/immediate-purge-on-too-many-modifed
Closed

PATCH - fix: immediately purge caches on E173012 too many modified relations - DO NOT MERGE TO/FROM MAIN#418
yosiharan wants to merge 1 commit intomainfrom
patch/immediate-purge-on-too-many-modifed

Conversation

@yosiharan
Copy link
Contributor

(cherry picked from commit e259a25)
Base commit: #392
Base deploy: https://descopeio.slack.com/archives/C04D389SWTT/p1772957296564369

…406)

* fix: immediately purge caches on E173012 "too many modified relations" error

When polling for modified relations returns E173012, the cache is now
purged immediately instead of waiting for the cooldown window. This error
is logged at WARN level (not ERROR) since it's an expected operational
scenario, reducing unnecessary Datadog alert noise.

Fixes: descope/etc#14411

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore(deps): update github.com/descope/common to latest main

- Updated common from v0.0.9-0.20260224084244 to v0.0.9-0.20260308105939
- Go version bumped from 1.24.6 to 1.26.1
- Also updated related dependencies (grpc, protoc-gen-*, phonenumbers)

* chore: dummy commit

* chore: fix linter issue (copy solution from common repo)

* chore: fix linter issue by building linter using go install

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Omer Cohen <omercnet@users.noreply.github.com>
(cherry picked from commit e259a25)
Copilot AI review requested due to automatic review settings March 11, 2026 11:19
@shuni-bot-dev
Copy link

shuni-bot-dev bot commented Mar 11, 2026

🐕 Review complete — View session on Shuni Portal 🐾

@yosiharan yosiharan marked this pull request as draft March 11, 2026 11:19
Copy link

@shuni-bot-dev shuni-bot-dev bot left a comment

Choose a reason for hiding this comment

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

🐕 Shuni's Review

Cherry-picked patch that adds immediate cache purge when the remote polling encounters an E173012 ("too many modified relations") error, bypassing the normal cooldown window.

No issues found — clean, focused fix with good test coverage (3 test cases covering the key scenarios). Good bones! 🦴

This comment was marked as outdated.

@yosiharan
Copy link
Contributor Author

Deployed

@yosiharan yosiharan closed this Mar 12, 2026
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