[
https://issues.apache.org/jira/browse/MINIFICPP-1766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Zink updated MINIFICPP-1766:
-----------------------------------
Description:
RocksDbStream::write will not create a key in the db for data with length 0,
but RocksDbStream::read will check for the existence of the key even when the
length is 0.
We could either
* fix RocksDbStream::write to create an entry in the db even for zero length
values or
* fix RocksDbStream::read to return successfully when reading 0 bytes even if
there is no corresponding key
was:
RocksDbStream::write will not create a key in the db for data with length 0,
but RocksDbStream::read will check for the existence of the key even when the
length is 0.
* fix RocksDbStream::write to create an entry in the db even for zero length
values
* fix RocksDbStream::read to return successfully when reading 0 bytes even if
there is no corresponding key
> ProcessSession::read can't read zero length flowfiles
> (DatabaseContentRepository)
> ---------------------------------------------------------------------------------
>
> Key: MINIFICPP-1766
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1766
> Project: Apache NiFi MiNiFi C++
> Issue Type: Bug
> Reporter: Martin Zink
> Assignee: Martin Zink
> Priority: Major
> Fix For: 0.12.0
>
>
> RocksDbStream::write will not create a key in the db for data with length 0,
> but RocksDbStream::read will check for the existence of the key even when the
> length is 0.
> We could either
> * fix RocksDbStream::write to create an entry in the db even for zero
> length values or
> * fix RocksDbStream::read to return successfully when reading 0 bytes even
> if there is no corresponding key
--
This message was sent by Atlassian Jira
(v8.20.1#820001)