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

SSTableLoader shouldn't get keyspace from path

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 4.0-alpha3, 4.0
    • Legacy/Tools
    • None

    Description

      SSTableLoader currently gets the keyspace it is going to load to from the path of the directoy of sstables it is loading. This isn't really documented (or I didn't see it), but also isn't really a good way of doing it in general.

      this.keyspace = directory.getParentFile().getName();
      

      We should probably just let users pass the name in. If you are loading a snapshot the file names will have the keyspace which is slightly better but people manually creating their own sstables might not format them the same.

      Attachments

        Issue Links

          Activity

            People

              eduard.tudenhoefner Eduard Tudenhoefner
              nickmbailey Nick Bailey
              Eduard Tudenhoefner
              Brandon Williams
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: