You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 7, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 7, 2019. It is now read-only.
Hi guys. I think I found bug but please validate my findings described below: SourceFileReader uses private method pathForBarcode in order to get path for BarCode. However, SourceFileWriter delegates it to pathResolver.
The bug which above causes is: FileSystemImpl:getRecordState returns RecordState.MISSING all the time as path which was saved by SourceFileWriter is different than path used by SourceFileReader. We talk about the case when BarCode is a key.
If I understood Store lib properly following statements are true:
treat cached data in memory data as up-to-date for 5s
treat cached data in File System as up-to-date for 10s
So after 10 secs data is treat as STALE and fetch call should be performed.
As an addition to bug description I can see that StoreUtil.persisterIsStale always returns true because RecordState recordState = provider.getRecordState(key); is always RecordState.MISSING.
Activity
KevCron commentedon Apr 27, 2018
Hey @phajduk I understand what you're saying and I'm looking into it now.
Do you have any code samples that will help by any chance? Maybe an example of the bug?
phajduk commentedon Apr 30, 2018
Hey @KevCron
OK so I have following configuration of my
Store:If I understood Store lib properly following statements are true:
So after 10 secs data is treat as STALE and fetch call should be performed.
As an addition to bug description I can see that
StoreUtil.persisterIsStalealways returnstruebecauseRecordState recordState = provider.getRecordState(key);is alwaysRecordState.MISSING.