Skip to content

Addressing the spotbug failure#31

Merged
khushbr merged 1 commit intoopensearch-project:mainfrom
khushbr:feature/spotbug-fix
Jul 14, 2021
Merged

Addressing the spotbug failure#31
khushbr merged 1 commit intoopensearch-project:mainfrom
khushbr:feature/spotbug-fix

Conversation

@khushbr
Copy link
Copy Markdown
Collaborator

@khushbr khushbr commented Jul 14, 2021

Is your feature request related to a problem? Please provide an existing Issue # , or describe.
Addressing the spotbug failure. Handling the Null condition for File.list()

Describe the solution you are proposing
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@khushbr khushbr requested a review from sruti1312 July 14, 2021 18:20
Comment on lines +177 to +180
String[] filesToDelete = root.list();
if (filesToDelete == null) {
return;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you think we should retain filtering out .tmp files check as this might delete the currentBucket .tmp files?

@khushbr khushbr merged commit 862fc67 into opensearch-project:main Jul 14, 2021
@khushbr khushbr deleted the feature/spotbug-fix branch July 14, 2021 18:30
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