Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5515

Consider removing date formatting from Segments class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • streams

    Description

      Currently the Segments class uses a date when calculating the segment id and uses SimpleDateFormat for formatting the segment id. However this is a high volume code path and creating a new SimpleDateFormat and formatting each segment id is expensive. We should look into removing the date from the segment id or at a minimum use a faster alternative to SimpleDateFormat. We should also consider keeping a lookup of existing segments to avoid as many string operations as possible.

      Attachments

        Issue Links

          Activity

            People

              damianguy Damian Guy
              bbejeck Bill Bejeck
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: