yozaner1324 commented on code in PR #7582:
URL: https://github.com/apache/geode/pull/7582#discussion_r848904494
##########
geode-core/src/main/java/org/apache/geode/internal/process/ControlFileWatchdog.java:
##########
@@ -73,12 +75,17 @@ public void run() {
private void doWork() {
try { // handle handle exceptions
if (file.exists()) {
- try { // always check stopAfterRequest after handleRequest
- handleRequest();
- } finally {
- if (stopAfterRequest) {
- stopMe();
+ // see if file is accessible
+ try (FileReader fileReader = new FileReader(file)) {
+ try { // always check stopAfterRequest after handleRequest
+ handleRequest(fileReader);
+ } finally {
+ if (stopAfterRequest) {
+ stopMe();
+ }
}
+ } catch (FileNotFoundException e) {
+ e.printStackTrace();
Review Comment:
Yes, good catch. Logging it now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]