Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1100

Exception when using a stream as both bootstrap and broadcast

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:
      None

      Description

      The following exception is thrown after setting test-system.test-topic to be both broadcast and bootstrap stream:

      017-02-22 20:20:45 SamzaContainer [ERROR] Caught exception in process loop.
      java.util.NoSuchElementException: key not found: SystemStream [system=test-system, stream=test-topic]
      at scala.collection.MapLike$class.default(MapLike.scala:228)
      at scala.collection.AbstractMap.default(Map.scala:58)
      at scala.collection.MapLike$class.apply(MapLike.scala:141)
      at scala.collection.AbstractMap.apply(Map.scala:58)
      at org.apache.samza.system.chooser.BootstrappingChooser.checkOffset(BootstrappingChooser.scala:249)
      at org.apache.samza.system.chooser.BootstrappingChooser.register(BootstrappingChooser.scala:127)
      at org.apache.samza.system.chooser.DefaultChooser.register(DefaultChooser.scala:289)
      at org.apache.samza.system.SystemConsumers.register(SystemConsumers.scala:209)
      at org.apache.samza.container.TaskInstance$$anonfun$registerConsumers$2.apply(TaskInstance.scala:134)
      at org.apache.samza.container.TaskInstance$$anonfun$registerConsumers$2.apply(TaskInstance.scala:131)
      at scala.collection.immutable.HashSet$HashSet1.foreach(HashSet.scala:153)
      at scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:306)
      at scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:306)
      at org.apache.samza.container.TaskInstance.registerConsumers(TaskInstance.scala:131)
      at org.apache.samza.container.SamzaContainer$$anonfun$startConsumers$2.apply(SamzaContainer.scala:823)
      at org.apache.samza.container.SamzaContainer$$anonfun$startConsumers$2.apply(SamzaContainer.scala:823)
      at scala.collection.Iterator$class.foreach(Iterator.scala:727)
      at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
      at scala.collection.MapLike$DefaultValuesIterable.foreach(MapLike.scala:206)
      at org.apache.samza.container.SamzaContainer.startConsumers(SamzaContainer.scala:823)
      at org.apache.samza.container.SamzaContainer.run(SamzaContainer.scala:687)
      at org.apache.samza.container.SamzaContainer$.safeMain(SamzaContainer.scala:109)
      at org.apache.samza.container.SamzaContainer$.main(SamzaContainer.scala:83)
      at org.apache.samza.container.SamzaContainer.main(SamzaContainer.scala)
      2017-02-22 20:20:45 SamzaContainer [INFO] Shutting down.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                spvenkat Shanthoosh Venkataraman
                Reporter:
                xinyu Xinyu Liu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: