Github user vrozov commented on a diff in the pull request:
https://github.com/apache/incubator-apex-core/pull/271#discussion_r56447191
--- Diff:
engine/src/main/java/com/datatorrent/stram/engine/GenericNode.java ---
@@ -608,9 +610,9 @@ else if (tracker.ports[trackerIndex] == null) {
if (need2sleep) {
if (handleIdleTime && insideWindow) {
((IdleTimeHandler) operator).handleIdleTime();
- }
- else {
+ } else {
Thread.sleep(spinMillis);
+ spinMillis = Math.min(maxSpinMillis, spinMillis + 1);
--- End diff --
I also thought about such approach with a variation of providing a
configuration setting for a number of iterations instead of a timeout as
getting current time on each iteration may be way too costly.
---
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.
---