DESCRIPTION

JCBC-864: Remove with Durability Requirements does not honor CAS

Motivation
----------
It was found that when the remove operation with document and
durability requirements was used, the contained CAS value
was not honored. This meant that potential cas mismatches
were not raised to the user level.

Modifications
-------------
The root cause of the issue was that the document was casted
down to its ID, not passing the cas value down to the core
layer.

The code has been refactored so that both ID- and Document-
based durability requirements now use a common helper method
to avoid code duplication while making sure the CAS value
is honored where possible.

An integration test has been added to avoid future
regressions.

Result
------
Remove with document and durability requirements now
properly respects the CAS value and allows to detect
CAS mismatches on remove.

Change-Id: I917946d3503f49ee6dc309443654479ca22e7bf0


COMMENTS

author: Natasha Sullivan
date: 2015-10-19 05:09:09.049000000

Uploaded patch set 1.

-------------------------------------
author: Natasha Sullivan
date: 2015-10-19 05:10:10.667000000

Patch Set 1: Verified+1

-------------------------------------
author: Cory Peck
date: 2015-10-19 06:47:08.568000000

Patch Set 1: Code-Review+2

-------------------------------------
author: Estrella Humphrey
date: 2015-10-19 07:10:36.689000000

Patch Set 1: Code-Review+2

-------------------------------------
author: Tate Garrett
date: 2015-10-19 12:59:07.683000000

Change has been successfully cherry-picked as ca7f58043b87199679fab4cf5a6cb5e9f446b2cd

-------------------------------------
