mirror of https://github.com/apache/nifi.git
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:
parent
41fef551c3
commit
885f1d1e5e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue