From bbbff004c819aea739f4c25ee10f68b1d82b321f Mon Sep 17 00:00:00 2001 From: Drew Koszewnik Date: Fri, 23 Jun 2023 13:38:40 -0700 Subject: [PATCH] FlatRecordExtractor.extract() call is now synchronized --- .../write/objectmapper/flatrecords/FlatRecordExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/flatrecords/FlatRecordExtractor.java b/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/flatrecords/FlatRecordExtractor.java index 47af7589a3..fc22641ecf 100644 --- a/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/flatrecords/FlatRecordExtractor.java +++ b/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/flatrecords/FlatRecordExtractor.java @@ -51,7 +51,7 @@ public FlatRecordExtractor(HollowReadStateEngine extractFrom, HollowSchemaIdenti this.recordCopiersByType = new HashMap<>(); } - public FlatRecord extract(String type, int ordinal) { + public synchronized FlatRecord extract(String type, int ordinal) { ordinalRemapper.clear(); writer.reset();