-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
There was a problem hiding this 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"> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
...java/io/getlime/security/powerauth/app/server/service/callbacks/CallbackUrlEventService.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Changes made:
failure_count
andtimestamp_last_failure
columns frompa_application_callback
table.resetTimeout
app configuration property tofailureResetTimeout
.failureCount
andtimestampLastFailure
variables used by circuit breaker in local cache, the same cache as for caching rest clients.