Removed synchronization from getIngestWriter and added unit test to show that it works