forked from apache/geode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GEODE-8521: detect if a p2p reader thread is hung (apache#5763)
* AbstractExecutor can now be suspended and resumed. This does nothing on the base class but on P2PReaderExecutorGroup it turns monitoring on and off. Also the monitor thread will now detect a zero startTime and in that case set the startTime allowing threads being monitored to not keep setting it themselves (which happens more often). * the timeInterval and timeLimit that come from gemfire properties will now always be the values configured on the DistributedSystem. Previously the thread monitoring classes had their own instance of DistributionConfigImpl which at least in some cases could be inconsistent the the config on the DistributedSystem. Now these two config values are passed in to the constructor. * If an instance of ResourceManagerStats can not be found then it will now only prevent the monitor from updating the "numThreadsStuck" stat. Before it prevented it from doing any detection and logging. The lazy initialization of the ResourceManagerStats is now cleaner and does not require the integration test to explicitly call run(). Co-authored-by: Darrel Schneider <[email protected]>
- Loading branch information
1 parent
4e206f0
commit e26d759
Showing
28 changed files
with
523 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.