This is an automated email from the ASF dual-hosted git repository.
pvillard pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/master by this push:
new 885f1d1 NIFI-6795 - fix for CouchbaseMapCacheClient to allow new
objects to be created
885f1d1 is described below
commit 885f1d1e5e7097794e2fe76198f6ffd9eddbd656
Author: John Fortin <[email protected]>
AuthorDate: Mon Oct 21 19:57:30 2019 -0400
NIFI-6795 - fix for CouchbaseMapCacheClient to allow new objects to be
created
Signed-off-by: John Fortin <[email protected]>
Signed-off-by: Pierre Villard <[email protected]>
This closes #3833.
---
.../main/java/org/apache/nifi/couchbase/CouchbaseMapCacheClient.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/nifi-nar-bundles/nifi-couchbase-bundle/nifi-couchbase-processors/src/main/java/org/apache/nifi/couchbase/CouchbaseMapCacheClient.java
b/nifi-nar-bundles/nifi-couchbase-bundle/nifi-couchbase-processors/src/main/java/org/apache/nifi/couchbase/CouchbaseMapCacheClient.java
index 703f4e5..f2b7cd7 100644
---
a/nifi-nar-bundles/nifi-couchbase-bundle/nifi-couchbase-processors/src/main/java/org/apache/nifi/couchbase/CouchbaseMapCacheClient.java
+++
b/nifi-nar-bundles/nifi-couchbase-bundle/nifi-couchbase-processors/src/main/java/org/apache/nifi/couchbase/CouchbaseMapCacheClient.java
@@ -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 {