-
Notifications
You must be signed in to change notification settings - Fork 406
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
[#5550] feat(core): add partition pre event to Gravitino event #5590
[#5550] feat(core): add partition pre event to Gravitino event #5590
Conversation
…itino-server # Conflicts: # docs/gravitino-server-config.md
core/src/main/java/org/apache/gravitino/listener/api/event/AddPartitionPreEvent.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/gravitino/listener/api/event/PartitionPreEvent.java
Outdated
Show resolved
Hide resolved
Please update the PR to fix the conflict, @LiuQhahah . |
core/src/main/java/org/apache/gravitino/listener/api/event/AddPartitionPreEvent.java
Show resolved
Hide resolved
core/src/main/java/org/apache/gravitino/listener/api/event/PartitionPreEvent.java
Show resolved
Hide resolved
…itino-server # Conflicts: # docs/gravitino-server-config.md
core/src/main/java/org/apache/gravitino/listener/api/event/AddPartitionPreEvent.java
Show resolved
Hide resolved
core/src/main/java/org/apache/gravitino/listener/api/event/AddPartitionPreEvent.java
Show resolved
Hide resolved
@LiuQhahah as #5580 is merged first, could you rebase the code and add more work:
|
got it. |
…itino-server # Conflicts: # core/src/test/java/org/apache/gravitino/listener/api/event/TestPartitionEvent.java
partitionInfo = ((AddPartitionPreEvent) preEvent).createdPartitionRequest(); | ||
checkPartitionInfo(partitionInfo, partition); | ||
Assertions.assertEquals(OperationType.ADD_PARTITION, event.operationType()); | ||
Assertions.assertEquals(OperationStatus.SUCCESS, event.operationStatus()); |
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.
The operation status should be UNPROCESSED
not SUCCESS
for pre event
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.
we should check preEvent
not event
here
@LiuQhahah ,LGTM except minor comments, could you fix it ? |
Hi @FANNG1 I have fixed the issue. Please review it again. |
There're some UT failures that need to be fixed. |
I have updated it. |
@LiuQhahah merged to main, thanks for your contribution! |
What changes were proposed in this pull request?
Why are the changes needed?
Fix: #5550
Does this PR introduce any user-facing change?
NO
How was this patch tested?
UT