Github user revans2 commented on a diff in the pull request:
https://github.com/apache/storm/pull/700#discussion_r39872538
--- Diff: storm-core/src/jvm/backtype/storm/utils/DisruptorQueue.java ---
@@ -138,7 +150,21 @@ private void consumeBatchToCursor(long cursor,
EventHandler<Object> handler) {
//TODO: only set this if the consumer cursor has changed?
_consumer.set(cursor);
}
-
+
+ public void registerBackpressureCallback(DisruptorBackpressureCallback
cb) {
+ this._cb = cb;
+ }
+
+ static public void notifyBackpressureChecker(Object trigger) {
--- End diff --
I don't think this code really belongs here. It would make more since to
move it to the WorkerBackpressureThread itself.
---
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.
---