Project: springxd
Issue XD-2731: Temp files for stream create not being cleaned
During testing for Spring XD for PivotalCF we create, deploy, use, undeploy and destroy many streams. Each stream generates {{tmp}} directories (I think 2, one for source, one for sink) in the xd-admin VM's {{/tmp}} directory, e.g. {noformat} dummy-module4635787551932601017sinkredis dummy-module252960009195893204sourcehttp {noformat} These {{tmp}} directories are not being cleared up, so our system has hit the inode limit of 32768 files for a volume: {noformat} Filesystem Inodes IUsed IFree IUse% Mounted on /dev/loop0 32768 32768 0 100% /tmp {noformat} This causes a Java {{IOException}}, the immediately relevant part of which appears to be: {noformat} [Caught] exception while handling a request Feb 18 09:06:06 10.85.30.142-2 xd-admin-partition-default_az_guid-0: [java.lang.RuntimeException] java.io.IOException: No space left on device Feb 18 09:06:06 10.85.30.142-2 xd-admin-partition-default_az_guid-0: [] at org.springframework.xd.module.ModuleDefinitions.dummy(ModuleDefinitions.java:81) {noformat} This causes the test system to fail entirely.
Story points: 3