Github user vrozov commented on a diff in the pull request:
https://github.com/apache/apex-core/pull/350#discussion_r70151318
--- Diff:
bufferserver/src/main/java/com/datatorrent/bufferserver/server/Server.java ---
@@ -169,7 +168,7 @@ public String toString()
return identity;
}
- private final HashMap<String, DataList> publisherBuffers = new
HashMap<String, DataList>();
+ private final ConcurrentHashMap<String, DataList> publisherBuffers = new
ConcurrentHashMap<String, DataList>();
--- End diff --
Please use 1 for concurrency level instead of default 16. There is only one
thread that modifies publisherBuffers. Use default 0.75f for the load factor
and 1 as the initial capacity.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---