sadanand48 commented on code in PR #6950:
URL: https://github.com/apache/ozone/pull/6950#discussion_r1680419979
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/OMDBUpdatesHandler.java:
##########
@@ -112,6 +111,10 @@ private void processEvent(int cfIndex, byte[] keyBytes,
byte[]
final Object key = cf.getKeyCodec().fromPersistedFormat(keyBytes);
builder.setKey(key);
+ // Initialize table-specific event map if it does not exist
+ omdbLatestUpdateEvents.putIfAbsent(tableName, new HashMap<>());
Review Comment:
Could you add a unit test for this to show that this patch fixes the
ClassCastException?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]