Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import static org.apache.accumulo.core.metadata.schema.TabletMetadata.ColumnType.CLONED;
import static org.apache.accumulo.core.metadata.schema.TabletMetadata.ColumnType.DIR;
import static org.apache.accumulo.core.metadata.schema.TabletMetadata.ColumnType.FILES;
import static org.apache.accumulo.core.metadata.schema.TabletMetadata.ColumnType.HOSTING_GOAL;
import static org.apache.accumulo.core.metadata.schema.TabletMetadata.ColumnType.LAST;
import static org.apache.accumulo.core.metadata.schema.TabletMetadata.ColumnType.LOCATION;
import static org.apache.accumulo.core.metadata.schema.TabletMetadata.ColumnType.LOGS;
Expand Down Expand Up @@ -417,7 +418,7 @@ private static Mutation createCloneMutation(TableId srcTableId, TableId tableId,
}

private static Iterable<TabletMetadata> createCloneScanner(String testTableName, TableId tableId,
AccumuloClient client) throws TableNotFoundException {
AccumuloClient client) {

String tableName;
Range range;
Expand All @@ -434,13 +435,12 @@ private static Iterable<TabletMetadata> createCloneScanner(String testTableName,
}

return TabletsMetadata.builder(client).scanTable(tableName).overRange(range).checkConsistency()
.saveKeyValues().fetch(FILES, LOCATION, LAST, CLONED, PREV_ROW, TIME).build();
.saveKeyValues().fetch(FILES, LOCATION, LAST, CLONED, PREV_ROW, TIME, HOSTING_GOAL).build();
}

@VisibleForTesting
public static void initializeClone(String testTableName, TableId srcTableId, TableId tableId,
AccumuloClient client, BatchWriter bw)
throws TableNotFoundException, MutationsRejectedException {
AccumuloClient client, BatchWriter bw) throws MutationsRejectedException {

Iterator<TabletMetadata> ti = createCloneScanner(testTableName, srcTableId, client).iterator();

Expand Down