Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-1325

Intermittent failure to emit RESTCONF body

XMLWordPrintable

      The following issue has been observed in CSIT, occurring intermittently in https://jenkins.opendaylight.org/releng/job/bgpcep-csit-1node-bgp-ingest-all-calcium/ since build #295:

      2024-06-11T04:32:57,464 | ERROR | qtp1378071595-111 | AbstractFuture                   | 49 - com.google.guava - 32.1.3.jre | RuntimeException while executing runnable CallbackListener{org.opendaylight.restconf.nb.jaxrs.JaxRsRestconf$3@1d610c29} with executor MoreExecutors.directExecutor()
      java.lang.UnsupportedOperationException: null
      	at org.opendaylight.restconf.server.spi.DefaultMapBodyOrder.sortKeys(DefaultMapBodyOrder.java:115) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DefaultMapBodyOrder.orderBody(DefaultMapBodyOrder.java:80) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DefaultMapBodyOrder.orderBody(DefaultMapBodyOrder.java:48) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DefaultNormalizedNodeWriter.writeMapEntry(DefaultNormalizedNodeWriter.java:147) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.NormalizedNodeWriter.write(NormalizedNodeWriter.java:119) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DefaultNormalizedNodeWriter.writeChildren(DefaultNormalizedNodeWriter.java:206) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DefaultNormalizedNodeWriter.writeMap(DefaultNormalizedNodeWriter.java:139) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.NormalizedNodeWriter.write(NormalizedNodeWriter.java:117) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DefaultNormalizedNodeWriter.writeChildren(DefaultNormalizedNodeWriter.java:206) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DefaultNormalizedNodeWriter.writeContainer(DefaultNormalizedNodeWriter.java:87) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.NormalizedNodeWriter.write(NormalizedNodeWriter.java:115) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DefaultNormalizedNodeWriter.writeChildren(DefaultNormalizedNodeWriter.java:206) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DefaultNormalizedNodeWriter.writeMapEntry(DefaultNormalizedNodeWriter.java:147) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.NormalizedNodeWriter.write(NormalizedNodeWriter.java:119) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DefaultNormalizedNodeWriter.writeChildren(DefaultNormalizedNodeWriter.java:206) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DefaultNormalizedNodeWriter.writeMap(DefaultNormalizedNodeWriter.java:139) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.NormalizedNodeWriter.write(NormalizedNodeWriter.java:117) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.NormalizedFormattableBody.writeTo(NormalizedFormattableBody.java:138) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.DataFormattableBody.formatToJSON(DataFormattableBody.java:66) ~[bundleFile:?]
      	at org.opendaylight.restconf.server.spi.NormalizedFormattableBody.formatToJSON(NormalizedFormattableBody.java:111) ~[bundleFile:?]
      	at org.opendaylight.restconf.nb.jaxrs.JsonJaxRsFormattableBodyWriter.writeTo(JsonJaxRsFormattableBodyWriter.java:25) ~[bundleFile:?]
      	at org.opendaylight.restconf.nb.jaxrs.JaxRsFormattableBodyWriter.writeTo(JaxRsFormattableBodyWriter.java:35) ~[bundleFile:?]
      	at org.opendaylight.restconf.nb.jaxrs.JaxRsFormattableBodyWriter.writeTo(JaxRsFormattableBodyWriter.java:23) ~[bundleFile:?]
      	at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:242) ~[?:?]

      The problem here is that the child iteration order is not guaranteed and we can hit a method which was not tested – introducing a regression with Ia70295cd048b97dfc284f014e477cfd72a5d347a .

       

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: