You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ratis.apache.org by Pooya Salehi <px...@gmail.com> on 2021/02/01 13:53:08 UTC

Questions about Ratis LogService

Hi.

I am trying to use Ratis for a use case very similar to the LogService
example. My question is, in the MetaStateMachine
<https://github.com/apache/incubator-ratis/blob/0bdf24f3e307246e5dcaefac03e41c9fb69a6ef1/ratis-logservice/src/main/java/org/apache/ratis/logservice/server/MetaStateMachine.java#L231>,
why are create and delete log requests processed in query()? Isn't query
only for read-only requests (e.g. list logs)?

Thanks,
Pooya

Re: Questions about Ratis LogService

Posted by Josh Elser <el...@apache.org>.
Probably a bug :)

It's been a while since anyone has looked at this project in earnest, at 
least, the best as I've been able to keep tabs.

Most likely, they should be in applyTransaction (as I'm assuming you're 
implying).

On 2/1/21 8:53 AM, Pooya Salehi wrote:
> Hi.
> 
> I am trying to use Ratis for a use case very similar to the LogService 
> example. My question is, in the MetaStateMachine 
> <https://github.com/apache/incubator-ratis/blob/0bdf24f3e307246e5dcaefac03e41c9fb69a6ef1/ratis-logservice/src/main/java/org/apache/ratis/logservice/server/MetaStateMachine.java#L231>, 
> why are create and delete log requests processed in query()? Isn't query 
> only for read-only requests (e.g. list logs)?
> 
> Thanks,
> Pooya