eBay / nuraft_mesg

A session management and gRPC service layer for NuRaft.
Apache License 2.0
6 stars 11 forks source link

trySingleSlice during deserializing grpc::ByteBuffer can fail #41

Open raakella1 opened 9 months ago

raakella1 commented 9 months ago

The trySingleSlice method to get the reference of the underlying buffer from grpc::ByteBuffer expects the ByteBuffer to be made of single uncompressed slice. The buffer we get from grpc server does not guarantee that. The only other option is to use dump method which copies the buffer.