mirror of https://github.com/apache/nifi.git
NIFI-4290: Ensure that the InFlightMessageTracker is instantiated when getTracker() is called
This closes #2083. Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
This commit is contained in:
parent
cb7bc93e28
commit
d698f227df
|
@ -192,6 +192,10 @@ public class PublisherLease implements Closeable {
|
|||
}
|
||||
|
||||
public InFlightMessageTracker getTracker() {
|
||||
if (tracker == null) {
|
||||
tracker = new InFlightMessageTracker();
|
||||
}
|
||||
|
||||
return tracker;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue