PlanCacheClear::clear, two checks happen: one for whether the cache entry exists, and another for whether removing it was successful:
This strange because the call to contains() and remove() each acquire the plan cache mutex separately, so it's possible for something to happen between the two calls and for the command to return an error without logging a message. While this won't crash the server or do anything really nasty, we should fix it. This would just involve removing the call to contains().
I do not believe we'd need to add any specific testing for this.