Thanks for your information Mukul! I have one more question. Even if I want to use the shaded ByteString version when compile with protoc it requires protobuf-java deps. How can I configure protoc use the shaded version to generate codes?
Best, tison. Mukul Kumar Singh <[email protected]> 于2019年11月14日周四 上午11:15写道: > Hi Tison, > > Thanks for the interest in Ratis. There are 2 options as you have already > noticed. > > a) Ozone which is a consumer of Ratis, we have used the shaded ByteString > version in the Ozone codebase. > > b) We can have a utility for conversion as you have already pointed out. > > > Thanks, > Mukul > > > On 13/11/19 8:28 pm, tison wrote: > > Well I find a way to write a utility for convertion. > > Best, > tison. > > > tison <[email protected]> 于2019年11月13日周三 下午10:46写道: > >> Hi devs, >> >> I am trying to develop a filesystem-view storage on ratis, and here is >> the problem I meet: >> >> When I trying to reply within `StateMachine#query` while generating >> Message, compiler fails on >> ByteString is not compatible with ByteString. I think it is because ratis >> use shaded protobuf deps. >> >> However, how can I instance Message outside ratis project? Shall I also >> depends on >> ratis-thirdparty-misc? Is there a workaround? Or will ratis provides its >> own abstraction for >> resolving dep issues? >> >> Best, >> tison. >> >
