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
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Switches are removed from Voltage Level data structures before the Network listeners are notified through the method beforeRemoval. Switches are still in the Network index, but queries to gather information about the switch from beforeRemoval methods made to the voltage level fail because they have been removed from local switches collection and its corresponding edges also have been removed from the graph.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Unit test to demonstrate the issue (fails with exception trying to obtain end nodes of a switch inside a beforeRemoval method):
ERROR com.powsybl.iidm.network.impl.NetworkListenerList - com.powsybl.commons.PowsyblException: Switch load1Breaker1 not found
com.powsybl.commons.PowsyblException: Switch load1Breaker1 not found
at com.powsybl.iidm.network.impl.NodeBreakerVoltageLevel.createSwitchNotFoundException(NodeBreakerVoltageLevel.java:591)
at com.powsybl.iidm.network.impl.NodeBreakerVoltageLevel.getEdge(NodeBreakerVoltageLevel.java:569)
at com.powsybl.iidm.network.impl.NodeBreakerVoltageLevel$2.getNode1(NodeBreakerVoltageLevel.java:624)
at com.powsybl.iidm.network.impl.RemoveSwitchTest.checkNodes(RemoveSwitchTest.java:15)
at com.powsybl.iidm.network.impl.RemoveSwitchTest$1.beforeRemoval(RemoveSwitchTest.java:29)
What is the expected behavior?
Be able to obtain the nodes of the switch before it is removed.
Please tell us about your environment:
PowSyBl Version: 4.8.0-SNAPSHOT
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)
A similar issue happens in BusBreakerVoltageLevel.
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Switches are removed from Voltage Level data structures before the Network listeners are notified through the method
beforeRemoval
. Switches are still in the Network index, but queries to gather information about the switch frombeforeRemoval
methods made to the voltage level fail because they have been removed from local switches collection and its corresponding edges also have been removed from the graph.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Unit test to demonstrate the issue (fails with exception trying to obtain end nodes of a switch inside a
beforeRemoval
method):The stack trace of the error:
What is the expected behavior?
Be able to obtain the nodes of the switch before it is removed.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)
A similar issue happens in
BusBreakerVoltageLevel
.The text was updated successfully, but these errors were encountered: