|
@@ -7,6 +7,8 @@ import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
import org.apache.logging.log4j.ThreadContext;
|
|
|
|
|
|
+import com.google.common.collect.Lists;
|
|
|
+
|
|
|
import cn.com.qmth.examcloud.commons.helpers.KeyValuePair;
|
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLog;
|
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLogFactory;
|
|
@@ -123,7 +125,9 @@ public class SimpleNode<KEYIN, VALUEIN, KEYOUT, VALUEOUT>
|
|
|
.append(null == value ? null : value.toString()).toString());
|
|
|
}
|
|
|
counter.incrementTotal();
|
|
|
- List<KeyValuePair<KEYOUT, VALUEOUT>> outList = executer.execute(key, value, context);
|
|
|
+ List<KeyValuePair<KEYOUT, VALUEOUT>> outList = Lists.newLinkedList();
|
|
|
+ Boolean removable = true;
|
|
|
+ executer.execute(key, value, outList, removable, context);
|
|
|
|
|
|
if (null != outList && null != getLowerStorer()) {
|
|
|
for (KeyValuePair<KEYOUT, VALUEOUT> pair : outList) {
|
|
@@ -131,8 +135,10 @@ public class SimpleNode<KEYIN, VALUEIN, KEYOUT, VALUEOUT>
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (null != key) {
|
|
|
- getStorer().remove(key);
|
|
|
+ if (removable) {
|
|
|
+ if (null != key) {
|
|
|
+ getStorer().remove(key);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
counter.incrementSuccessAmount();
|