jerryshao commented on code in PR #5307:
URL: https://github.com/apache/gravitino/pull/5307#discussion_r1818906564
##########
docs/gravitino-server-config.md:
##########
@@ -113,16 +113,23 @@ To leverage the event listener, you must implement the
`EventListenerPlugin` int
#### Event
-Gravitino triggers a specific event upon the completion of the operation, with
varying events being generated for different operations.
+Gravitino triggers a pre-event before the operation, a post-event after the
completion of the operation and a failure event after the operation failed.
-| operation type | event
|
-|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| table operation | `CreateTableEvent`, `AlterTableEvent`,
`DropTableEvent`, `LoadTableEvent`, `ListTableEvent`, `PurgeTableFailureEvent`,
`CreateTableFailureEvent`, `AlterTableFailureEvent`, `DropTableFailureEvent`,
`LoadTableFailureEvent`, `ListTableFailureEvent`, `PurgeTableFailureEvent` |
-| fileset operation | `CreateFileSetEvent`, `AlterFileSetEvent`,
`DropFileSetEvent`, `LoadFileSetEvent`, `ListFileSetEvent`,
`CreateFileSetFailureEvent`, `AlterFileSetFailureEvent`,
`DropFileSetFailureEvent`, `LoadFileSetFailureEvent`, `ListFileSetFailureEvent`
|
-| topic operation | `CreateTopicEvent`, `AlterTopicEvent`,
`DropTopicEvent`, `LoadTopicEvent`, `ListTopicEvent`,
`CreateTopicFailureEvent`, `AlterTopicFailureEvent`, `DropTopicFailureEvent`,
`LoadTopicFailureEvent`, `ListTopicFailureEvent`
|
-| schema operation | `CreateSchemaEvent`, `AlterSchemaEvent`,
`DropSchemaEvent`, `LoadSchemaEvent`, `ListSchemaEvent`,
`CreateSchemaFailureEvent`, `AlterSchemaFailureEvent`,
`DropSchemaFailureEvent`, `LoadSchemaFailureEvent`, `ListSchemaFailureEvent`
|
-| catalog operation | `CreateCatalogEvent`, `AlterCatalogEvent`,
`DropCatalogEvent`, `LoadCatalogEvent`, `ListCatalogEvent`,
`CreateCatalogFailureEvent`, `AlterCatalogFailureEvent`,
`DropCatalogFailureEvent`, `LoadCatalogFailureEvent`, `ListCatalogFailureEvent`
|
-| metalake operation | `CreateMetalakeEvent`, `AlterMetalakeEvent`,
`DropMetalakeEvent`, `LoadMetalakeEvent`, `ListMetalakeEvent`,
`CreateMetalakeFailureEvent`, `AlterMetalakeFailureEvent`,
`DropMetalakeFailureEvent`, `LoadMetalakeFailureEvent`,
`ListMetalakeFailureEvent` |
+| Operation type | Post-event
| Since Version |
Review Comment:
Add a new heading like `##### Pre-event` and `##### Post-event`.
--
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]