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 #1748: High db update load because of callback event circuit breaker #1749

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

jnpsk
Copy link
Collaborator

@jnpsk jnpsk commented Oct 18, 2024

Changes made:

  1. Remove failure_count and timestamp_last_failure columns from pa_application_callback table.
  2. Rename resetTimeout app configuration property to failureResetTimeout.
  3. Keep the failureCount and timestampLastFailure variables used by circuit breaker in local cache, the same cache as for caching rest clients.

Copy link
Member

@romanstrobl romanstrobl left a comment

Choose a reason for hiding this comment

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

The test PowerAuthCallbackTest is still failing.

As discussed, will be addressed in another PR.

@@ -110,32 +110,6 @@
<createSequence sequenceName="pa_app_callback_event_seq" startValue="1" incrementBy="50" cacheSize="20"/>
</changeSet>

<changeSet id="8" logicalFilePath="powerauth-java-server/1.9.x/20240704-callback-event-table.xml" author="Jan Pesek">
Copy link
Member

@banterCZ banterCZ Oct 18, 2024

Choose a reason for hiding this comment

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

@zcgandcomp @korbelm How will we manage our environments? Will we remove these columns manually?

Copy link
Member

Choose a reason for hiding this comment

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

if there is any manual activity needed, please create ticket, i will fix test environments

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is about dropping two unused columns, but there will be another issue regarding the FK constraint dropping. I will create more detailed issue for you later.

@romanstrobl romanstrobl self-requested a review October 18, 2024 09:54
romanstrobl
romanstrobl previously approved these changes Oct 18, 2024
Copy link
Member

@zcgandcomp zcgandcomp left a comment

Choose a reason for hiding this comment

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

Just suggested change in the logging. Logic seems OK.

Copy link
Member

@zcgandcomp zcgandcomp left a comment

Choose a reason for hiding this comment

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

Looks good.

@jnpsk jnpsk merged commit eae92e4 into develop Oct 22, 2024
2 checks passed
@jnpsk jnpsk deleted the issues/1748-callbacks-local-circuit-breaker branch October 22, 2024 10:41
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.

5 participants