Closed dtitov closed 6 years ago
This has my blessing :church:, functionality seems to be there. Docs to be updated in a different PR. @juhtornr please also review LocalEGA-inbox code then: :package: :rocket:
It sends a message to the broker on close, but it is a slightly wrong logic: The "on close" event should not be solely caught. It must be captured along with the create/append event. Simply reading the file will trigger an open/close sequence that will reprocess the file. See here
I'll check if reading the file triggers it, thanks.
You were right. I'll make a PR to fix it soon.
We have faced these issues before. This is redoing work that was done before. What if I had not looked at it (out of curiosity this morning) ?
Anyway, thank you for spotting this, it was helpful.
Replacing Unix SSHD with Apache Mina SSHD (https://mina.apache.org/sshd-project/):
verify
feature to this microservice;Sources to review: https://github.com/NBISweden/LocalEGA-inbox
At the moment it doesn't include ingestion functionality (doesn't put the file directly to S3), but rather just replaces existing inbox (the "dummy" one). But later if we implement direct streaming to S3, the ingestion functionality will be absorbed by that.