zhaojinchao95 commented on code in PR #2124:
URL:
https://github.com/apache/shardingsphere-elasticjob/pull/2124#discussion_r991789110
##########
elasticjob-lite/elasticjob-lite-core/src/test/java/org/apache/shardingsphere/elasticjob/lite/fixture/job/DetailedFooJob.java:
##########
@@ -21,17 +21,19 @@
import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import java.util.Collection;
-import java.util.concurrent.CopyOnWriteArraySet;
+import java.util.Collections;
+import java.util.HashSet;
public final class DetailedFooJob implements FooJob {
- private final Collection<Integer> completedJobItems = new
CopyOnWriteArraySet<>();
+ private final Collection<Integer> completedJobItems =
Collections.synchronizedSet(new HashSet<>());
@Getter
private volatile boolean completed;
@Override
public void foo(final ShardingContext shardingContext) {
+ System.out.println(Thread.currentThread().getName() + " foo execute "
+ shardingContext);
Review Comment:
Please remove this line.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]