tispark icon indicating copy to clipboard operation
tispark copied to clipboard

[BUG] TiSession should not be cached

Open birdstorm opened this issue 5 years ago • 0 comments

Describe the bug TiSession was cached by distinct value of SparkConf. However, it is possible that multiple SparkSession share the same SparkConf, thus the SparkSession that TiSession points to is not guaranteed to be the same as SparkSession.getActiveSession/SparkSession.getDefaultSession().

Spark and TiSpark version info

master, release-2.2

birdstorm avatar Dec 06 '19 07:12 birdstorm