Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-1029

Use FastDateFormat for parsing and formating in TimestampBasedKeyGenerator

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            Pratyaksh Pratyaksh Sharma
            henryz steven zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: