[GitHub] [nifi] m-hogue edited a comment on issue #3930: NIFI-6851: Added FlowFileAcquisitionMethod to fetch/receive methods i…

2020-01-14 Thread GitBox
m-hogue edited a comment on issue #3930: NIFI-6851: Added 
FlowFileAcquisitionMethod to fetch/receive methods i…
URL: https://github.com/apache/nifi/pull/3930#issuecomment-574285996
 
 
   @markap14 : I felt like it'd be useful to visualize the 
FlowFileAcquisitionMethod in the provenance events in the UI, so i've update 
the PR to add that. Here's a screenshot showing it. Otherwise, i believe this 
PR is good to be merged unless there's anything else you see.
   
   
![image](https://user-images.githubusercontent.com/7054178/72367054-78b9f280-36c9-11ea-8532-a92c4feb20c3.png)
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [nifi] m-hogue edited a comment on issue #3930: NIFI-6851: Added FlowFileAcquisitionMethod to fetch/receive methods i…

2020-01-07 Thread GitBox
m-hogue edited a comment on issue #3930: NIFI-6851: Added 
FlowFileAcquisitionMethod to fetch/receive methods i…
URL: https://github.com/apache/nifi/pull/3930#issuecomment-571773726
 
 
   > As it is, it stores a mapping of FlowFileAcquisitionMethod to a number
   
   @markap14 : I see what you're saying. This behavior was actually copied from 
the existing implementation for event types, which i believe has this same 
problem:
   
   
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/EventIdFirstSchemaRecordWriter.java#L89
   
   This means that the event type map and the acquisition type map both need to 
be serialized in the event header and read at deserialization time to know how 
it was serialized. As it is, a list of enum names is serialized in the order of 
the enum. So if the ordering of enums changes between versions, this breaks. 
Correct? If so, i can work on fixing that.
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [nifi] m-hogue edited a comment on issue #3930: NIFI-6851: Added FlowFileAcquisitionMethod to fetch/receive methods i…

2020-01-07 Thread GitBox
m-hogue edited a comment on issue #3930: NIFI-6851: Added 
FlowFileAcquisitionMethod to fetch/receive methods i…
URL: https://github.com/apache/nifi/pull/3930#issuecomment-571773726
 
 
   > As it is, it stores a mapping of FlowFileAcquisitionMethod to a number
   
   @markap14 : I see what you're saying. This behavior was actually copied from 
the existing implementation for event types, which i believe has this same 
problem:
   
   
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/EventIdFirstSchemaRecordWriter.java#L89
   
   This means that the event type map and the acquisition type map both need to 
be serialized in the event header and read at deserialization time to know how 
it was serialized. Correct? If so, i can work on fixing that.
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [nifi] m-hogue edited a comment on issue #3930: NIFI-6851: Added FlowFileAcquisitionMethod to fetch/receive methods i…

2020-01-07 Thread GitBox
m-hogue edited a comment on issue #3930: NIFI-6851: Added 
FlowFileAcquisitionMethod to fetch/receive methods i…
URL: https://github.com/apache/nifi/pull/3930#issuecomment-571773726
 
 
   > As it is, it stores a mapping of FlowFileAcquisitionMethod to a number
   
   @markap14 : I see what you're saying. I'll address this.
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services