jackjlli commented on pull request #7033:
URL: https://github.com/apache/incubator-pinot/pull/7033#issuecomment-857268994
> `InstanceConfig.getTags()` should never return `null`. Are you using a
different Helix version?
> Here's the Helix code:
>
> ```
> public List<String> getTags() {
> List<String> tags =
getRecord().getListField(InstanceConfigProperty.TAG_LIST.toString());
> if (tags == null) {
> tags = new ArrayList<String>(0);
> }
> return tags;
> }
> ```
Thanks for pointing out! The purpose of this PR is to address an issue when
the helix tag for minion host is missing, and we suspect that it's due to an
NPE from this part of code. @amrishlal we can remove the null check for the
returned reference of getTags, while a null check is needed for instanceConfig.
Please include that into this PR.
--
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]