kotohoroshko
01/18/2024, 10:24 AM'RESPONSE: 200 - {"writtenAt":{"token":"GgoKCENQcUh1MnM9"}}'
2 - Then I sent another write request and got second response at 11:37:25.138:
'RESPONSE: 200 - {"writtenAt":{"token":"GhIKEENQbUh1MnNRQkJvREFBRUM="}}'
3 - Then I did check
request with token from step 2 at 11:37:25.712:
'{"consistency":{"atLeastAsFresh":{"token":"GhIKEENQbUh1MnNRQkJvREFBRUM="}}'
but as response I got checkedAt with token from step 1 {"checkedAt":{"token":"GgoKCENQcUh1MnM9"}
How could it be possible?vroldanbet
01/18/2024, 12:50 PMkotohoroshko
01/18/2024, 1:00 PMkotohoroshko
01/18/2024, 1:04 PMatLeastAsFresh
It should guarantee us that on the check we got consistent data...But in this case, somehow, we got the wrong answer with an old snapshotvroldanbet
01/18/2024, 1:39 PMkotohoroshko
01/18/2024, 3:38 PMJoey
01/18/2024, 4:51 PMJoey
01/18/2024, 4:52 PMteso
01/18/2024, 6:18 PMJoey
01/18/2024, 11:20 PMkotohoroshko
01/19/2024, 8:22 AMcheck
requests with token from the write
request, and orientate that using atLeastAsFresh
policy with this token guarantees us the correct permissions. The same permissions that we just wrote. But somehow, even if we use this token we take an incorrect answer, that permissions do not exist.vroldanbet
01/19/2024, 9:11 AMat_least_as_fresh
semantics. @Jake rewrote the postgres datastore a while back and he may able to better clarify why this happens.vroldanbet
01/19/2024, 9:22 AMkotohoroshko
01/19/2024, 10:07 AM