[jboss-jira] [JBoss JIRA] (JGRP-1598) STATE: broken
Bela Ban (JIRA)
jira-events at lists.jboss.org
Wed Feb 20 12:58:56 EST 2013
[ https://issues.jboss.org/browse/JGRP-1598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755504#comment-12755504 ]
Bela Ban commented on JGRP-1598:
--------------------------------
The culprit was Draw: we use a BufferedOutputStream in DrawPanel.writeState(). This creates an internal buffer, which is flushed every 4096 bytes. This results in a message being sent to the state requester. *However* the buffer passed to the message is a *reference* to the internal buffer in BufferedOutputStream, and since this is modified again, the buffer in the message also changes !
The solution was to copy the buffer into the message in STATE$StateOutputStream.sendMessage().
> STATE: broken
> -------------
>
> Key: JGRP-1598
> URL: https://issues.jboss.org/browse/JGRP-1598
> Project: JGroups
> Issue Type: Bug
> Reporter: Bela Ban
> Assignee: Bela Ban
> Fix For: 3.2.8, 3.3
>
>
> When receiving state, STATE fails to correctly push the state to the receiver. There is probably a bug in BlockingInputStream, as the state itself is transferred correctly.
> STATE_TRANSFER and STATE_SOCK are not affected
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list