you probably don't need to addAll.

```java
synchronized (this) {
    swapList = incomingList;
    incomingList = List.newArrayList();
}
```

[ Full content available at: 
https://github.com/apache/incubator-pulsar/pull/2440 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to