keith-turner commented on code in PR #2767: URL: https://github.com/apache/accumulo/pull/2767#discussion_r903916053
########## server/base/src/main/java/org/apache/accumulo/server/gc/AllVolumesDirectory.java: ########## @@ -0,0 +1,52 @@ +/* + * 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 + * + * https://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.accumulo.server.gc; + +import static org.apache.accumulo.server.gc.GcVolumeUtil.ALL_VOLUMES_PREFIX; + +import java.util.Objects; + +import org.apache.accumulo.core.Constants; +import org.apache.accumulo.core.data.TableId; +import org.apache.accumulo.core.gc.ReferenceDirectory; +import org.apache.accumulo.core.metadata.schema.MetadataSchema; +import org.apache.hadoop.fs.Path; + +/** + * A specially encoded GC Reference to a directory with the {@link GcVolumeUtil#ALL_VOLUMES_PREFIX} + */ +public class AllVolumesDirectory extends ReferenceDirectory { Review Comment: The following comment is just for discussion, I don't think any action needs to be taken in this PR based on it. The GC deals with two inputs conceptually candidates and references. Candidates are files that could be possibly be deleted if they are not defeated by a reference. Thinking about this I was wondering if it would make sense to have a GcCandidate type in addition to the Reference type. If so, then the AllVolumesDirectory would be a GcCandidate. However I am not sure if this makes sense w/o further looking and it would not be something for this PR. Wondering if you even think this makes sense. For this PR we may want to document that the reference type is also used for GC candidates. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
