You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Darrel Schneider (JIRA)" <ji...@apache.org> on 2018/06/22 00:57:00 UTC

[jira] [Created] (GEODE-5343) geode may not log a warning when it is waiting for a disk store that is missing

Darrel Schneider created GEODE-5343:
---------------------------------------

             Summary: geode may not log a warning when it is waiting for a disk store that is missing
                 Key: GEODE-5343
                 URL: https://issues.apache.org/jira/browse/GEODE-5343
             Project: Geode
          Issue Type: Bug
          Components: persistence
            Reporter: Darrel Schneider


MembershipChangeListener.waitForChange has some code that looks like it may not ever call the "warning" runnable. The problem is that each time waitForChange is called it calculates "timeoutTime" to be, by default, 5 seconds in the future. It also calculates "warningTime" to be, by default, 15 seconds in the future. It only calls "warnOnceAfter" until timeoutTime has expired. Since it times out after 5 seconds, it will never log a warning since it only does that if at least 15 seconds have elapsed.

You can workaround this issue by extending the timeoutTime by setting this system property: geode.PERSISTENT_VIEW_RETRY_TIMEOUT_SECONDS. Make it longer than 15 seconds.

Another problem in this code is that it will only do one warning. If the "waitingOnMembers" on InternalPersistenceAdvisor has changed since the last warning then the another warning should be logged if another "warningTime" elapses.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)