Regression

org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite.subscribing topic by pattern with topic deletions

Failing for the past 1 build (Since Failed#5037 )
Took 2 min 46 sec.

Error Message

org.scalatest.exceptions.TestFailedException:  Assert on query failed: Execute: The code passed to eventually never returned normally. Attempted 287 times over 1.0032831090999998 minutes. Last failure message: KafkaTestUtils.this.zkClient.isTopicMarkedForDeletion(topic) was true topic is still marked for deletion. org.scalatest.concurrent.Eventually.tryTryAgain$1(Eventually.scala:432)  org.scalatest.concurrent.Eventually.eventually(Eventually.scala:439)  org.scalatest.concurrent.Eventually.eventually$(Eventually.scala:391)  org.scalatest.concurrent.Eventually$.eventually(Eventually.scala:479)  org.scalatest.concurrent.Eventually.eventually(Eventually.scala:308)  org.scalatest.concurrent.Eventually.eventually$(Eventually.scala:307)  org.scalatest.concurrent.Eventually$.eventually(Eventually.scala:479)  org.apache.spark.sql.kafka010.KafkaTestUtils.verifyTopicDeletionWithRetries(KafkaTestUtils.scala:636)  org.apache.spark.sql.kafka010.KafkaTestUtils.deleteTopic(KafkaTestUtils.scala:428)  org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite.$anonfun$new$33(KafkaContinuousSourceSuite.scala:210)   Caused by:  KafkaTestUtils.this.zkClient.isTopicMarkedForDeletion(topic) was true topic is still marked for deletion  org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:530)   org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:529)   org.scalatest.Assertions$.newAssertionFailedException(Assertions.scala:1389)   org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:503)   org.apache.spark.sql.kafka010.KafkaTestUtils.verifyTopicDeletion(KafkaTestUtils.scala:608)   org.apache.spark.sql.kafka010.KafkaTestUtils.$anonfun$verifyTopicDeletionWithRetries$1(KafkaTestUtils.scala:638)   scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)   org.scalatest.concurrent.Eventually.makeAValiantAttempt$1(Eventually.scala:395)   org.scalatest.concurrent.Eventually.tryTryAgain$1(Eventually.scala:409)   org.scalatest.concurrent.Eventually.eventually(Eventually.scala:439)   == Progress ==    AssertOnQuery(<condition>, )    AddKafkaData(topics = Set(topic-0-seems), data = WrappedArray(1, 2, 3), message = )    CheckAnswer: [2],[3],[4] => AssertOnQuery(<condition>, Execute)    AddKafkaData(topics = Set(topic-0-bad), data = WrappedArray(4, 5, 6), message = )    CheckAnswer: [2],[3],[4],[5],[6],[7]  == Stream == Output Mode: Append Stream state: {KafkaSource[SubscribePattern[topic-0-.*]]: {"topic-0-seems":{"2":1,"4":0,"1":1,"3":0,"0":2}}} Thread state: alive Thread stack trace: org.apache.spark.sql.catalyst.analysis.CheckAnalysis$$anonfun$$nestedInanonfun$checkAnalysis$1$2.applyOrElse(CheckAnalysis.scala:145) org.apache.spark.sql.catalyst.analysis.CheckAnalysis$$anonfun$$nestedInanonfun$checkAnalysis$1$2.applyOrElse(CheckAnalysis.scala:140) org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$transformUp$2(TreeNode.scala:333) org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2883/987846057.apply(Unknown Source) org.apache.spark.sql.catalyst.trees.CurrentOrigin$.withOrigin(TreeNode.scala:72) org.apache.spark.sql.catalyst.trees.TreeNode.transformUp(TreeNode.scala:333) org.apache.spark.sql.catalyst.plans.QueryPlan.$anonfun$transformExpressionsUp$1(QueryPlan.scala:106) org.apache.spark.sql.catalyst.plans.QueryPlan$$Lambda$2881/192598972.apply(Unknown Source) org.apache.spark.sql.catalyst.plans.QueryPlan.$anonfun$mapExpressions$1(QueryPlan.scala:118) org.apache.spark.sql.catalyst.plans.QueryPlan$$Lambda$2858/1714010740.apply(Unknown Source) org.apache.spark.sql.catalyst.trees.CurrentOrigin$.withOrigin(TreeNode.scala:72) org.apache.spark.sql.catalyst.plans.QueryPlan.transformExpression$1(QueryPlan.scala:118) org.apache.spark.sql.catalyst.plans.QueryPlan.recursiveTransform$1(QueryPlan.scala:129) org.apache.spark.sql.catalyst.plans.QueryPlan.$anonfun$mapExpressions$3(QueryPlan.scala:134) org.apache.spark.sql.catalyst.plans.QueryPlan$$Lambda$2857/658427070.apply(Unknown Source) scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238) scala.collection.TraversableLike$$Lambda$15/225290371.apply(Unknown Source) scala.collection.immutable.List.foreach(List.scala:392) scala.collection.TraversableLike.map(TraversableLike.scala:238) scala.collection.TraversableLike.map$(TraversableLike.scala:231) scala.collection.immutable.List.map(List.scala:298) org.apache.spark.sql.catalyst.plans.QueryPlan.recursiveTransform$1(QueryPlan.scala:134) org.apache.spark.sql.catalyst.plans.QueryPlan.$anonfun$mapExpressions$4(QueryPlan.scala:139) org.apache.spark.sql.catalyst.plans.QueryPlan$$Lambda$2856/1766472664.apply(Unknown Source) org.apache.spark.sql.catalyst.trees.TreeNode.mapProductIterator(TreeNode.scala:237) org.apache.spark.sql.catalyst.plans.QueryPlan.mapExpressions(QueryPlan.scala:139) org.apache.spark.sql.catalyst.plans.QueryPlan.transformExpressionsUp(QueryPlan.scala:106) org.apache.spark.sql.catalyst.analysis.CheckAnalysis.$anonfun$checkAnalysis$1(CheckAnalysis.scala:140) org.apache.spark.sql.catalyst.analysis.CheckAnalysis.$anonfun$checkAnalysis$1$adapted(CheckAnalysis.scala:92) org.apache.spark.sql.catalyst.analysis.CheckAnalysis$$Lambda$2887/2000454761.apply(Unknown Source) org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:177) org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2888/536925130.apply(Unknown Source) scala.collection.immutable.List.foreach(List.scala:392) org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2888/536925130.apply(Unknown Source) scala.collection.immutable.List.foreach(List.scala:392) org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2888/536925130.apply(Unknown Source) scala.collection.immutable.List.foreach(List.scala:392) org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2888/536925130.apply(Unknown Source) scala.collection.immutable.List.foreach(List.scala:392) org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:176) org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2888/536925130.apply(Unknown Source) scala.collection.immutable.List.foreach(List.scala:392) org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:176) org.apache.spark.sql.catalyst.analysis.CheckAnalysis.checkAnalysis(CheckAnalysis.scala:92) org.apache.spark.sql.catalyst.analysis.CheckAnalysis.checkAnalysis$(CheckAnalysis.scala:89) org.apache.spark.sql.catalyst.analysis.Analyzer.checkAnalysis(Analyzer.scala:130) org.apache.spark.sql.catalyst.analysis.Analyzer.$anonfun$executeAndCheck$1(Analyzer.scala:156) org.apache.spark.sql.catalyst.analysis.Analyzer$$Lambda$2827/958588278.apply(Unknown Source) org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper$.markInAnalyzer(AnalysisHelper.scala:201) org.apache.spark.sql.catalyst.analysis.Analyzer.executeAndCheck(Analyzer.scala:153) org.apache.spark.sql.execution.QueryExecution.$anonfun$analyzed$1(QueryExecution.scala:68) org.apache.spark.sql.execution.QueryExecution$$Lambda$2820/1542507498.apply(Unknown Source) org.apache.spark.sql.catalyst.QueryPlanningTracker.measurePhase(QueryPlanningTracker.scala:111) org.apache.spark.sql.execution.QueryExecution.$anonfun$executePhase$1(QueryExecution.scala:120) org.apache.spark.sql.execution.QueryExecution$$Lambda$2821/657740752.apply(Unknown Source) org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:764) org.apache.spark.sql.execution.QueryExecution.executePhase(QueryExecution.scala:120) org.apache.spark.sql.execution.QueryExecution.analyzed$lzycompute(QueryExecution.scala:68) org.apache.spark.sql.execution.QueryExecution.analyzed(QueryExecution.scala:66) org.apache.spark.sql.execution.QueryExecution.assertAnalyzed(QueryExecution.scala:58) org.apache.spark.sql.execution.QueryExecution.$anonfun$withCachedData$1(QueryExecution.scala:72) org.apache.spark.sql.execution.QueryExecution$$Lambda$3276/847913114.apply(Unknown Source) org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:764) org.apache.spark.sql.execution.QueryExecution.withCachedData$lzycompute(QueryExecution.scala:71) org.apache.spark.sql.execution.QueryExecution.withCachedData(QueryExecution.scala:71) org.apache.spark.sql.execution.streaming.IncrementalExecution.$anonfun$optimizedPlan$1(IncrementalExecution.scala:80) org.apache.spark.sql.execution.streaming.IncrementalExecution$$Lambda$3274/1750773143.apply(Unknown Source) org.apache.spark.sql.catalyst.QueryPlanningTracker.measurePhase(QueryPlanningTracker.scala:111) org.apache.spark.sql.execution.streaming.IncrementalExecution.optimizedPlan$lzycompute(IncrementalExecution.scala:81) org.apache.spark.sql.execution.streaming.IncrementalExecution.optimizedPlan(IncrementalExecution.scala:79) org.apache.spark.sql.execution.QueryExecution.$anonfun$sparkPlan$1(QueryExecution.scala:87) org.apache.spark.sql.execution.QueryExecution$$Lambda$3273/1885825400.apply(Unknown Source) org.apache.spark.sql.catalyst.QueryPlanningTracker.measurePhase(QueryPlanningTracker.scala:111) org.apache.spark.sql.execution.QueryExecution.$anonfun$executePhase$1(QueryExecution.scala:120) org.apache.spark.sql.execution.QueryExecution$$Lambda$2821/657740752.apply(Unknown Source) org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:764) org.apache.spark.sql.execution.QueryExecution.executePhase(QueryExecution.scala:120) org.apache.spark.sql.execution.QueryExecution.sparkPlan$lzycompute(QueryExecution.scala:87) org.apache.spark.sql.execution.QueryExecution.sparkPlan(QueryExecution.scala:85) org.apache.spark.sql.execution.QueryExecution.$anonfun$executedPlan$1(QueryExecution.scala:95) org.apache.spark.sql.execution.QueryExecution$$Lambda$3272/1626723795.apply(Unknown Source) org.apache.spark.sql.catalyst.QueryPlanningTracker.measurePhase(QueryPlanningTracker.scala:111) org.apache.spark.sql.execution.QueryExecution.$anonfun$executePhase$1(QueryExecution.scala:120) org.apache.spark.sql.execution.QueryExecution$$Lambda$2821/657740752.apply(Unknown Source) org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:764) org.apache.spark.sql.execution.QueryExecution.executePhase(QueryExecution.scala:120) org.apache.spark.sql.execution.QueryExecution.executedPlan$lzycompute(QueryExecution.scala:95) org.apache.spark.sql.execution.QueryExecution.executedPlan(QueryExecution.scala:92) org.apache.spark.sql.execution.streaming.continuous.ContinuousExecution.$anonfun$runContinuous$2(ContinuousExecution.scala:191) org.apache.spark.sql.execution.streaming.continuous.ContinuousExecution$$Lambda$4351/1864144812.apply(Unknown Source) org.apache.spark.sql.execution.streaming.ProgressReporter.reportTimeTaken(ProgressReporter.scala:352) org.apache.spark.sql.execution.streaming.ProgressReporter.reportTimeTaken$(ProgressReporter.scala:350) org.apache.spark.sql.execution.streaming.StreamExecution.reportTimeTaken(StreamExecution.scala:68) org.apache.spark.sql.execution.streaming.continuous.ContinuousExecution.runContinuous(ContinuousExecution.scala:181) org.apache.spark.sql.execution.streaming.continuous.ContinuousExecution.runActivatedStream(ContinuousExecution.scala:109) org.apache.spark.sql.execution.streaming.StreamExecution.org$apache$spark$sql$execution$streaming$StreamExecution$$runStream(StreamExecution.scala:333) org.apache.spark.sql.execution.streaming.StreamExecution$$anon$1.run(StreamExecution.scala:244)   == Sink == 0:  1:  2:  3: [2] [3] 4:  5: [4] 6:  7:  8:  9:  10:  11:  12:  13:  14:  15:  16:  17:  18:  19:  20:  21:  22:  23:    == Plan == == Parsed Logical Plan == WriteToContinuousDataSource org.apache.spark.sql.execution.streaming.sources.MemoryStreamingWrite@7fcbdc5a +- SerializeFromObject [input[0, int, false] AS value#17344]    +- MapElements org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite$$Lambda$6884/1974688249@761461d7, class scala.Tuple2, [StructField(_1,StringType,true), StructField(_2,StringType,true)], obj#17343: int       +- DeserializeToObject newInstance(class scala.Tuple2), obj#17342: scala.Tuple2          +- Project [cast(key#17318 as string) AS key#17332, cast(value#17319 as string) AS value#17333]             +- StreamingDataSourceV2Relation [key#17318, value#17319, topic#17320, partition#17321, offset#17322L, timestamp#17323, timestampType#17324], org.apache.spark.sql.kafka010.KafkaSourceProvider$KafkaScan@30005d15, KafkaSource[SubscribePattern[topic-0-.*]], {"topic-0-seems":{"2":1,"4":0,"1":1,"3":0,"0":2}}  == Analyzed Logical Plan ==  WriteToContinuousDataSource org.apache.spark.sql.execution.streaming.sources.MemoryStreamingWrite@7fcbdc5a +- SerializeFromObject [input[0, int, false] AS value#17344]    +- MapElements org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite$$Lambda$6884/1974688249@761461d7, class scala.Tuple2, [StructField(_1,StringType,true), StructField(_2,StringType,true)], obj#17343: int       +- DeserializeToObject newInstance(class scala.Tuple2), obj#17342: scala.Tuple2          +- Project [cast(key#17318 as string) AS key#17332, cast(value#17319 as string) AS value#17333]             +- StreamingDataSourceV2Relation [key#17318, value#17319, topic#17320, partition#17321, offset#17322L, timestamp#17323, timestampType#17324], org.apache.spark.sql.kafka010.KafkaSourceProvider$KafkaScan@30005d15, KafkaSource[SubscribePattern[topic-0-.*]], {"topic-0-seems":{"2":1,"4":0,"1":1,"3":0,"0":2}}  == Optimized Logical Plan == WriteToContinuousDataSource org.apache.spark.sql.execution.streaming.sources.MemoryStreamingWrite@7fcbdc5a +- SerializeFromObject [input[0, int, false] AS value#17344]    +- MapElements org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite$$Lambda$6884/1974688249@761461d7, class scala.Tuple2, [StructField(_1,StringType,true), StructField(_2,StringType,true)], obj#17343: int       +- DeserializeToObject newInstance(class scala.Tuple2), obj#17342: scala.Tuple2          +- Project [cast(key#17318 as string) AS key#17332, cast(value#17319 as string) AS value#17333]             +- StreamingDataSourceV2Relation [key#17318, value#17319, topic#17320, partition#17321, offset#17322L, timestamp#17323, timestampType#17324], org.apache.spark.sql.kafka010.KafkaSourceProvider$KafkaScan@30005d15, KafkaSource[SubscribePattern[topic-0-.*]], {"topic-0-seems":{"2":1,"4":0,"1":1,"3":0,"0":2}}  == Physical Plan == WriteToContinuousDataSource org.apache.spark.sql.execution.streaming.sources.MemoryStreamingWrite@7fcbdc5a +- *(1) SerializeFromObject [input[0, int, false] AS value#17344]    +- *(1) MapElements org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite$$Lambda$6884/1974688249@761461d7, obj#17343: int       +- *(1) DeserializeToObject newInstance(class scala.Tuple2), obj#17342: scala.Tuple2          +- *(1) Project [cast(key#17318 as string) AS key#17332, cast(value#17319 as string) AS value#17333]             +- *(1) Project [key#17318, value#17319, topic#17320, partition#17321, offset#17322L, timestamp#17323, timestampType#17324]                +- ContinuousScan[key#17318, value#17319, topic#17320, partition#17321, offset#17322L, timestamp#17323, timestampType#17324] class org.apache.spark.sql.kafka010.KafkaSourceProvider$KafkaScan                     

Stacktrace

sbt.ForkMain$ForkError: org.scalatest.exceptions.TestFailedException: 
Assert on query failed: Execute: The code passed to eventually never returned normally. Attempted 287 times over 1.0032831090999998 minutes. Last failure message: KafkaTestUtils.this.zkClient.isTopicMarkedForDeletion(topic) was true topic is still marked for deletion.
org.scalatest.concurrent.Eventually.tryTryAgain$1(Eventually.scala:432)
	org.scalatest.concurrent.Eventually.eventually(Eventually.scala:439)
	org.scalatest.concurrent.Eventually.eventually$(Eventually.scala:391)
	org.scalatest.concurrent.Eventually$.eventually(Eventually.scala:479)
	org.scalatest.concurrent.Eventually.eventually(Eventually.scala:308)
	org.scalatest.concurrent.Eventually.eventually$(Eventually.scala:307)
	org.scalatest.concurrent.Eventually$.eventually(Eventually.scala:479)
	org.apache.spark.sql.kafka010.KafkaTestUtils.verifyTopicDeletionWithRetries(KafkaTestUtils.scala:636)
	org.apache.spark.sql.kafka010.KafkaTestUtils.deleteTopic(KafkaTestUtils.scala:428)
	org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite.$anonfun$new$33(KafkaContinuousSourceSuite.scala:210)

	Caused by: 	KafkaTestUtils.this.zkClient.isTopicMarkedForDeletion(topic) was true topic is still marked for deletion
	org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:530)
		org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:529)
		org.scalatest.Assertions$.newAssertionFailedException(Assertions.scala:1389)
		org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:503)
		org.apache.spark.sql.kafka010.KafkaTestUtils.verifyTopicDeletion(KafkaTestUtils.scala:608)
		org.apache.spark.sql.kafka010.KafkaTestUtils.$anonfun$verifyTopicDeletionWithRetries$1(KafkaTestUtils.scala:638)
		scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
		org.scalatest.concurrent.Eventually.makeAValiantAttempt$1(Eventually.scala:395)
		org.scalatest.concurrent.Eventually.tryTryAgain$1(Eventually.scala:409)
		org.scalatest.concurrent.Eventually.eventually(Eventually.scala:439)


