Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Catch implicit exception
CacheBuilder.expireAfterWrite() has possibility to raise exception if expiration is negative. So cache object cannot be set to final member in ReplicationCache. Also its exception is not catched anywhere. This patch moves cache creation and logging to new method. And adds factory class for initializing ReplicationCache correctly. Fix for JENKINS-22814: Some infomations are logged from constructor on startup https://issues.jenkins-ci.org/browse/JENKINS-22814
- Loading branch information
Showing
with
80 additions
and 16 deletions.
- +72 −9 src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/replication/ReplicationCache.java
- +3 −2 ...va/com/sonyericsson/hudson/plugins/gerrit/trigger/replication/ReplicationQueueTaskDispatcher.java
- +4 −4 src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/replication/ReplicationCacheTest.java
- +1 −1 ...om/sonyericsson/hudson/plugins/gerrit/trigger/replication/ReplicationQueueTaskDispatcherTest.java
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