[
https://issues.jboss.org/browse/JGRP-1283?page=com.atlassian.jira.plugin....
]
Bela Ban commented on JGRP-1283:
--------------------------------
OK, here's one issue that can happen with a CTRL-Z:
- A and B
- B's credits for A are exhausted (or close to exhausted) when it is CTRL-Z'ed
- A removes B and installs view {A}
- B is fg'ed
- A includes B again in view {A,B}. However, the credits for B are now the max credits !
- B asks A for credits, but A won't send credits as it thinks B still has all credits
!
This is the result of the assumption that a sender's a receiver's credits are
always more or less the same. Stopping a process with CTRL-Z changes this.
SOLUTION: when A gets a credit request from B for N credits, send the full N credits back
to B, instead of MAX_CREDITS minus <what A thinks B's credits are>.
reproducing outofmemoryerror
----------------------------
Key: JGRP-1283
URL:
https://issues.jboss.org/browse/JGRP-1283
Project: JGroups
Issue Type: Bug
Reporter: ronald yang
Assignee: Bela Ban
Priority: Minor
Fix For: 2.12
Attachments: Follower.java, Leader.java, Leader.java, oome.tgz, oome.tgz,
tcp-nio.xml
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira