Open chibenwa opened 6 months ago
Issue is: we ALWAYS have REQUEST_DECODER onto the pipeline...
Idea 1 looks impossible: calling a not-yet initialized channel. But to execute a processor pushing a line handler we need to have decoded a request first: this do not make sense!
Idea 2: the channel somehow is closing and the corresponding pipeline is cleaned up. Then we are seeing components cleaning up it the wrong order?
Clarification: in here https://github.com/linagora/james-project/issues/5122 says it's linked to this issue. But that has been completed since. Did it solve this problem or not fully?
Likely not linked.
I found out that the timeout handler deregisters the channel without disposing current tasks.
I suspect this causes calls on a pipeline with removed handlers hence the error.
CF https://github.com/apache/james-project/commit/9813526db40a5cb02790bf4ade9a1c2e24ef368b
I reviewed 60 hours of logs on imap.linagora.com without seeing the issue.
I did not spotted the error within this time frame.
I enabled debugging in order to get more details if such an error happens again.
Understand when this can happen...