Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

PersistableSlidingWindow#load() modification #495

Merged
merged 3 commits into from
Oct 28, 2020
Merged

Conversation

sidheart
Copy link
Contributor

Fixes #: A series of ITs that failed on this error log line

Description of changes:

  • PersistableSlidingWindow#load() will no longer throw an IOException
    when it is called with a Path that doesn't exist

Tests:

  • PersistableSlidingWindowTest

If new tests are added, how long do the new ones take to complete N/A

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

- PersistableSlidingWindow#load() will no longer throw an IOException
when it is called with a Path that doesn't exist
@sidheart sidheart requested review from sruti1312 and yojs October 26, 2020 20:53
sruti1312
sruti1312 previously approved these changes Oct 27, 2020
// setting the last write time to now will cause our first write to occur 5 minutes after construction
this.lastWriteTimeEpochMs = Instant.now().toEpochMilli();
try {
if (enablePersistence && Files.exists(filePath)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a log message when enablePersistence is not set or when file does not exist in the path? Even debug level log would be great.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added more logging in the most recent commit

@sidheart sidheart merged commit 7c32322 into master Oct 28, 2020
@sidheart sidheart deleted the psw-error-log-fix branch October 28, 2020 21:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants