[CONTROLLER-999] Clustering : Unknown value type byte[] Created: 05/Nov/14  Updated: 25/Jul/23  Resolved: 12/Nov/14

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

Type: Bug
Reporter: Peter Bandzi Assignee: Moiz Raja
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 karaf.log.gz    
External issue ID: 2325

 Description   

distribution-karaf-0.2.1-Helium-SU1-4-v201410270100

support for byte[] type is missing.

clustering tested with pcep. Pcep device is trying to delegate tunnel to ODL and following exception is raised.

to reproduce:
deploy cluster with pcep features and run
java -jar pcep-pcc-mock-0.3.2-SNAPSHOT-executable.jar

attached is also full log.

2014-11-05 07:49:42,364 | WARN | oupCloseable-4-1 | 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.
java.lang.IllegalArgumentException: Unknown value type byte[]
at org.opendaylight.controller.cluster.datastore.node.utils.serialization.ValueType.getSerializableType(ValueType.java:60)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.node.utils.serialization.ValueSerializer.serialize(ValueSerializer.java:24)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.node.utils.serialization.NormalizedNodeSerializer$Serializer.serialize(NormalizedNodeSerializer.java:179)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.node.utils.serialization.NormalizedNodeSerializer$Serializer.serialize(NormalizedNodeSerializer.java:186)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.node.utils.serialization.NormalizedNodeSerializer$Serializer.serialize(NormalizedNodeSerializer.java:186)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.node.utils.serialization.NormalizedNodeSerializer$Serializer.serialize(NormalizedNodeSerializer.java:186)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.node.utils.serialization.NormalizedNodeSerializer$Serializer.serialize(NormalizedNodeSerializer.java:186)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.node.utils.serialization.NormalizedNodeSerializer$Serializer.serialize(NormalizedNodeSerializer.java:186)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.node.utils.serialization.NormalizedNodeSerializer$Serializer.serialize(NormalizedNodeSerializer.java:186)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.node.utils.serialization.NormalizedNodeSerializer$Serializer.serialize(NormalizedNodeSerializer.java:186)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.node.utils.serialization.NormalizedNodeSerializer$Serializer.serialize(NormalizedNodeSerializer.java:151)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.node.NormalizedNodeToNodeCodec.encode(NormalizedNodeToNodeCodec.java:60)[236:org.opendaylight.controller.sal-clustering-commons:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.messages.WriteData.toSerializable(WriteData.java:30)[244:org.opendaylight.controller.sal-distributed-datastore:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.TransactionProxy$TransactionContextImpl.writeData(TransactionProxy.java:604)[244:org.opendaylight.controller.sal-distributed-datastore:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.cluster.datastore.TransactionProxy.write(TransactionProxy.java:278)[244:org.opendaylight.controller.sal-distributed-datastore:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMForwardedWriteTransaction.put(DOMForwardedWriteTransaction.java:90)[215:org.opendaylight.controller.sal-broker-impl:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.md.sal.binding.impl.AbstractWriteTransaction.put(AbstractWriteTransaction.java:49)[218:org.opendaylight.controller.sal-binding-broker-impl:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.controller.md.sal.binding.impl.BindingDataWriteTransactionImpl.put(BindingDataWriteTransactionImpl.java:40)[218:org.opendaylight.controller.sal-binding-broker-impl:1.1.1.Helium-SU1-4-v201410270100]
at org.opendaylight.bgpcep.pcep.topology.provider.AbstractTopologySessionListener.updateLsp(AbstractTopologySessionListener.java:359)[282:org.opendaylight.bgpcep.pcep-topology-provider:0.3.2.Helium-SU1-4-v201410270100]
at org.opendaylight.bgpcep.pcep.topology.provider.Stateful07TopologySessionListener.onMessage(Stateful07TopologySessionListener.java:203)[282:org.opendaylight.bgpcep.pcep-topology-provider:0.3.2.Helium-SU1-4-v201410270100]
at org.opendaylight.bgpcep.pcep.topology.provider.AbstractTopologySessionListener.onMessage(AbstractTopologySessionListener.java:217)[282:org.opendaylight.bgpcep.pcep-topology-provider:0.3.2.Helium-SU1-4-v201410270100]
at org.opendaylight.bgpcep.pcep.topology.provider.AbstractTopologySessionListener.onMessage(AbstractTopologySessionListener.java:65)[282:org.opendaylight.bgpcep.pcep-topology-provider:0.3.2.Helium-SU1-4-v201410270100]
at org.opendaylight.protocol.pcep.impl.PCEPSessionImpl.handleMessage(PCEPSessionImpl.java:321)[272:org.opendaylight.bgpcep.pcep-impl:0.3.2.Helium-SU1-4-v201410270100]
at org.opendaylight.protocol.pcep.impl.PCEPSessionImpl.handleMessage(PCEPSessionImpl.java:49)[272:org.opendaylight.bgpcep.pcep-impl:0.3.2.Helium-SU1-4-v201410270100]
at org.opendaylight.protocol.framework.AbstractProtocolSession.channelRead0(AbstractProtocolSession.java:46)[186:org.opendaylight.controller.protocol-framework:0.5.1.Helium-SU1-4-v201410270100]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[183:io.netty.transport:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[183:io.netty.transport:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[183:io.netty.transport:4.0.23.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)[204:io.netty.codec:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[183:io.netty.transport:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[183:io.netty.transport:4.0.23.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)[204:io.netty.codec:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[183:io.netty.transport:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[183:io.netty.transport:4.0.23.Final]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)[183:io.netty.transport:4.0.23.Final]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)[183:io.netty.transport:4.0.23.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[183:io.netty.transport:4.0.23.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[183:io.netty.transport:4.0.23.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[183:io.netty.transport:4.0.23.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[183:io.netty.transport:4.0.23.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)[184:io.netty.common:4.0.23.Final]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[184:io.netty.common:4.0.23.Final]
at java.lang.Thread.run(Unknown Source)[:1.7.0_67]



 Comments   
Comment by Peter Bandzi [ 05/Nov/14 ]

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

Comment by RichardHill [ 05/Nov/14 ]

Increased the priority because this is blocking PCEP cluster testing.

Comment by RichardHill [ 06/Nov/14 ]

This is the offending java file.

controller/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/serialization/ValueType.java

Comment by Moiz Raja [ 06/Nov/14 ]

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

Comment by Vratko Polak [ 12/Nov/14 ]

Re-opening, as the fix is currently only in stable/helium branch and NOT in master branch.

Comment by Tom Pantelis [ 12/Nov/14 ]

This was cherry-picked to master (https://git.opendaylight.org/gerrit/#/c/12540/) and merged on Nov 6th.

(In reply to Vratko Polák from comment #4)
> Re-opening, as the fix is currently only in stable/helium branch and NOT in
> master branch.

Comment by Vratko Polak [ 12/Nov/14 ]

> This was cherry-picked to master
> (https://git.opendaylight.org/gerrit/#/c/12540/) and merged on Nov 6th.

Yes, my fault.
I used Nexus link with "0.2.0" in URI so I got master from before Helium was cut.

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