You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mao Ito (JIRA)" <ji...@apache.org> on 2018/01/24 01:18:00 UTC
[jira] [Created] (NIFI-4810) Improve Extensibility of
WriteAheadProvenanceRepository
Mao Ito created NIFI-4810:
-----------------------------
Summary: Improve Extensibility of WriteAheadProvenanceRepository
Key: NIFI-4810
URL: https://issues.apache.org/jira/browse/NIFI-4810
Project: Apache NiFi
Issue Type: Improvement
Components: Extensions
Reporter: Mao Ito
If we want to create some new ProvenanceRepository extending WriteAheadProvenanceRepository, we have some issues.
The scenarios is that the new ProvenanceRepsoitory just intercept event without losing the functionality of WriteAheadProvenanceRepository (i.e. allow writing message into the disk).
In this scenario,
We can just override the method of "registerEvents".
And, the issue is that we want to get "eventId" assigned by WriteAheadProvenanceRepository.
However, there is no efficient and easy way to get these eventIds as far as I see.
We have the below options to improve it:
1. change "private" to "protected" for fields of WriteAheadProvenanceRepository
2. return "StorageResult" for "registerEvents" method
StorageResult includes "eventIds" assigned by WriteAheadProvenanceRepository
If there is actually an easy way to do, give us some comments.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)