Skip to content

[#8367] improvement(core): Remove duplicate setOwner call in TestOwnerMetaService.testDeleteMetadataObject#8378

Merged
jerryshao merged 1 commit intoapache:mainfrom
keepConcentration:8367
Sep 3, 2025
Merged

[#8367] improvement(core): Remove duplicate setOwner call in TestOwnerMetaService.testDeleteMetadataObject#8378
jerryshao merged 1 commit intoapache:mainfrom
keepConcentration:8367

Conversation

@keepConcentration
Copy link
Contributor

What changes were proposed in this pull request?

Removed the redundant invocation of OwnerMetaService.setOwner(...) in TestOwnerMetaService.testDeleteMetadataObject.

Why are the changes needed?

The test invoked setOwner(...) twice with the same parameters, causing duplicate rows and an integrity constraint error.

Fix: #8367
Related: #7110, #8293

Does this PR introduce any user-facing change?

No user-facing changes.

How was this patch tested?

Executed existing unit tests

@justinmclean
Copy link
Member

Are you sure you committed all changes?

@keepConcentration
Copy link
Contributor Author

@justinmclean

All tests pass on my side. Could you let me know if anything is missing?

@justinmclean
Copy link
Member

Ah yes my mistake sorry, that looks good, let me run the CI.

@jerryshao jerryshao merged commit 6fdeaec into apache:main Sep 3, 2025
29 of 30 checks passed
diqiu50 pushed a commit to diqiu50/gravitino that referenced this pull request Sep 15, 2025
…stOwnerMetaService.testDeleteMetadataObject (apache#8378)

### What changes were proposed in this pull request?

Removed the redundant invocation of `OwnerMetaService.setOwner(...)` in
`TestOwnerMetaService.testDeleteMetadataObject`.

### Why are the changes needed?

The test invoked `setOwner(...)` twice with the same parameters, causing
duplicate rows and an integrity constraint error.

Fix: apache#8367  
Related: apache#7110, apache#8293

### Does this PR introduce _any_ user-facing change?

No user-facing changes.

### How was this patch tested?

Executed existing unit tests
bharos pushed a commit to bharos/gravitino that referenced this pull request Oct 3, 2025
…stOwnerMetaService.testDeleteMetadataObject (apache#8378)

### What changes were proposed in this pull request?

Removed the redundant invocation of `OwnerMetaService.setOwner(...)` in
`TestOwnerMetaService.testDeleteMetadataObject`.

### Why are the changes needed?

The test invoked `setOwner(...)` twice with the same parameters, causing
duplicate rows and an integrity constraint error.

Fix: apache#8367  
Related: apache#7110, apache#8293

### Does this PR introduce _any_ user-facing change?

No user-facing changes.

### How was this patch tested?

Executed existing unit tests
bharos pushed a commit to bharos/gravitino that referenced this pull request Oct 7, 2025
…stOwnerMetaService.testDeleteMetadataObject (apache#8378)

### What changes were proposed in this pull request?

Removed the redundant invocation of `OwnerMetaService.setOwner(...)` in
`TestOwnerMetaService.testDeleteMetadataObject`.

### Why are the changes needed?

The test invoked `setOwner(...)` twice with the same parameters, causing
duplicate rows and an integrity constraint error.

Fix: apache#8367  
Related: apache#7110, apache#8293

### Does this PR introduce _any_ user-facing change?

No user-facing changes.

### How was this patch tested?

Executed existing unit tests
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.

[Improvement] Avoid duplicate setOwner calls in TestOwnerMetaService.testDeleteMetadataObject

3 participants