zooo-code commented on PR #25158:
URL: https://github.com/apache/pulsar/pull/25158#issuecomment-3796084351

   Hi @lhotari,
   
   I've resolved the `ContentDeserializationException` issue triggered by empty 
`LocalPolicies` content.
   
   ### Summary of Changes
   1. **MetadataCacheImpl:** Added a check to treat empty content as 
`Optional.empty()` to prevent deserialization errors.
   2. **AdminResource & NamespaceBundleFactory:** Added exception handling to 
gracefully fallback (using empty/global policies) if `LocalPolicies` are 
corrupted or fail to load.
   
   ### Verification
   * **Local:** `AdminApiSchemaTest` and compatibility tests now pass.
   * **Personal CI:** Core broker tests passed (verified unrelated flaky/infra 
failures). https://github.com/zooo-code/pulsar/pull/1
   
   Ready for review!
   Thanks


-- 
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]

Reply via email to