presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/storage/ShardEjector.java/ShardEjector/pickTargetNode
class ShardEjector:    private static String pickTargetNode(Map<String, Long> nodes, long shardSize, long maxSize)
    {
        while (!nodes.isEmpty()) {
            String node = pickCandidateNode(nodes);
            if ((nodes.get(node) + shardSize) <= maxSize) {
                return node;
            }
            nodes.remove(node);
        }
        return null;
    }