ajw711 opened a new pull request, #10257: URL: https://github.com/apache/gravitino/pull/10257
### What changes were proposed in this pull request? Changed `newTemplate.name()` to `existing.name()` in `BuiltInJobTemplateEventListener.updateBuiltInJobTemplate()`. ### Why are the changes needed? When updating a job template, `EntityStore` uses the logical identifier (`name`) to find and update the target record. The previous code incorrectly built the `NameIdentifier` using the incoming `newTemplate.name()`. Since the new name does not exist in the database yet, it caused a `NoSuchEntityException`. Using `existing.name()` ensures the system locks and updates the correct existing entity. Fix: #10176 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Ran the specific unit test locally and verified it passes: `./gradlew :core:test --tests "*testReconcileBuiltInJobTemplatesUpdateUsesExistingIdentifier*"` -- 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]
