linagora / james-project

Mirror of Apache James Project
Apache License 2.0
70 stars 63 forks source link

Investigate why SelectedMailboxImpl could be slow to process Added. #5105

Closed chibenwa closed 5 months ago

chibenwa commented 6 months ago

image

Possible deadlock?

I do not think writing data to the client takes that much time.

UID-MSN converter looks ok. Adding 40.000 randonm ints in it completed in 7.6 sec

chibenwa commented 6 months ago

Could be also caused by contention on the boundedElastic schedulers....

vttranlina commented 6 months ago

Tried some cases but the timeout exception was not thrown

vttranlina commented 6 months ago

The concurrent test code for select inbox and IDLE (it works fine) https://github.com/apache/james-project/commit/477a30d182a4976881723210968a7e26026c1b4e // no idea now

chibenwa commented 6 months ago

I think some of the refactoring I did could help... (cross object locking is never a good idea)

chibenwa commented 5 months ago

Never happened again.

Recent refactoring should had fixed that.