Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: master
    • Labels:
      None

      Description

      Currently a table must be online to addsplits. Firstly, it's relatively slow. Secondly, it could be a LOT faster to do it to an offline table because it's just a few metadata writes per split point.

        Activity

        Hide
        John Vines added a comment -

        Alright, definitely steps up complexity.

        Show
        John Vines added a comment - Alright, definitely steps up complexity.
        Hide
        Eric Newton added a comment -

        Yes, but the walogs reference the old key extent.

        The walog reference in the metadata table does have the id used when the data was written, so that could be used to find the old tablet.

        WALog playback would have to use this id, and it does not, at the moment.

        WALog playback would have to ignore mutations that do not fit in its range any more.

        The master would need a distributed write lock, like it does for merge, when doing this operation, to prevent another user from changing the state during the middle of the operation.

        Show
        Eric Newton added a comment - Yes, but the walogs reference the old key extent. The walog reference in the metadata table does have the id used when the data was written, so that could be used to find the old tablet. WALog playback would have to use this id, and it does not, at the moment. WALog playback would have to ignore mutations that do not fit in its range any more. The master would need a distributed write lock, like it does for merge, when doing this operation, to prevent another user from changing the state during the middle of the operation.
        Hide
        John Vines added a comment -

        Can't the walogs be owned by the two new tablets?

        Show
        John Vines added a comment - Can't the walogs be owned by the two new tablets?
        Hide
        Eric Newton added a comment -

        What if a tablet has write-ahead logs that need to be recovered?

        Show
        Eric Newton added a comment - What if a tablet has write-ahead logs that need to be recovered?

          People

          • Assignee:
            Unassigned
            Reporter:
            John Vines
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development