turcsanyip commented on a change in pull request #5634:
URL: https://github.com/apache/nifi/pull/5634#discussion_r781388684
##########
File path:
nifi-stateless/nifi-stateless-bundle/nifi-stateless-engine/src/main/java/org/apache/nifi/stateless/flow/StandardStatelessFlowCurrent.java
##########
@@ -57,23 +58,22 @@ private StandardStatelessFlowCurrent(final Builder builder)
{
this.processContextFactory = builder.processContextFactory;
}
- public Connectable getCurrentComponent() {
- return currentComponent;
- }
-
@Override
public void triggerFlow() {
try {
boolean completionReached = false;
while (!completionReached) {
+ tracker.shelveReadyComponents();
Review comment:
It returns the last element from the ready list (unfortunately there is
no "getLastElement()" in `LinkedHashSet`):
```
public Connectable getNextReady() {
if (ready.isEmpty()) {
return null;
}
return new ArrayList<>(ready).get(ready.size() - 1);
}
```
--
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]