[BGPCEP-175] MpUnreachNlri without withdrawnRoutes leads to NullPointerException Created: 08/Dec/14 Updated: 03/Mar/19 Resolved: 10/Dec/14 |
|
| Status: | Verified |
| Project: | bgpcep |
| Component/s: | BGP |
| Affects Version/s: | Bugzilla Migration |
| Fix Version/s: | Bugzilla Migration 1.0 |
| Type: | Bug | ||
| Reporter: | Vratko Polak | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2492 |
| Description |
|
Seen on recent build from stable/helium branch. Here are snippets from karaf.log. I have not checked whether the message was parsed correctly, neither I have checked whether BGP speaker is even allowed to send such an update message. 2014-12-08 10:37:41,779 | TRACE | oupCloseable-4-4 | BGPByteToMessageDecoder
2014-12-08 10:37:41,788 | DEBUG | oupCloseable-4-4 | BGPUpdateMessageParser | 234 - org.opendaylight.bgpcep.bgp-parser-impl - 0.3.3.SNAPSHOT | BGP Update message was parsed Update [_pathAttributes=PathAttributes [augmentation=[PathAttributes2 [_mpUnreachNlri=MpUnreachNlri [_afi=class org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev131125.LinkstateAddressFamily, _safi=class org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev131125.LinkstateSubsequentAddressFamily, augmentation=[]]]]], augmentation=[]]. 2014-12-08 10:37:41,790 | WARN | oupCloseable-4-4 | DefaultChannelPipeline | 184 - io.netty.common - 4.0.23.Final | An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. |
| Comments |
| Comment by Vratko Polak [ 08/Dec/14 ] |
|
After few tries, this patch got rid of symptomatic WARNing. It does not contain a unit test. Also, a general re-write may be needed for the code to be defensive against similar situations in gray area of standards. |
| Comment by Vratko Polak [ 10/Dec/14 ] |
|
Verified to be fixed on this build: |