-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Status & Reservation columns are now in their own column families #5031
base: main
Are you sure you want to change the base?
Conversation
server/base/src/main/java/org/apache/accumulo/server/init/InitialConfiguration.java
Outdated
Show resolved
Hide resolved
public static class StatusColumnFamily { | ||
public static final String STR_NAME = "status"; | ||
public static final Text NAME = new Text(STR_NAME); | ||
|
||
public static final String STATUS = "status"; | ||
public static final ColumnFQ STATUS_COLUMN = new ColumnFQ(NAME, new Text(STATUS)); | ||
} | ||
|
||
public static class ReservationColumnFamily { | ||
public static final String STR_NAME = "reservation"; | ||
public static final Text NAME = new Text(STR_NAME); | ||
|
||
public static final String RESERVATION = "reservation"; | ||
public static final ColumnFQ RESERVATION_COLUMN = new ColumnFQ(NAME, new Text(RESERVATION)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could put these two columns in a single column family, that avoids the duplication in family and qualifier. Some possible name for the family are txtAdmin
, txMgmt
, or txSituation
. Tried admin in the suggestion below because was thinking this is information related to administering a fate transaction.
public static class StatusColumnFamily { | |
public static final String STR_NAME = "status"; | |
public static final Text NAME = new Text(STR_NAME); | |
public static final String STATUS = "status"; | |
public static final ColumnFQ STATUS_COLUMN = new ColumnFQ(NAME, new Text(STATUS)); | |
} | |
public static class ReservationColumnFamily { | |
public static final String STR_NAME = "reservation"; | |
public static final Text NAME = new Text(STR_NAME); | |
public static final String RESERVATION = "reservation"; | |
public static final ColumnFQ RESERVATION_COLUMN = new ColumnFQ(NAME, new Text(RESERVATION)); | |
} | |
public static class TxAdminColumnFamily { | |
public static final String STR_NAME = "txAdmin"; | |
public static final Text NAME = new Text(STR_NAME); | |
public static final String STATUS = "status"; | |
public static final ColumnFQ STATUS_COLUMN = new ColumnFQ(NAME, new Text(STATUS)); | |
public static final String RESERVATION = "reservation"; | |
public static final ColumnFQ RESERVATION_COLUMN = new ColumnFQ(NAME, new Text(RESERVATION)); | |
} |
Closes Issue #4977
Moved StatusColumn & ReservationColumn in Fate into their own column Families, updated calls to the respective columns and added reservation locality group for initial config.