Davis-Zhang-Onehouse opened a new issue, #20685: URL: https://github.com/apache/hudi/issues/20685
Part of #20683 (RFC-118, #20684). `LocalHoodieSchemaCache` keeps its schema-to-id and id-to-schema maps in two unsynchronized `HashMap`s and issues ids with an unguarded `nextVersionId++`. When threads share one cache, concurrent registration and lookup can lose entries, give one schema two ids, or publish the schema-to-id entry before the id-to-schema entry, so a concurrent lookup by that id finds nothing. Fix: concurrent maps, ids issued under one lock with the id-to-schema entry published first, and serialization under the same lock. The `create()` factory and the existing behaviour stay as they are. PR: (linked once opened) -- 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]
