Adding debugging to the adapter and fixing a race condition which occurs when an invalidation occurs during an existing update.