Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fail to request TiFlash in TiSpark v3.2.1 #2707

Closed
shiyuhang0 opened this issue May 24, 2023 · 0 comments
Closed

[BUG] Fail to request TiFlash in TiSpark v3.2.1 #2707

shiyuhang0 opened this issue May 24, 2023 · 0 comments
Labels

Comments

@shiyuhang0
Copy link
Member

shiyuhang0 commented May 24, 2023

Version
Spark: any
TiSpark:v3.2.1

Describe the bug

Use TiSpark read from TiFlash with this configuration spark.tispark.isolation_read_engines.

We will find the spark fails with

3/05/18 14:49:38 WARN RangeSplitter: Cannot find valid store on TiFlash(engine=tiflash)
23/05/18 14:49:38 WARN RangeSplitter: getRegionStorePairByKey error
java.lang.NullPointerException: fail to get store in regionStorePair by key 116,128,0,0,0,0,2,144,16,95,114,1,48,48,52,53,56,55,55,56,255,53,50,0,0,0,0,0,0,249
        at com.pingcap.tikv.util.RangeSplitter.splitRangeByRegion(RangeSplitter.java:199)
        at org.apache.spark.sql.tispark.TiRDD.getPartitions(TiRDD.scala:58)
        at org.apache.spark.rdd.RDD.$anonfun$partitions$2(RDD.scala:292)
        at scala.Option.getOrElse(Option.scala:189)
        at org.apache.spark.rdd.RDD.partitions(RDD.scala:288)
        at org.apache.spark.SparkContext.$anonfun$union$2(SparkContext.scala:1434)
        at org.apache.spark.SparkContext.$anonfun$union$2$adapted(SparkContext.scala:1434)
        at scala.collection.TraversableLike.noneIn$1(TraversableLike.scala:319)
        at scala.collection.TraversableLike.filterImpl(TraversableLike.scala:385)
        at scala.collection.TraversableLike.filterImpl$(TraversableLike.scala:297)
        at scala.collection.AbstractTraversable.filterImpl(Traversable.scala:108)
        at scala.collection.TraversableLike.filter(TraversableLike.scala:395)
        at scala.collection.TraversableLike.filter$(TraversableLike.scala:395)
        at scala.collection.AbstractTraversable.filter(Traversable.scala:108)

Root cause
tikv/client-java#749

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant