Skip to content

Conversation

@samgst-amazon
Copy link
Contributor

NoSuchFileException handling during notification processing fails gracefully instead of bubbling up to an IDE error.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Fix an issue where if there is no notification file in the cache, notification retrieval fails silently instead of bubbling up an exception

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@samgst-amazon samgst-amazon requested a review from a team as a code owner December 3, 2024 20:11
@samgst-amazon
Copy link
Contributor Author

Working on a better implementation of the Resource Resolver for notification polling but this should handle #5150

@github-actions
Copy link

github-actions bot commented Dec 3, 2024

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

}
return NotificationMapperUtil.mapper.readValue(content)
} catch (e: Exception) {
LOG.warn { "Error reading notifications file: $e" }
Copy link
Contributor

Choose a reason for hiding this comment

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

would prefer to fix the underlying issue

@samgst-amazon samgst-amazon enabled auto-merge (squash) December 3, 2024 22:58
@samgst-amazon samgst-amazon merged commit 3245c4f into main Dec 3, 2024
14 of 15 checks passed
@samgst-amazon samgst-amazon deleted the samgst/fixNotifBaseCacheAccess branch December 3, 2024 23:47
willyyhuang pushed a commit that referenced this pull request Dec 4, 2024
karanA-aws pushed a commit to karanA-aws/aws-toolkit-jetbrains that referenced this pull request Jan 17, 2025
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.

2 participants