On 01/10/2017 09:20 PM, Robert Varga wrote:
> On 01/10/2017 08:16 PM, Tom Pantelis wrote:
>> Since the length field of an array is an int, it's constrained to
>> Integer.MAX_VALUE (~2G). To handle snapshots larger than 2G we'll have
>> to chuck it into multiple byte[].
> That could get funky on the reassembly side of things. If we go that
> route, we may as well switch to something more friendly, like
> java.nio.ByteBuffer(), too.

Thinking about it a bit more, we really need some way of streaming the
snapshot.

Tom, is there something in akka persistence which would allow us to feed
the data directly to an OutputStream?

If not, then would it be okay to use something else for snapshots?

We could get rid of the intermediate buffer on both snapshot and recovery.

Bye,
Robert

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to