== Progress ==
   AssertOnQuery(<condition>, )
   AddKafkaData(topics = Set(topic-0-seems), data = WrappedArray(1, 2, 3), message = )
   CheckAnswer: [2],[3],[4]
=> AssertOnQuery(<condition>, Execute)
   AddKafkaData(topics = Set(topic-0-bad), data = WrappedArray(4, 5, 6), message = )
   CheckAnswer: [2],[3],[4],[5],[6],[7]

== Stream ==
Output Mode: Append
Stream state: {KafkaSource[SubscribePattern[topic-0-.*]]: {"topic-0-seems":{"2":1,"4":0,"1":1,"3":0,"0":2}}}
Thread state: alive
Thread stack trace: org.apache.spark.sql.catalyst.analysis.CheckAnalysis$$anonfun$$nestedInanonfun$checkAnalysis$1$2.applyOrElse(CheckAnalysis.scala:145)
org.apache.spark.sql.catalyst.analysis.CheckAnalysis$$anonfun$$nestedInanonfun$checkAnalysis$1$2.applyOrElse(CheckAnalysis.scala:140)
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$transformUp$2(TreeNode.scala:333)
org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2883/987846057.apply(Unknown Source)
org.apache.spark.sql.catalyst.trees.CurrentOrigin$.withOrigin(TreeNode.scala:72)
org.apache.spark.sql.catalyst.trees.TreeNode.transformUp(TreeNode.scala:333)
org.apache.spark.sql.catalyst.plans.QueryPlan.$anonfun$transformExpressionsUp$1(QueryPlan.scala:106)
org.apache.spark.sql.catalyst.plans.QueryPlan$$Lambda$2881/192598972.apply(Unknown Source)
org.apache.spark.sql.catalyst.plans.QueryPlan.$anonfun$mapExpressions$1(QueryPlan.scala:118)
org.apache.spark.sql.catalyst.plans.QueryPlan$$Lambda$2858/1714010740.apply(Unknown Source)
org.apache.spark.sql.catalyst.trees.CurrentOrigin$.withOrigin(TreeNode.scala:72)
org.apache.spark.sql.catalyst.plans.QueryPlan.transformExpression$1(QueryPlan.scala:118)
org.apache.spark.sql.catalyst.plans.QueryPlan.recursiveTransform$1(QueryPlan.scala:129)
org.apache.spark.sql.catalyst.plans.QueryPlan.$anonfun$mapExpressions$3(QueryPlan.scala:134)
org.apache.spark.sql.catalyst.plans.QueryPlan$$Lambda$2857/658427070.apply(Unknown Source)
scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238)
scala.collection.TraversableLike$$Lambda$15/225290371.apply(Unknown Source)
scala.collection.immutable.List.foreach(List.scala:392)
scala.collection.TraversableLike.map(TraversableLike.scala:238)
scala.collection.TraversableLike.map$(TraversableLike.scala:231)
scala.collection.immutable.List.map(List.scala:298)
org.apache.spark.sql.catalyst.plans.QueryPlan.recursiveTransform$1(QueryPlan.scala:134)
org.apache.spark.sql.catalyst.plans.QueryPlan.$anonfun$mapExpressions$4(QueryPlan.scala:139)
org.apache.spark.sql.catalyst.plans.QueryPlan$$Lambda$2856/1766472664.apply(Unknown Source)
org.apache.spark.sql.catalyst.trees.TreeNode.mapProductIterator(TreeNode.scala:237)
org.apache.spark.sql.catalyst.plans.QueryPlan.mapExpressions(QueryPlan.scala:139)
org.apache.spark.sql.catalyst.plans.QueryPlan.transformExpressionsUp(QueryPlan.scala:106)
org.apache.spark.sql.catalyst.analysis.CheckAnalysis.$anonfun$checkAnalysis$1(CheckAnalysis.scala:140)
org.apache.spark.sql.catalyst.analysis.CheckAnalysis.$anonfun$checkAnalysis$1$adapted(CheckAnalysis.scala:92)
org.apache.spark.sql.catalyst.analysis.CheckAnalysis$$Lambda$2887/2000454761.apply(Unknown Source)
org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:177)
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2888/536925130.apply(Unknown Source)
scala.collection.immutable.List.foreach(List.scala:392)
org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2888/536925130.apply(Unknown Source)
scala.collection.immutable.List.foreach(List.scala:392)
org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2888/536925130.apply(Unknown Source)
scala.collection.immutable.List.foreach(List.scala:392)
org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2888/536925130.apply(Unknown Source)
scala.collection.immutable.List.foreach(List.scala:392)
org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:176)
org.apache.spark.sql.catalyst.trees.TreeNode$$Lambda$2888/536925130.apply(Unknown Source)
scala.collection.immutable.List.foreach(List.scala:392)
org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:176)
org.apache.spark.sql.catalyst.analysis.CheckAnalysis.checkAnalysis(CheckAnalysis.scala:92)
org.apache.spark.sql.catalyst.analysis.CheckAnalysis.checkAnalysis$(CheckAnalysis.scala:89)
org.apache.spark.sql.catalyst.analysis.Analyzer.checkAnalysis(Analyzer.scala:130)
org.apache.spark.sql.catalyst.analysis.Analyzer.$anonfun$executeAndCheck$1(Analyzer.scala:156)
org.apache.spark.sql.catalyst.analysis.Analyzer$$Lambda$2827/958588278.apply(Unknown Source)
org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper$.markInAnalyzer(AnalysisHelper.scala:201)
org.apache.spark.sql.catalyst.analysis.Analyzer.executeAndCheck(Analyzer.scala:153)
org.apache.spark.sql.execution.QueryExecution.$anonfun$analyzed$1(QueryExecution.scala:68)
org.apache.spark.sql.execution.QueryExecution$$Lambda$2820/1542507498.apply(Unknown Source)
org.apache.spark.sql.catalyst.QueryPlanningTracker.measurePhase(QueryPlanningTracker.scala:111)
org.apache.spark.sql.execution.QueryExecution.$anonfun$executePhase$1(QueryExecution.scala:120)
org.apache.spark.sql.execution.QueryExecution$$Lambda$2821/657740752.apply(Unknown Source)
org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:764)
org.apache.spark.sql.execution.QueryExecution.executePhase(QueryExecution.scala:120)
org.apache.spark.sql.execution.QueryExecution.analyzed$lzycompute(QueryExecution.scala:68)
org.apache.spark.sql.execution.QueryExecution.analyzed(QueryExecution.scala:66)
org.apache.spark.sql.execution.QueryExecution.assertAnalyzed(QueryExecution.scala:58)
org.apache.spark.sql.execution.QueryExecution.$anonfun$withCachedData$1(QueryExecution.scala:72)
org.apache.spark.sql.execution.QueryExecution$$Lambda$3276/847913114.apply(Unknown Source)
org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:764)
org.apache.spark.sql.execution.QueryExecution.withCachedData$lzycompute(QueryExecution.scala:71)
org.apache.spark.sql.execution.QueryExecution.withCachedData(QueryExecution.scala:71)
org.apache.spark.sql.execution.streaming.IncrementalExecution.$anonfun$optimizedPlan$1(IncrementalExecution.scala:80)
org.apache.spark.sql.execution.streaming.IncrementalExecution$$Lambda$3274/1750773143.apply(Unknown Source)
org.apache.spark.sql.catalyst.QueryPlanningTracker.measurePhase(QueryPlanningTracker.scala:111)
org.apache.spark.sql.execution.streaming.IncrementalExecution.optimizedPlan$lzycompute(IncrementalExecution.scala:81)
org.apache.spark.sql.execution.streaming.IncrementalExecution.optimizedPlan(IncrementalExecution.scala:79)
org.apache.spark.sql.execution.QueryExecution.$anonfun$sparkPlan$1(QueryExecution.scala:87)
org.apache.spark.sql.execution.QueryExecution$$Lambda$3273/1885825400.apply(Unknown Source)
org.apache.spark.sql.catalyst.QueryPlanningTracker.measurePhase(QueryPlanningTracker.scala:111)
org.apache.spark.sql.execution.QueryExecution.$anonfun$executePhase$1(QueryExecution.scala:120)
org.apache.spark.sql.execution.QueryExecution$$Lambda$2821/657740752.apply(Unknown Source)
org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:764)
org.apache.spark.sql.execution.QueryExecution.executePhase(QueryExecution.scala:120)
org.apache.spark.sql.execution.QueryExecution.sparkPlan$lzycompute(QueryExecution.scala:87)
org.apache.spark.sql.execution.QueryExecution.sparkPlan(QueryExecution.scala:85)
org.apache.spark.sql.execution.QueryExecution.$anonfun$executedPlan$1(QueryExecution.scala:95)
org.apache.spark.sql.execution.QueryExecution$$Lambda$3272/1626723795.apply(Unknown Source)
org.apache.spark.sql.catalyst.QueryPlanningTracker.measurePhase(QueryPlanningTracker.scala:111)
org.apache.spark.sql.execution.QueryExecution.$anonfun$executePhase$1(QueryExecution.scala:120)
org.apache.spark.sql.execution.QueryExecution$$Lambda$2821/657740752.apply(Unknown Source)
org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:764)
org.apache.spark.sql.execution.QueryExecution.executePhase(QueryExecution.scala:120)
org.apache.spark.sql.execution.QueryExecution.executedPlan$lzycompute(QueryExecution.scala:95)
org.apache.spark.sql.execution.QueryExecution.executedPlan(QueryExecution.scala:92)
org.apache.spark.sql.execution.streaming.continuous.ContinuousExecution.$anonfun$runContinuous$2(ContinuousExecution.scala:191)
org.apache.spark.sql.execution.streaming.continuous.ContinuousExecution$$Lambda$4351/1864144812.apply(Unknown Source)
org.apache.spark.sql.execution.streaming.ProgressReporter.reportTimeTaken(ProgressReporter.scala:352)
org.apache.spark.sql.execution.streaming.ProgressReporter.reportTimeTaken$(ProgressReporter.scala:350)
org.apache.spark.sql.execution.streaming.StreamExecution.reportTimeTaken(StreamExecution.scala:68)
org.apache.spark.sql.execution.streaming.continuous.ContinuousExecution.runContinuous(ContinuousExecution.scala:181)
org.apache.spark.sql.execution.streaming.continuous.ContinuousExecution.runActivatedStream(ContinuousExecution.scala:109)
org.apache.spark.sql.execution.streaming.StreamExecution.org$apache$spark$sql$execution$streaming$StreamExecution$$runStream(StreamExecution.scala:333)
org.apache.spark.sql.execution.streaming.StreamExecution$$anon$1.run(StreamExecution.scala:244)


