You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The call to getPath() will throw an NPE when trying to go up the tree.
Once AFS is in this state and the reference to orphan nodes are lost, the API does not give any possibility to repair it, since it will be impossible to retrieve them using a path.
Note that there are more complex situations in which this can occurs, for instance when a client JVM deletes a node while another still has a reference to it.
What is the expected behavior?
There should be more safeguards stopping clients to create inconsistencies, and tools to help identify and repair inconsistencies when inconsistencies do occur.
Please tell us about your environment:
PowSyBl version : v2.6.1
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)
The code above has been tested with Cassandra based AFS implementation.
It does not behave the same with MapDb implementation, which throws when trying to create the sub-folder. However it's pretty sure that in a concurrent environment, we can get to the same inconsistent result.
The AppStorage SPI should at least provide some guidelines as to how consistency should be treated.
The text was updated successfully, but these errors were encountered:
Bug.
It's easy to create inconsistencies in a filesystem tree.
For example:
The call to
getPath()
will throw an NPE when trying to go up the tree.Once AFS is in this state and the reference to orphan nodes are lost, the API does not give any possibility to repair it, since it will be impossible to retrieve them using a path.
Note that there are more complex situations in which this can occurs, for instance when a client JVM deletes a node while another still has a reference to it.
There should be more safeguards stopping clients to create inconsistencies, and tools to help identify and repair inconsistencies when inconsistencies do occur.
PowSyBl version : v2.6.1
The code above has been tested with Cassandra based AFS implementation.
It does not behave the same with MapDb implementation, which throws when trying to create the sub-folder. However it's pretty sure that in a concurrent environment, we can get to the same inconsistent result.
The AppStorage SPI should at least provide some guidelines as to how consistency should be treated.
The text was updated successfully, but these errors were encountered: