You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "steven zhang (Jira)" <ji...@apache.org> on 2020/06/18 08:49:00 UTC

[jira] [Created] (HUDI-1029) Use FastDateFormat for parsing and formating in TimestampBasedKeyGenerator

steven zhang created HUDI-1029:
----------------------------------

             Summary: Use FastDateFormat  for parsing  and formating in TimestampBasedKeyGenerator
                 Key: HUDI-1029
                 URL: https://issues.apache.org/jira/browse/HUDI-1029
             Project: Apache Hudi
          Issue Type: Improvement
          Components: DeltaStreamer
            Reporter: steven zhang
             Fix For: 0.5.2


1. in TimestampBasedKeyGenerator#getKey method, generate a HoodieKey will create  a new SimpleDateFormat object,the dateformat object can be reused as class variable.

2. SimpleDateFormat is not thread safe,there is always potential thread safe problem.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)