You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "kevinrr888 (via GitHub)" <gi...@apache.org> on 2025/04/28 17:18:42 UTC
[PR] Adds a metadata constraint that prevents setting tablet availability on system tables [accumulo]
kevinrr888 opened a new pull request, #5514:
URL: https://github.com/apache/accumulo/pull/5514
Adds a metadata constraint that prevents setting tablet availability on system tables.
closes #5507
--
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: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Adds a metadata constraint that prevents setting tablet availability on system tables [accumulo]
Posted by "kevinrr888 (via GitHub)" <gi...@apache.org>.
kevinrr888 merged PR #5514:
URL: https://github.com/apache/accumulo/pull/5514
--
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: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Adds a metadata constraint that prevents setting tablet availability on system tables [accumulo]
Posted by "dlmarion (via GitHub)" <gi...@apache.org>.
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: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org