NIFI-6795 - fix for CouchbaseMapCacheClient to allow new objects to be created

Signed-off-by: John Fortin <johnf@marketamerica.com>
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #3833.
This commit is contained in:
John Fortin 2019-10-21 19:57:30 -04:00 committed by Pierre Villard
parent 41fef551c3
commit 885f1d1e5e
No known key found for this signature in database
GPG Key ID: BEE1599F0726E9CD
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ public class CouchbaseMapCacheClient extends AbstractControllerService implement
@Override
public <K, V> boolean replace(AtomicCacheEntry<K, V, Long> entry, Serializer<K> keySerializer, Serializer<V> valueSerializer) throws IOException {
final Long revision = entry.getRevision().orElse(0L);
final Long revision = entry.getRevision().orElse(-1L);
final String docId = toDocumentId(entry.getKey(), keySerializer);
final Document doc = toDocument(docId, entry.getValue(), valueSerializer, revision);
try {