Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Fix Version/s: 2.0 beta 1
    • Component/s: None
    • Labels:

      Description

      after CASSANDRA-4872 we need a way to reset all sstables to level 0, previously we did this by removing the .json file from the data-directory.

        Activity

        Hide
        krummas Marcus Eriksson added a comment - - edited

        v2 also contains debian packaging

        i added sstablemetadata as well

        Show
        krummas Marcus Eriksson added a comment - - edited v2 also contains debian packaging i added sstablemetadata as well
        Hide
        yukim Yuki Morishita added a comment -

        I think this works fine, but for the most common use case of this, is it more handy to add the option to just specify keyspace and columnfamily to reset all sstables?
        You can use '*' from the shell for that, but if you have several data directories, you still need to give those to command.

        FYI you can use o.a.c.db.Directories.create and Directories#sstableLister to access sstables under certain CF without opening files.

        Show
        yukim Yuki Morishita added a comment - I think this works fine, but for the most common use case of this, is it more handy to add the option to just specify keyspace and columnfamily to reset all sstables? You can use '*' from the shell for that, but if you have several data directories, you still need to give those to command. FYI you can use o.a.c.db.Directories.create and Directories#sstableLister to access sstables under certain CF without opening files.
        Hide
        krummas Marcus Eriksson added a comment -

        agreed, will fix tomorrow

        Show
        krummas Marcus Eriksson added a comment - agreed, will fix tomorrow
        Hide
        krummas Marcus Eriksson added a comment -

        v3 takes keyspace and columnfamily as parameters instead

        Show
        krummas Marcus Eriksson added a comment - v3 takes keyspace and columnfamily as parameters instead
        Hide
        yukim Yuki Morishita added a comment -

        +1 and committed, thanks!

        Show
        yukim Yuki Morishita added a comment - +1 and committed, thanks!

          People

          • Assignee:
            krummas Marcus Eriksson
            Reporter:
            krummas Marcus Eriksson
            Reviewer:
            Yuki Morishita
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development