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

[#6078] feat(core): Support model event to Gravitino server #6129

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

Conversation

Abyss-lord
Copy link
Contributor

What changes were proposed in this pull request?

Support model event to Gravitino server. Add list, get, create and delete events to both model and model version.
test case will add after EventDispatcher merged.

Event OperationType ModelCatalog
RegisterModelEvent REGISTER_MODEL registerModel
GetModelEvent LOAD_MODEL getModel
DropModelEvent DROP_MODEL deleteModel
ListModelEvent LIST_MODEL listModels
LinkModelVersionEvent LINK_MODEL_VERSION linkModelVersion
GetModelVersionEvent GET_MODEL_VERSION getModelVersion
DropModelVersionEvent DROP_MODEL_VERSION deleteModelVersion
ListModelVersionsEvent LIST_MODEL_VERSIONS listModelVersions

Why are the changes needed?

Fix: #6078

Does this PR introduce any user-facing change?

no

How was this patch tested?

local test.

@xunliu xunliu requested a review from FANNG1 January 7, 2025 07:33
public GetModelVersionEvent(
String user, NameIdentifier identifier, ModelInfo getModelVersionInfo) {
super(user, identifier);
GetModelVersionInfo = getModelVersionInfo;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GetModelVersionInfo = getModelVersionInfo;
this.info = getModelVersionInfo;

* @param model the model to expose information for.
* @param modelVersion the versions of the model.
*/
public ModelInfo(Model model, ModelVersion[] modelVersion) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public ModelInfo(Model model, ModelVersion[] modelVersion) {
public ModelInfo(Model model, ModelVersion[] modelVersions) {

Support model event to Gravitino server. Add list, get, create and delete events to both model and model version.
@FANNG1
Copy link
Contributor

FANNG1 commented Jan 9, 2025

Will review the PR these days.

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.

[Subtask] Support model event to Gravitino server
3 participants