fix possible node serialization problem (dont share the byte buffer)
This commit is contained in:
parent
b5544769d2
commit
d1a4989e84
|
@ -363,7 +363,7 @@ public class JgroupsDiscovery extends AbstractComponent implements Discovery, Re
|
|||
ByteArrayDataOutputStream os = new ByteArrayDataOutputStream();
|
||||
localNode.writeTo(os);
|
||||
os.close();
|
||||
return os.unsafeByteArray();
|
||||
return os.copiedByteArray();
|
||||
}
|
||||
|
||||
private void sendInitialStateEventIfNeeded() {
|
||||
|
|
Loading…
Reference in New Issue