keith-turner commented on code in PR #6075:
URL: https://github.com/apache/accumulo/pull/6075#discussion_r2722222684
##########
core/src/main/java/org/apache/accumulo/core/iteratorsImpl/IteratorConfigUtil.java:
##########
@@ -55,7 +55,8 @@ public class IteratorConfigUtil {
private static final Logger log =
LoggerFactory.getLogger(IteratorConfigUtil.class);
public static final Comparator<IterInfo> ITER_INFO_COMPARATOR =
- Comparator.comparingInt(IterInfo::getPriority);
+ Comparator.comparingInt(IterInfo::getPriority)
+ .thenComparing(iterInfo -> iterInfo.getIterName() == null ? "" :
iterInfo.getIterName());
Review Comment:
Do not expect the name to be null. Was being defensive w/ this null check
since this a 2.1 change. Did not want something that used to work to start
throwing a NPE.
--
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]