Closed ls-rein-martha closed 2 years ago
Hi @ls-rein-martha, thank you for reporting this issue! I'm going to start working on this and I'll let you know when the fix is ready.
Hi @ls-rein-martha, I released the fix for this issue in v7.0.6, could you please check that it works now on your end as expected? Thanks!
Hi @ls-rein-martha, I released the fix for this issue in v7.0.6, could you please check that it works now on your end as expected? Thanks!
Hi @z4kn4fein thank you for quick fix. I will wait for the mvnrepo release to test, I have not see it available yet there. :)
Tested. Fixed at v7.0.6.
Describe the bug
Issue on calling
forceRefresh()
when previous refresh fail on writing to cache. With customConfigCache
. It is possible to fail when writing tocache
, example: distributed cache can fail to write (even though the chance is very small it still exist).To reproduce
Use
MANUAL
polling mode. Create a feature flag, lets createString
for easy check, with initial value: "INITIAL" Create a custom ConfigCache, like below to mimic exception:Update the value and refresh -> everything good -> before refresh for the second time (that will throw exception):
Do force refresh again:
NOT_MODIFED
response and it won't write to cacheforceRefresh()
is not doing anything now since there is no changes at server. (Not sure if it will be different after some time)Root cause:
Expected behavior
At minimum, when fail to write to cache, the next successful refresh (done manually) should be able to update the value. Better solution is server can know when there is a problem on writing and when client use webhook, server can do retry mechanism.
Screenshots
N/A
SDK version
Tried at 7.0.4 and 7.0.5
SDK configuration
Default configuration also can reproduce. (Just use manual polling and manual force refresh)
Logs
N/A
Language/Framework version
Java 8
Platform
Any