Try resolve a race condition with unbounded groupby