Homec4science
Diffusion YCSB 2d857daea2c1

[elasticsearch] Return not found instead of error

Authored by Jason Tedor <jason@tedor.me> on Apr 20 2016, 13:56.

Description

[elasticsearch] Return not found instead of error

This commit modifies the Elasticsearch client to return Status.NOT_FOUND
when an operation fails because the document requested does not
exist. This modifies the previous behavior which would return
Status.ERROR in this case.

This commit also moves the statements that would return Status.ERROR
into the corresponding catch blocks so that it is clear that
Status.ERROR is only being returned on error paths.

Details

Committed
Jason Tedor <jason@tedor.me>Apr 20 2016, 13:59
Pushed
iorgulescuOct 2 2018, 18:02
Parents
R7507:81f6f146fe21: Merge pull request #682 from yuyantingzero/master
Branches
Unknown
Tags
Unknown

Event Timeline

Jason Tedor <jason@tedor.me> committed R7507:2d857daea2c1: [elasticsearch] Return not found instead of error (authored by Jason Tedor <jason@tedor.me>).Apr 20 2016, 13:59