Depends on D3990
Raised in https://phabricator.ashoat.com/D3990#112037
We should be consistent and throw if someone tries to remove an item that does not exist. That clearly means the logic's invalid.
Differential D3999
[services] consistently return when trying to remove non-existent item • karol on May 11 2022, 2:19 AM. Authored by Tags None Referenced Files
Details Depends on D3990 Raised in https://phabricator.ashoat.com/D3990#112037 We should be consistent and throw if someone tries to remove an item that does not exist. That clearly means the logic's invalid. cd services yarn run-tunnelbroker-service yarn test-blob-service-dev-mode yarn test-backup-service-dev-mode
Diff Detail
Event TimelineComment Actions
No. It might also mean that we tried to delete the same item twice, which is fine. Take a C++ map as an example: when we erase an item twice, it doesn't throw an error. We can consider returning some info about the presence of an item, but I still wouldn't call this an error. Comment Actions Hmm, maybe you're right. I'm going to wait until we have terms in D3990. Then we can either land or abandon this one. Comment Actions I'm not a big fan of silently returning if expected items do not exist but accepting this as we agreed before in D3990. |