Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ingestion from multiple directories #16

Conversation

apoorva918
Copy link
Contributor

@apoorva918 apoorva918 commented Oct 10, 2023

This PR adds support for user to ingest files from multiple folders.
The directory paths can be separated by commas and passed to FILE_SPEC parameter. The directory paths will be iterated over, and each directory will be recursively scanned (in case of subdirectories) for files with the provided FILE_EXTENSION to obtain a list of files. The list of files will then be ingested.

Code for getting list of files from directories has been moved to io.pravega.sensor.collector.util.FileUtils.java
FileNameWithOffset.java and PravegaWriterEvent.java have also been refactored into io.pravega.sensor.collector.util package.

Copy link
Contributor

@sachin-j-joshi sachin-j-joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the comments and also add unit test to test the functionality.

@apoorva918 apoorva918 changed the base branch from master to stability-improvements October 16, 2023 17:21
@sachin-j-joshi sachin-j-joshi marked this pull request as ready for review October 23, 2023 14:40
Copy link
Contributor

@sachin-j-joshi sachin-j-joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

One minor comment - Please add description to all public classes.

@sachin-j-joshi sachin-j-joshi merged commit d7aa4b7 into pravega:stability-improvements Oct 27, 2023
1 check passed
@apoorva918 apoorva918 deleted the task-multiple-directories branch November 27, 2023 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants