Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-2495

Buffer underflow when executing 'device-role' command

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.0
    • Component/s: None
    • Labels:
    • Environment:

      commit b7baf7195458c89c0a34c39712be3b6e676ac526 (HEAD, master)

    • Epic Link:
    • Sprint:
      Drake Sprint 2 (7/27-8/14) 2

      Description

      2015-07-30 13:32:25,698 | INFO  | h for user karaf | command                          | 154 - org.apache.karaf.log.command - 3.0.3 | Sending CLI command: 'device-role of:0000000000003016 10.128.30.15 master'
      2015-07-30 13:32:25,825 | INFO  | event-dispatch-0 | FlowObjectiveManager             | 77 - org.onosproject.onos-core-net - 1.3.0.SNAPSHOT | Driver ovs bound to device of:0000000000003012 ... initializing driver
      2015-07-30 13:32:25,856 | ERROR | h for user karaf | ShellUtil                        | 25 - org.apache.karaf.shell.console - 3.0.3 | Exception caught while executing command
      org.onosproject.store.service.ConsistentMapException: com.esotericsoftware.kryo.KryoException: Buffer underflow.
              at org.onosproject.store.consistent.impl.DefaultConsistentMap.complete(DefaultConsistentMap.java:178)
              at org.onosproject.store.consistent.impl.DefaultConsistentMap.computeIf(DefaultConsistentMap.java:103)
              at org.onosproject.store.consistent.impl.DistributedLeadershipManager.makeTopCandidate(DistributedLeadershipManager.java:342)
              at org.onosproject.store.mastership.impl.ConsistentDeviceMastershipStore.setMaster(ConsistentDeviceMastershipStore.java:253)
              at org.onosproject.cluster.impl.MastershipManager.setRole(MastershipManager.java:127)
              at org.onosproject.cli.net.DeviceRoleCommand.execute(DeviceRoleCommand.java:50)
              at org.onosproject.cli.AbstractShellCommand.doExecute(AbstractShellCommand.java:129)
              at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[25:org.apache.karaf.shell.console:3.0.3]
              at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.3]
              at Proxy98b2ae53_af9a_4dd7_855d_f84d3abbf39a.execute(Unknown Source)[:]
              at Proxy98b2ae53_af9a_4dd7_855d_f84d3abbf39a.execute(Unknown Source)[:]
              at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:3.0.3]
              at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[25:org.apache.karaf.shell.console:3.0.3]
              at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[25:org.apache.karaf.shell.console:3.0.3]
              at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:3.0.3]
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:3.0.3]
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:3.0.3]
              at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
              at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:208)
              at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.runConsole(ShellFactoryImpl.java:158)[88:org.apache.karaf.shell.ssh:3.0.3]
              at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:133)
              at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_45]
              at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[26:org.apache.karaf.jaas.modules:3.0.3]
              at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:129)[88:org.apache.karaf.shell.ssh:3.0.3]
      Caused by: com.esotericsoftware.kryo.KryoException: Buffer underflow.
              at com.esotericsoftware.kryo.io.Input.require(Input.java:181)[58:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.io.Input.readAscii_slow(Input.java:598)[58:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.io.Input.readAscii(Input.java:576)[58:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.io.Input.readString(Input.java:454)[58:com.esotericsoftware.kryo:3.0.0]
              at org.onosproject.store.serializers.NodeIdSerializer.read(NodeIdSerializer.java:45)[80:org.onosproject.onos-core-serializers:1.3.0.SNAPSHOT]
              at org.onosproject.store.serializers.NodeIdSerializer.read(NodeIdSerializer.java:28)[80:org.onosproject.onos-core-serializers:1.3.0.SNAPSHOT]
              at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:786)[58:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.serializers.CollectionSerializer.read(CollectionSerializer.java:116)[58:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.serializers.CollectionSerializer.read(CollectionSerializer.java:22)[58:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:786)[58:com.esotericsoftware.kryo:3.0.0]
              at org.onlab.util.KryoNamespace.deserialize(KryoNamespace.java:307)[73:org.onosproject.onlab-misc:1.3.0.SNAPSHOT]
              at org.onosproject.store.service.Serializer$1.decode(Serializer.java:70)[75:org.onosproject.onos-api:1.3.0.SNAPSHOT]
              at org.onosproject.store.consistent.impl.DefaultAsyncConsistentMap$$Lambda$231/1601901107.apply(Unknown Source)[79:org.onosproject.onos-core-dist:1.3.0.SNAPSHOT]
              at org.onosproject.store.service.Versioned.map(Versioned.java:99)[75:org.onosproject.onos-api:1.3.0.SNAPSHOT]
              at org.onosproject.store.consistent.impl.UpdateResult.map(UpdateResult.java:71)[79:org.onosproject.onos-core-dist:1.3.0.SNAPSHOT]
              at org.onosproject.store.consistent.impl.DefaultAsyncConsistentMap.lambda$updateAndGet$103(DefaultAsyncConsistentMap.java:426)[79:org.onosproject.onos-core-dist:1.3.0.SNAPSHOT]
              at org.onosproject.store.consistent.impl.DefaultAsyncConsistentMap$$Lambda$226/1336161492.apply(Unknown Source)[79:org.onosproject.onos-core-dist:1.3.0.SNAPSHOT]
              at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)[:1.8.0_45]
              at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)[:1.8.0_45]
              at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)[:1.8.0_45]
              at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:561)[:1.8.0_45]
              at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:580)[:1.8.0_45]
              at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)[:1.8.0_45]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_45]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_45]
              at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            madan Madan Jampani
            Reporter:
            jhall Jon Hall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: