Open emkaminsk opened 1 year ago
It's important to fix and test TrustCenter and CAS without waiting for the next release
@qrdl @ldej Please take a look
@qrdl @ldej Please take a look
We need to check all calls of GetAll() on TrustCenter (and old CNC) if it has any expectation from immudb about keys which are missing in the database. Currently we don't fail but return smaller subset of key-value-metadata pairs but we would like to throw an error in such case.
vcn
handles the situation when TC returns less assets than was requested, the missing ones are considered unknown. vcn
doesn't communicate with immudb
directly, but I guess TC just passes it to vcn
GetAll
is used in the following places in codenotary-cloud
:
VCNGetArtifacts
which is used by vcn
GetAll
That's it.
vcn
handles the situation when TC returns less assets than was requested, the missing ones are considered unknown.vcn
doesn't communicate withimmudb
directly, but I guess TC just passes it tovcn
OK, this means that the change we want to add to immudb will not be compatible with current TC code.
GetAll may return a sublist of the requested entries in case keys are not found
The sublist may be returned but the error of keynotfound may be returned anyways
Existent applications may expect all requested keys were found if no error is raised. While I think it's the same behaviour from the "older times", it may not be the expected one