[NETCONF-58] netconf connector replace causes transaction chain failure Created: 10/Aug/15  Updated: 15/Mar/19  Resolved: 18/Jan/16

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

Type: Bug
Reporter: Andrej Marcinek Assignee: Alexis de Talhouët
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Zip Archive 4114.ZIP     Text File bug_chain_failed.txt     Text File karaf.log    
External issue ID: 4114

 Description   

tested with https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.3.0-Lithium/distribution-karaf-0.3.0-Lithium.zip

i made some post, put and delete requests (see attachment), in random order and quantity and after while i got exception: java.lang.IllegalStateException: Transaction chain has failed

i was tested it against testtool started with command:
java -Dorg.apache.sshd.registerBouncyCastle=false -Xmx1G -XX:MaxPermSize=256M -jar /tmp/netconf-testtool/netconf-testtool-0.3.0-SNAPSHOT-executable.jar ssh true --generate-configs-batch-size 1000 --exi false --generate-config-connection-timeout 10000000 --generate-config-address 127.0.0.1 --device-count 2 --starting-port 17830 --debug false

karaf log with trace logs is also attached



 Comments   
Comment by Andrej Marcinek [ 10/Aug/15 ]

Attachment bug_chain_failed.txt has been added with description: rest requests

Comment by Andrej Marcinek [ 10/Aug/15 ]

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

Comment by Jozef Behran [ 17/Aug/15 ]

Replicated reliably with today's ODL version (URL: http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/0.3.1-SNAPSHOT//distribution-karaf-0.3.1-20150817.001526-244.tar.gz; SHA1SUM: 5b47dad7d4cb2f38b6a557992d418e30732fd8b4). See the attachmed file "4114.zip".

Comment by Jozef Behran [ 17/Aug/15 ]

Attachment 4114.ZIP has been added with description: Scripts to reproduce and resulting log file

Comment by Tomas Cere [ 18/Aug/15 ]

Seems to be a race condition submitting of a txchain and creating a new one, when a delete and initialization happen right after one another.

For now a workaround is to first delete a configuration instead of replacing it right away, so instead of POST > PUT it would be POST > DELETE > POST

Comment by Alexis de Talhouët [ 12/Jan/16 ]

https://git.opendaylight.org/gerrit/#/c/32352/

Comment by Alexis de Talhouët [ 14/Jan/16 ]

beryllium: https://git.opendaylight.org/gerrit/#/c/32579/

Generated at Wed Feb 07 20:14:03 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.