Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-19448

CommitlogArchiver only has granularity to seconds for restore_point_in_time

    XMLWordPrintableJSON

Details

    Description

      Commitlog archiver allows users to backup commitlog files for the purpose of doing point in time restores.  The configuration file gives an example of down to the seconds granularity but then asks what whether the timestamps are microseconds or milliseconds - defaulting to microseconds.  Because the CommitLogArchiver uses a second based date format, if a user specifies to restore at something at a lower granularity like milliseconds or microseconds, that means that the it will truncate everything after the second and restore to that second. So say you specify a restore_point_in_time like this:
      restore_point_in_time=2024:01:18 17:01:01.623392
      it will silently truncate everything after the 01 seconds. So effectively to the user, it is missing updates between 01 and 01.623392.

      This appears to be a bug in the intent. We should allow users to specify down to the millisecond or even microsecond level. If we allow them to specify down to microseconds for the restore point in time, then it may internally need to change from a long.

      Attachments

        Activity

          People

            maxwellguo Maxwell Guo
            jeromatron Jeremy Hanna
            Maxwell Guo
            Brandon Williams, Stefan Miklosovic, Tiago L. Alves
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4.5h
                4.5h