Why do we treat this error special? It seems normally we traverse node in right order and if we don't see parent it's a bug in storage node. Root node filepath we can set initially to this map
Please, use the similar check a12fea8a5b/pkg/service/tree/tree.go (L987)
I suppose we should check if tNode.IsSplit()
and skip if necessary. And only after that use tNode.ID[0]
I'm not sure if it's ok to separate this invocation. At least as it's done now.
Then we should fix streaming in tree, because we it must return only nodes that have provided prefix. (/my
in this case, and object /zzz/object/name3
doesn't have such prefix )
Please, use approach as for UsersAPIStats
or APIStatMetrics
or StateMetrics
As I understand this test pass even without fix. Please move these 3 line to TestMultipartEncrypted