prashantwason commented on PR #18023:
URL: https://github.com/apache/hudi/pull/18023#issuecomment-3837692419

   @nsivabalan Good catch! I've updated the PR with the following fixes:
   
   1. Removed the unused `schemaMap` variable and its `ConcurrentHashMap` import
   2. Removed the instance-level `decoderCache` from `RecordIterator` inner 
class - it was shadowing the static one
   3. Updated `RecordIterator` to use the static `decoderCache` from the outer 
class
   
   Now both `encoderCache` (used in `serializeRecords()`) and `decoderCache` 
(used in `RecordIterator.next()` and `close()`) are properly shared across all 
instances.


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