Re: possible cell buffer size issue

2022-01-28 Thread Neophytos Demetriou
> will get the same (cached) ByteBuffer object on the second call. Also, you > may want to do a rewind() first, just in case... > On 28/01/2022 09:22, Neophytos Demetriou wrote: > > I've solved the issue with the following for the time being: > > byte[] arr = new byte[c

Re: possible cell buffer size issue

2022-01-28 Thread Neophytos Demetriou
I've solved the issue with the following for the time being: byte[] arr = new byte[cell.buffer().remaining()]; cell.buffer().get(arr); I shouldn't have been calling array() in the first place it seems. - Neophytos On Fri, Jan 28, 2022 at 2:06 AM Neophytos Demetriou wrote: > H

Re: possible cell buffer size issue

2022-01-27 Thread Neophytos Demetriou
b.arrayOffset() because the first element is not always > at beginning of the byte array. > On 27/01/2022 22:11, Neophytos Demetriou wrote: > > Hi, > > I'm new to the list but not new to Cassandra. I'm writing an app on top of > C* and I have come across an issue (huge cel

possible cell buffer size issue

2022-01-27 Thread Neophytos Demetriou
Hi, I'm new to the list but not new to Cassandra. I'm writing an app on top of C* and I have come across an issue (huge cell buffer size after applying a mutation) that I haven't been able to resolve yet. I would appreciate any suggestions/help to resolve this. Here are the details: 1. I have a c