dan-s1 commented on PR #10836:
URL: https://github.com/apache/nifi/pull/10836#issuecomment-3843393811
The debug messages do not really address the issue and really are not
necessary. The main concern was the hang time that occurs after the log message
on line 205:
`logger.info("Expanded {} NAR files in {} seconds ({} ns)", narFiles.size(),
durationSeconds, duration);`
which apparently is caused by how long `mapExtensions` on line 211 takes.
My coworker did suggest perhaps pushing up lines 120-121
```
final long startTime = System.nanoTime();
logger.info("Expanding {} NAR files started", narFiles.size());
```
above line 119 `if (!narFiles.isEmpty())`
(since there will always be at the minimum the nar files of the framework)
and lines 203-205
```
final long duration = System.nanoTime() - startTime;
final double durationSeconds = TimeUnit.NANOSECONDS.toMillis(duration) /
1000.0;
logger.info("Expanded {} NAR files in {} seconds ({} ns)", narFiles.size(),
durationSeconds, duration);
```
after line 212 `populateExtensionMapping` thereby indicating the hang time
is attributed/related to the nar expansions.
Does that make sense?
--
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]