aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorzsxwing <zsxwing@gmail.com>2014-03-21 16:07:22 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-03-21 16:08:18 -0700
commit2c0aa22e2e26ae35b7d4caa529bc6520e362cc3c (patch)
treece9fa01252f5eb87475ea79a5b5368a8f6f0df4f /sql
parent7e17fe69f9c3dc4cac024ea483f5d5f34ee06203 (diff)
downloadspark-2c0aa22e2e26ae35b7d4caa529bc6520e362cc3c.tar.gz
spark-2c0aa22e2e26ae35b7d4caa529bc6520e362cc3c.tar.bz2
spark-2c0aa22e2e26ae35b7d4caa529bc6520e362cc3c.zip
SPARK-1279: Fix improper use of SimpleDateFormat
`SimpleDateFormat` is not thread-safe. Some places use the same SimpleDateFormat object without safeguard in the multiple threads. It will cause that the Web UI displays improper date. This PR creates a new `SimpleDateFormat` every time when it's necessary. Another solution is using `ThreadLocal` to store a `SimpleDateFormat` in each thread. If this PR impacts the performance, I can change to the latter one. Author: zsxwing <zsxwing@gmail.com> Closes #179 from zsxwing/SPARK-1278 and squashes the following commits: 21fabd3 [zsxwing] SPARK-1278: Fix improper use of SimpleDateFormat
Diffstat (limited to 'sql')
0 files changed, 0 insertions, 0 deletions