[CONTROLLER-1244] Datastore updates failing from sal-netconf-connector with clustered datastore Created: 09/Apr/15  Updated: 29/Apr/15  Resolved: 29/Apr/15

Status: Resolved
Project: controller
Component/s: netconf
Affects Version/s: Helium
Fix Version/s: None

Type: Bug
Reporter: Maros Marsalek Assignee: Marian Dubai
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File karaf.log    
External issue ID: 2969

 Description   

it seems the optimistic lock on datastore fails for early many transactions

2015-04-09 11:38:06,123 | WARN | lt-dispatcher-37 | ConcurrentDOMDataBroker | 179 - org.opendaylight.controller.sal-distributed-datastore - 1.2.0.SNAPSHOT | Tx: DOM-CHAIN-0-1 Error during phase CAN_COMMIT, starting Abort
java.util.concurrent.ExecutionException: OptimisticLockFailedException

{message=Optimistic lock failed., errorList=[RpcError [message=Optimistic lock failed., severity=ERROR, errorType=APPLICATION, tag=resource-denied, applicationTag=null, info=null, cause=org.opendaylight.yangtools.yang.data.api.schema.tree.ConflictingModificationAppliedException: Node was deleted by other transaction.]]}

NetconfDeviceDatastoreAdapter fails to get a lock on the IMDS

2015-04-09 11:38:06,145 | INFO | sing-executor-11 | NetconfDevice | 181 - org.opendaylight.controller.sal-netconf-connector - 1.2.0.SNAPSHOT | RemoteDevice

{controller-config}: Netconf connector initialized successfully
2015-04-09 11:38:06,145 | ERROR | CommitFutures-2 | NetconfDeviceDatastoreAdapter | 181 - org.opendaylight.controller.sal-netconf-connector - 1.2.0.SNAPSHOT | RemoteDevice{controller-config}

: Transaction(update) DOM-CHAIN-0-1 FAILED!
OptimisticLockFailedException

{message=Optimistic lock failed., errorList=[RpcError [message=Optimistic lock failed., severity=ERROR, errorType=APPLICATION, tag=resource-denied, applicationTag=null, info=null, cause=org.opendaylight.yangtools.yang.data.api.schema.tree.ConflictingModificationAppliedException: Node was deleted by other transaction.]]}

sal-netconf-connector is deleted twice.

2015-04-09 11:38:40,080 | WARN | tp1160736699-313 | WriteCandidateTx | 181 - org.opendaylight.controller.sal-netconf-connector - 1.2.0.SNAPSHOT | RemoteDevice

{controller-config}: Error deleting data (candidate)/(urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)modules/module/module[{(urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)type=(urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf?revision=2013-10-28)sal-netconf-connector, (urn:opendaylight:params:xml:ns:yang:controller:config?revision=2013-04-05)name=controller-config_xrvr}], canceling
NetconfDocumentedException{message=RemoteDevice{controller-config}

: Edit candidate failed: [RpcError [message=Unable to delete sal-netconf-connector : controller-config_xrvr , ServiceInstance not found, severity=ERROR, errorType=APPLICATION, tag=operation-failed, applicationTag=null, info=, cause=null]], errorType=application, errorTag=operation_failed, errorSeverity=warning, errorInfo={}}

NetconfDeviceTopologyAdapter is deleted twice

2015-04-09 11:38:06,164 | ERROR | CommitFutures-0 | NetconfDeviceTopologyAdapter | 181 - org.opendaylight.controller.sal-netconf-connector - 1.2.0.SNAPSHOT | RemoteDevice

{controller-config}

: Transaction(update) DOM-CHAIN-1-1 FAILED!
OptimisticLockFailedException

{message=Optimistic lock failed., errorList=[RpcError [message=Optimistic lock failed., severity=ERROR, errorType=APPLICATION, tag=resource-denied, applicationTag=null, info=null, cause=org.opendaylight.yangtools.yang.data.api.schema.tree.ConflictingModificationAppliedException: Node was deleted by other transaction.]]}

 Comments   
Comment by RichardHill [ 09/Apr/15 ]

added log

Comment by RichardHill [ 09/Apr/15 ]

Attachment karaf.log has been added with description: karaf log

Comment by Marian Dubai [ 29/Apr/15 ]

Cannot reproduce with latest distribution.

Generated at Wed Feb 07 19:55:02 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.