You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2020/06/13 01:20:32 UTC
[GitHub] [helix] alirezazamani commented on a change in pull request #1087: Fix NPE for RoutingDataCache.refresh
alirezazamani commented on a change in pull request #1087:
URL: https://github.com/apache/helix/pull/1087#discussion_r439695881
##########
File path: helix-core/src/main/java/org/apache/helix/spectator/RoutingDataCache.java
##########
@@ -142,9 +142,11 @@ public synchronized void refresh(HelixDataAccessor accessor) {
if (LOG.isDebugEnabled()) {
LOG.debug("CurrentStates: " + _currentStateCache);
LOG.debug("TargetExternalViews: " + _targetExternalViewCache.getExternalViewMap());
- for (String customizedStateType : _sourceDataTypeMap.get(PropertyType.CUSTOMIZEDVIEW)) {
- LOG.debug("CustomizedViews customizedStateType: " + customizedStateType + " "
- + _customizedViewCaches.get(customizedStateType).getCustomizedViewMap());
+ if (_sourceDataTypeMap.containsKey(PropertyType.CUSTOMIZEDVIEW)) {
Review comment:
@jiajunwang Addressed. Could you please confirm? Then we can merge it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org