== Sink ==
0: 
1: 
2: 
3: [2] [3]
4: 
5: [4]
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 


== Plan ==
== Parsed Logical Plan ==
WriteToContinuousDataSource org.apache.spark.sql.execution.streaming.sources.MemoryStreamingWrite@7fcbdc5a
+- SerializeFromObject [input[0, int, false] AS value#17344]
   +- MapElements org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite$$Lambda$6884/1974688249@761461d7, class scala.Tuple2, [StructField(_1,StringType,true), StructField(_2,StringType,true)], obj#17343: int
      +- DeserializeToObject newInstance(class scala.Tuple2), obj#17342: scala.Tuple2
         +- Project [cast(key#17318 as string) AS key#17332, cast(value#17319 as string) AS value#17333]
            +- StreamingDataSourceV2Relation [key#17318, value#17319, topic#17320, partition#17321, offset#17322L, timestamp#17323, timestampType#17324], org.apache.spark.sql.kafka010.KafkaSourceProvider$KafkaScan@30005d15, KafkaSource[SubscribePattern[topic-0-.*]], {"topic-0-seems":{"2":1,"4":0,"1":1,"3":0,"0":2}}

== Analyzed Logical Plan ==

WriteToContinuousDataSource org.apache.spark.sql.execution.streaming.sources.MemoryStreamingWrite@7fcbdc5a
+- SerializeFromObject [input[0, int, false] AS value#17344]
   +- MapElements org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite$$Lambda$6884/1974688249@761461d7, class scala.Tuple2, [StructField(_1,StringType,true), StructField(_2,StringType,true)], obj#17343: int
      +- DeserializeToObject newInstance(class scala.Tuple2), obj#17342: scala.Tuple2
         +- Project [cast(key#17318 as string) AS key#17332, cast(value#17319 as string) AS value#17333]
            +- StreamingDataSourceV2Relation [key#17318, value#17319, topic#17320, partition#17321, offset#17322L, timestamp#17323, timestampType#17324], org.apache.spark.sql.kafka010.KafkaSourceProvider$KafkaScan@30005d15, KafkaSource[SubscribePattern[topic-0-.*]], {"topic-0-seems":{"2":1,"4":0,"1":1,"3":0,"0":2}}

== Optimized Logical Plan ==
WriteToContinuousDataSource org.apache.spark.sql.execution.streaming.sources.MemoryStreamingWrite@7fcbdc5a
+- SerializeFromObject [input[0, int, false] AS value#17344]
   +- MapElements org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite$$Lambda$6884/1974688249@761461d7, class scala.Tuple2, [StructField(_1,StringType,true), StructField(_2,StringType,true)], obj#17343: int
      +- DeserializeToObject newInstance(class scala.Tuple2), obj#17342: scala.Tuple2
         +- Project [cast(key#17318 as string) AS key#17332, cast(value#17319 as string) AS value#17333]
            +- StreamingDataSourceV2Relation [key#17318, value#17319, topic#17320, partition#17321, offset#17322L, timestamp#17323, timestampType#17324], org.apache.spark.sql.kafka010.KafkaSourceProvider$KafkaScan@30005d15, KafkaSource[SubscribePattern[topic-0-.*]], {"topic-0-seems":{"2":1,"4":0,"1":1,"3":0,"0":2}}

== Physical Plan ==
WriteToContinuousDataSource org.apache.spark.sql.execution.streaming.sources.MemoryStreamingWrite@7fcbdc5a
+- *(1) SerializeFromObject [input[0, int, false] AS value#17344]
   +- *(1) MapElements org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite$$Lambda$6884/1974688249@761461d7, obj#17343: int
      +- *(1) DeserializeToObject newInstance(class scala.Tuple2), obj#17342: scala.Tuple2
         +- *(1) Project [cast(key#17318 as string) AS key#17332, cast(value#17319 as string) AS value#17333]
            +- *(1) Project [key#17318, value#17319, topic#17320, partition#17321, offset#17322L, timestamp#17323, timestampType#17324]
               +- ContinuousScan[key#17318, value#17319, topic#17320, partition#17321, offset#17322L, timestamp#17323, timestampType#17324] class org.apache.spark.sql.kafka010.KafkaSourceProvider$KafkaScan

         
         
	at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:530)
	at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:529)
	at org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1560)
	at org.scalatest.Assertions.fail(Assertions.scala:1091)
	at org.scalatest.Assertions.fail$(Assertions.scala:1087)
	at org.scalatest.FunSuite.fail(FunSuite.scala:1560)
	at org.apache.spark.sql.streaming.StreamTest.failTest$1(StreamTest.scala:452)
	at org.apache.spark.sql.streaming.StreamTest.executeAction$1(StreamTest.scala:654)
	at org.apache.spark.sql.streaming.StreamTest.$anonfun$testStream$56(StreamTest.scala:778)
	at org.apache.spark.sql.streaming.StreamTest.$anonfun$testStream$56$adapted(StreamTest.scala:765)
	at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
	at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
	at org.apache.spark.sql.streaming.StreamTest.liftedTree1$1(StreamTest.scala:765)
	at org.apache.spark.sql.streaming.StreamTest.testStream(StreamTest.scala:764)
	at org.apache.spark.sql.streaming.StreamTest.testStream$(StreamTest.scala:334)
	at org.apache.spark.sql.kafka010.KafkaSourceTest.testStream(KafkaMicroBatchSourceSuite.scala:53)
	at org.apache.spark.sql.kafka010.KafkaContinuousSourceTopicDeletionSuite.$anonfun$new$31(KafkaContinuousSourceSuite.scala:226)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.Transformer.apply(Transformer.scala:22)
	at org.scalatest.Transformer.apply(Transformer.scala:20)
	at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:186)
	at org.apache.spark.SparkFunSuite.withFixture(SparkFunSuite.scala:151)
	at org.scalatest.FunSuiteLike.invokeWithFixture$1(FunSuiteLike.scala:184)
	at org.scalatest.FunSuiteLike.$anonfun$runTest$1(FunSuiteLike.scala:196)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:286)
	at org.scalatest.FunSuiteLike.runTest(FunSuiteLike.scala:196)
	at org.scalatest.FunSuiteLike.runTest$(FunSuiteLike.scala:178)
	at org.apache.spark.SparkFunSuite.org$scalatest$BeforeAndAfterEach$$super$runTest(SparkFunSuite.scala:58)
	at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:221)
	at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:214)
	at org.apache.spark.SparkFunSuite.runTest(SparkFunSuite.scala:58)
	at org.scalatest.FunSuiteLike.$anonfun$runTests$1(FunSuiteLike.scala:229)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:393)
	at scala.collection.immutable.List.foreach(List.scala:392)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:381)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:376)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:458)
	at org.scalatest.FunSuiteLike.runTests(FunSuiteLike.scala:229)
	at org.scalatest.FunSuiteLike.runTests$(FunSuiteLike.scala:228)
	at org.scalatest.FunSuite.runTests(FunSuite.scala:1560)
	at org.scalatest.Suite.run(Suite.scala:1124)
	at org.scalatest.Suite.run$(Suite.scala:1106)
	at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1560)
	at org.scalatest.FunSuiteLike.$anonfun$run$1(FunSuiteLike.scala:233)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:518)
	at org.scalatest.FunSuiteLike.run(FunSuiteLike.scala:233)
	at org.scalatest.FunSuiteLike.run$(FunSuiteLike.scala:232)
	at org.apache.spark.SparkFunSuite.org$scalatest$BeforeAndAfterAll$$super$run(SparkFunSuite.scala:58)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at org.apache.spark.SparkFunSuite.run(SparkFunSuite.scala:58)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:317)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:510)
	at sbt.ForkMain$Run$2.call(ForkMain.java:296)
	at sbt.ForkMain$Run$2.call(ForkMain.java:286)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)