[ https://issues.apache.org/jira/browse/DIRMINA-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16195825#comment-16195825 ]
Jonathan Valliere commented on DIRMINA-1057: -------------------------------------------- Okay, I pulled the {{tag/2.0.16}} and found {{FileRegion}} writes increase the write counter and decrease the backlog causing a negative backlog because the {{FileRegion}} never increases the backlog. Are you writing Files at all? Also {{decreaseScheduledBytesAndMessages}} is called during close and not during the normal course of operation. What you should look at is {{session.increaseWrittenBytes}} because it in turn decreases backlog by calling {{increaseScheduledBytes}} The function {{increaseScheduledBytes}} is only called by: * {{AbstractIoSession#decreaseScheduledBytesAndMessages}} * {{HeadFilter#filterWrite}} * {{AbstractIoSession#increaseWrittenBytes}} > AbstractIoSession getScheduledWriteMessages always -negative? > ------------------------------------------------------------- > > Key: DIRMINA-1057 > URL: https://issues.apache.org/jira/browse/DIRMINA-1057 > Project: MINA > Issue Type: Bug > Components: Core > Affects Versions: 2.0.16 > Environment: I'm testing slow consumer backlog detection and while > getScheduledWriteBytes() correctly grows, getScheduledWriteMessages is always > negative and does not increase. looking into code to see why but putting bug > report here as well for tracking > Reporter: Andre Mermegas > -- This message was sent by Atlassian JIRA (v6.4.14#64029)