ignite-12163 revert load in oom test
package org.apache.ignite.cache.database;
import javax.cache.CacheException;
-import org.apache.ignite.IgniteCache;
+import org.apache.ignite.IgniteDataStreamer;
import org.apache.ignite.configuration.CacheConfiguration;
import org.apache.ignite.configuration.IgniteConfiguration;
import org.apache.ignite.configuration.MemoryConfiguration;
@@ -118,9 +118,14 @@ public class IgnitePersistentStoreWalTlbSelfTest extends GridCommonAbstractTest
boolean locked = true;
try {
- IgniteCache<Integer, Integer> cache = ig.getOrCreateCache("cache");
+ IgniteDataStreamer<Integer, Integer> streamer = ig.dataStreamer(null);
- cache.put(1, 1);
+ for (int i = 0; i < 100_000; i++) {
+ streamer.addData(i, 1);
+
+ if (i > 0 && i % 10_000 == 0)
+ info("Done put: " + i);
+ }
}
catch (CacheException ignore) {
// expected
