dlmarion commented on code in PR #3294:
URL: https://github.com/apache/accumulo/pull/3294#discussion_r1168702219
##########
core/src/main/java/org/apache/accumulo/core/metadata/schema/MetadataSchema.java:
##########
@@ -357,10 +358,18 @@ public static class ExternalCompactionColumnFamily {
public static final Text NAME = new Text(STR_NAME);
}
- public static class OnDemandAssignmentStateColumnFamily {
- public static final String STR_NAME = "ondemand";
+ public static class HostingColumnFamily {
+ public static final String STR_NAME = "hosting";
public static final Text NAME = new Text(STR_NAME);
+ public static final String GOAL_QUAL = "goal";
+ public static final ColumnFQ GOAL_COLUMN = new ColumnFQ(NAME, new
Text(GOAL_QUAL));
+ public static final String ALWAYS_GOAL = TabletHostingGoal.ALWAYS.name();
+ public static final String ONDEMAND_GOAL =
TabletHostingGoal.ONDEMAND.name();
+ public static final String NEVER_GOAL = TabletHostingGoal.NEVER.name();
Review Comment:
Suggestion applied in cd223b6
##########
core/src/main/java/org/apache/accumulo/core/metadata/schema/TabletsMetadata.java:
##########
@@ -283,6 +283,9 @@ public Options fetch(ColumnType... colsToFetch) {
case FLUSH_ID:
qualifiers.add(FLUSH_COLUMN);
break;
+ case HOSTING_GOAL:
+ families.add(HostingColumnFamily.NAME);
+ break;
Review Comment:
Suggestion applied in cd223b6
--
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]