Github user xuchuanyin commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1306#discussion_r136254674
--- Diff:
core/src/main/java/org/apache/carbondata/core/datamap/DataMapStoreManager.java
---
@@ -82,7 +90,6 @@ public TableDataMap
createAndRegisterDataMap(AbsoluteTableIdentifier identifier,
List<TableDataMap> tableDataMaps = allDataMaps.get(table);
if (tableDataMaps == null) {
tableDataMaps = new ArrayList<>();
- allDataMaps.put(table, tableDataMaps);
--- End diff --
FYI:
should move this line to the end, otherwise in concurrent scenario, the
other thread will get empty (not null) `tableMaps` in `getDataMap`, which will
result in `Datamap does not exist` exception.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---