Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Fix Version/s: Sprint 4.1.2
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
HD-Chapter:Data
-
HD-Enabler:CEP
Description
Hi,
Responsible
OneSource
Description:
Producer with type File doesn't detect new events added to file.
Tested GE(s):
Proton CEP GE
Environment:
Local
Starting Proton CEP configured with a producer of type "File" only events
already in the file, representing the resource, are processed. Adding new
lines this file does not trigger new events being added to CEP engine. The
property poolingInterval of this producer does not seem to trigger the
detection of the new events. According to Proton Programmer Guide this
Pooling Interval property is supposed to configure " the interval for two
consecutive polls of the resource for updates". Is this the expected
result, only process events already in the file before the Proton startup
or should it detect new events appended to the file?
In attachment I send the proton configuration I used for testing as well as
the input event files. The path for the input files in the definition may
need to adjusted according to the final path.
For test I configured the definition file in attachment
(CEPGE_Testing.json) as the default definition file in Proton.properties.
Then launched Proton. The logs show the events already in the input files
to be inserted into Proton, but if I add more lines and save the files,
these new events are not inserted into Proton. I configured a Polling
interval of 1000 (1 second).
Proton was deployed into tomcat 7.0.26 running under Linux. I also tested
the standalone J2SE version with the same results. The CEP was downloaded
from Proton's github repo [0].
Best regards,
–
Pedro Alves
pgalves@onesource.pt
[0] https://github.com/ishkin/Proton
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-tech-help
Thank you.
The "file" adapter is for static files. The file adapters are intended for testing purposes mainly, so they are not for dynamically changing files.
If you want to dynamically add events to Proton, you should use the dynamic REST producer.