[BGPCEP-570] BGPCEP Boron Autorelease Breaking Created: 06/Oct/16  Updated: 03/Mar/19  Resolved: 20/Oct/16

Status: Resolved
Project: bgpcep
Component/s: General
Affects Version/s: Bugzilla Migration
Fix Version/s: Bugzilla Migration

Type: Bug
Reporter: A H Assignee: Ajay L
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: File bug6889-ports-49661-50024.pcap    
Issue Links:
Duplicate
is duplicated by BGPCEP-541 BmpMockTest#testMainInPassiveMode() f... Resolved
External issue ID: 6889

 Description   

https://jenkins.opendaylight.org/releng/view/autorelease/job/autorelease-release-boron/17/

Running org.opendaylight.protocol.bmp.mock.BmpMockTest
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 12.067 sec <<< FAILURE! - in org.opendaylight.protocol.bmp.mock.BmpMockTest
testMainInPassiveMode(org.opendaylight.protocol.bmp.mock.BmpMockTest) Time elapsed: 5.452 sec <<< FAILURE!
org.mockito.exceptions.verification.WantedButNotInvoked:
Wanted but not invoked:
bmpSessionListener.onSessionUp(<any>);
-> at org.opendaylight.protocol.bmp.mock.BmpMockTest.testMainInPassiveMode(BmpMockTest.java:91)
Actually, there were zero interactions with this mock.
at org.opendaylight.protocol.bmp.mock.BmpMockTest.testMainInPassiveMode(BmpMockTest.java:91)
Running org.opendaylight.protocol.bmp.mock.BmpMockUtilTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.128 sec - in org.opendaylight.protocol.bmp.mock.BmpMockUtilTest
Results :
Failed tests:
BmpMockTest.testMainInPassiveMode:91
Wanted but not invoked:
bmpSessionListener.onSessionUp(<any>);
-> at org.opendaylight.protocol.bmp.mock.BmpMockTest.testMainInPassiveMode(BmpMockTest.java:91)
Actually, there were zero interactions with this mock.



 Comments   
Comment by Ajay L [ 06/Oct/16 ]

stable/boron: https://git.opendaylight.org/gerrit/46634

Comment by Milos Fabian [ 07/Oct/16 ]

master: https://git.opendaylight.org/gerrit/#/c/46652/

Comment by Milos Fabian [ 07/Oct/16 ]

Reopening, the test failure observed again: https://jenkins.opendaylight.org/releng/job/bgpcep-verify-boron-mvn33-openjdk8/342/console

Comment by Ajay L [ 19/Oct/16 ]

New patch for stable/boron is here: https://git.opendaylight.org/gerrit/#/c/47176/

Looks like what is happening is sometimes when BMP server is started, it is not available immediately for client connection, so client connection does not succeed. Fix is to detect this condition and in that case wait an additional 30 secs. for the client reconnection attempt to kick-in before doing the test validation

I was able to see the issue by running the test multiple times. Packet capture from one such run is attached (along with fix). Ref. packets on port TCP/49661 or TCP/50024

Comment by Ajay L [ 19/Oct/16 ]

Attachment bug6889-ports-49661-50024.pcap has been added with description: Packet capture from BMP test

Comment by Ajay L [ 20/Oct/16 ]

New patch for master: https://git.opendaylight.org/gerrit/#/c/47209/

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