Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ArbaazKhan1
Copy link
Contributor

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.

@kevinrr888 kevinrr888 added this to the 4.0.0 milestone Nov 5, 2024
Comment on lines +63 to +77
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));
}
Copy link
Contributor

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.

Suggested change
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));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store columns Fate needs to find work in a locality group
3 participants