Skip to content

Add log message when local input's filter does not match any files#10837

Merged
a2l007 merged 2 commits intoapache:masterfrom
loquisgon:log-when-local-filter-not-matches
Feb 5, 2021
Merged

Add log message when local input's filter does not match any files#10837
a2l007 merged 2 commits intoapache:masterfrom
loquisgon:log-when-local-filter-not-matches

Conversation

@loquisgon
Copy link
Copy Markdown

@loquisgon loquisgon commented Feb 3, 2021

Provide information in the log when the filter for local inputSource does not match any files

Expected behavior

When the filter for local inputSource does not match any file a log message should be output at INFO level indicating that "no files matched the filter expression:.

Actual behavior

When the filter for local inputSource does not match any file there is no log message, the task report simply indicates that no rows were parsed.

Key changes:

Added a logger & log message to class LocalInputSource.java to match the expected behavior as outlined above.

Copy link
Copy Markdown
Contributor

@suneet-s suneet-s left a comment

Choose a reason for hiding this comment

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

LGTM - travis failures appear to be because of an issue with something in master

Copy link
Copy Markdown
Contributor

@a2l007 a2l007 left a comment

Choose a reason for hiding this comment

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

This is useful! Thanks @loquisgon
I've restarted the build to see if it helps.

@suneet-s
Copy link
Copy Markdown
Contributor

suneet-s commented Feb 5, 2021

The leadership test failures were fixed in #10846 so I think it's ok to overrule Travis for this change.

EDIT: I eat my words - looks like Travis passed now :)

@a2l007 a2l007 merged commit 3785ad5 into apache:master Feb 5, 2021
@clintropolis clintropolis added this to the 0.22.0 milestone Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants