Author: kwright
Date: Wed Apr 24 14:55:17 2013
New Revision: 1471448
URL: http://svn.apache.org/r1471448
Log:
Partial fix for CONNECTORS-679.
Modified:
manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
Modified:
manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
URL:
http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java?rev=1471448&r1=1471447&r2=1471448&view=diff
==============================================================================
---
manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
(original)
+++
manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
Wed Apr 24 14:55:17 2013
@@ -755,15 +755,15 @@ public class ThrottledFetcher
protected static class ThrottleBin
{
/** This is the bin name which this throttle belongs to. */
- protected String binName;
+ protected final String binName;
/** This is the reference count for this bin (which records active
references) */
- protected int refCount = 0;
+ protected volatile int refCount = 0;
/** The inverse rate estimate of the first fetch, in ms/byte */
protected double rateEstimate = 0.0;
/** Flag indicating whether a rate estimate is needed */
- protected boolean estimateValid = false;
+ protected volatile boolean estimateValid = false;
/** Flag indicating whether rate estimation is in progress yet */
- protected boolean estimateInProgress = false;
+ protected volatile boolean estimateInProgress = false;
/** The start time of this series */
protected long seriesStartTime = -1L;
/** Total actual bytes read in this series; this includes fetches in
progress */