[External] Re: The incomplete result of mapper GetSubTree/Paths

Lei Yu yulei.sh at bytedance.com
Mon May 23 15:41:20 AEST 2022


On Sat, May 21, 2022 at 5:13 AM Patrick Williams <patrick at stwcx.xyz> wrote:
>
> On Fri, May 20, 2022 at 11:14:15AM +0800, Lei Yu wrote:
>
> > If mapper could not guarantee the stable result, the service calling
> > mapper will have to add more complex logic to make sure it gets the
> > "full and correct" result.
>
> The issue here is around causality.  There really isn't any way to
> correctly kick this logic out to applications no matter how complex you
> make the implementation.
>
> The original mapper implementation was causally ordered but this was
> lost in the conversion to C/C++.  We should look at getting back to
> having mapper give causal order guarantees.

A patch is sent to gerrit that is an attempt to make GetSubTreePaths
throw when it's doing introspect and return the "complete" result.
https://gerrit.openbmc.org/c/openbmc/phosphor-objmgr/+/53904


More information about the openbmc mailing list