The queue that is used for scheduling realm refresh tasks is a HashMap that has it's values iterated over. The order of a HashMap is not intended to be defined, and as of Java 8 is no longer predictable. This causes jobs in the queue to be executed in "random" order. This should to be changed to a LinkedHashMap.