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

Consider removing date formatting from Segments class

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: streams
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: