[ 
https://issues.apache.org/jira/browse/NIFI-8453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17326649#comment-17326649
 ] 

Belkacem D edited comment on NIFI-8453 at 4/23/21, 1:54 PM:
------------------------------------------------------------

For more details, here is the stack of the blocked HandleHttpRequest thread: 
{code:java}
"Timer-Driven Process Thread-183" Id=232 WAITING on 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@22cd9c3b
 at sun.misc.Unsafe.park(Native Method)
 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
 at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
 at 
org.apache.nifi.controller.repository.FileSystemRepository$ContainerState.waitForArchiveExpiration(FileSystemRepository.java:1660)
 at 
org.apache.nifi.controller.repository.FileSystemRepository.create(FileSystemRepository.java:609)
 at 
org.apache.nifi.controller.repository.claim.StandardContentClaimWriteCache.getContentClaim(StandardContentClaimWriteCache.java:63)
 at 
org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:2658)
 at 
org.apache.nifi.processors.standard.HandleHttpRequest.onTrigger(HandleHttpRequest.java:695)
 at 
org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
 at 
org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1173)
 at 
org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:214)
 at 
org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
 at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
 at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
 at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)
 Number of Locked Synchronizers: 1
 - java.util.concurrent.ThreadPoolExecutor$Worker@48c35d7b  
{code}
Nifi logs regularly show: 
{code:java}
2021-04-23 15:52:05,970 INFO [Cleanup Archive for default] 
o.a.n.c.repository.FileSystemRepository Successfully deleted 0 files (0 bytes) 
from archive

2021-04-23 15:52:05,970 INFO [Timer-Driven Process Thread-137] 
o.a.n.c.repository.FileSystemRepository Unable to write to container default 
due to archive file size constraints; waiting for archive cleanup 
{code}
 

 


was (Author: belkacem d):
For more details, here is the stack of the blocked HandleHttpRequest thread:

 
{code:java}
"Timer-Driven Process Thread-183" Id=232 WAITING on 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@22cd9c3b
 at sun.misc.Unsafe.park(Native Method)
 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
 at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
 at 
org.apache.nifi.controller.repository.FileSystemRepository$ContainerState.waitForArchiveExpiration(FileSystemRepository.java:1660)
 at 
org.apache.nifi.controller.repository.FileSystemRepository.create(FileSystemRepository.java:609)
 at 
org.apache.nifi.controller.repository.claim.StandardContentClaimWriteCache.getContentClaim(StandardContentClaimWriteCache.java:63)
 at 
org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:2658)
 at 
org.apache.nifi.processors.standard.HandleHttpRequest.onTrigger(HandleHttpRequest.java:695)
 at 
org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
 at 
org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1173)
 at 
org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:214)
 at 
org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
 at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
 at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
 at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)
 Number of Locked Synchronizers: 1
 - java.util.concurrent.ThreadPoolExecutor$Worker@48c35d7b  
{code}
 

> HandleHttpRequest does not receive HTTP request
> -----------------------------------------------
>
>                 Key: NIFI-8453
>                 URL: https://issues.apache.org/jira/browse/NIFI-8453
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.13.2
>         Environment: Linux CentOS 7.5 
>            Reporter: Belkacem D
>            Priority: Critical
>
> After starting Nifi, HandleHttpRequest thread remains blocked and does not 
> receive HTTP requests.
> A listening TCP socket is openned, a new request opens a TCP socket and data 
> is buffered.
> But HandleHttpRequest does not receive the request and the process thread is 
> blocked.
> No errors are raised in Nifi logs.
> Restarting Nifi does not always solve the issue.
> Finally, note that this bug was not encountered with Nifi 1.13.0.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to