TinyKV Part1 TestCase

Confused at the assert statement.

According to #L80, the not found event should not throw an error. It’s ok for me to eliminate the error by badger. But for #L186, the Get function should also do not throw an error for not found event.

Why the error should still be nil? I think that the Get function of inner storage should return the “not found” error so that it can be captured by server handler RawGet function. I can not understand the design.

please take a look at L18 in storage.go

1 Like