Github user jasobrown commented on a diff in the pull request:

    https://github.com/apache/cassandra/pull/184#discussion_r160276907
  
    --- Diff: 
src/java/org/apache/cassandra/db/LegacySystemKeyspaceMigrator.java ---
    @@ -0,0 +1,183 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.cassandra.db;
    +
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +
    +import org.apache.cassandra.config.DatabaseDescriptor;
    +import org.apache.cassandra.schema.SchemaConstants;
    +import org.apache.cassandra.cql3.QueryProcessor;
    +import org.apache.cassandra.cql3.UntypedResultSet;
    +import org.apache.cassandra.db.marshal.BytesType;
    +import org.apache.cassandra.db.marshal.Int32Type;
    +import org.apache.cassandra.db.marshal.UTF8Type;
    +import org.apache.cassandra.db.marshal.UUIDType;
    +
    +/**
    + * Migrate 3.0 versions of some tables to 4.0. In this case it's just 
extra columns and some keys
    + * that are changed.
    + *
    + * Can't just add the additional columns because they are primary key 
columns and C* doesn't support changing
    + * key columns even if it's just clustering columns.
    + */
    +public class LegacySystemKeyspaceMigrator
    --- End diff --
    
    trivial nit: maybe rename to `SystemKeyspaceMigrator40` to indicate this is 
for 3.0/3.x -> 4.0 only, and that we drop after 4.0. I guess it's 'legacy' 
that's a little vague to me.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to