dlmarion commented on code in PR #5514:
URL: https://github.com/apache/accumulo/pull/5514#discussion_r2064224695
##########
server/base/src/test/java/org/apache/accumulo/server/constraints/MetadataConstraintsTest.java:
##########
@@ -689,6 +690,31 @@ public void testMergeabilityColumn() {
assertTrue(violations.isEmpty());
}
+ @Test
+ public void testAvailabilityColumn() {
+ MetadataConstraints mc = new MetadataConstraints();
+ Mutation m;
+ List<Short> violations;
+
+ KeyExtent fateKeyExtent = new KeyExtent(SystemTables.FATE.tableId(), null,
null);
+ m = new Mutation(fateKeyExtent.toMetaRow());
+ TabletColumnFamily.AVAILABILITY_COLUMN.put(m, new
Value(TabletAvailability.UNHOSTED.name()));
+ assertViolation(mc, m, (short) 4007);
Review Comment:
May want to iterate over all system tables for completeness.
--
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]