Open ceefour opened 10 years ago
If only two nodes there's no error.
2-node configuration : (work well)
ceefour@hendy:~/gridgain-platform-os-6.1.9-nix > bin/ggstart.sh ~/git/lumen-kb/cli/src/main/resources/id/ac/itb/ee/lskk/lumen/yago/yago.gridgain.xml
3-node configuration : (error)
ceefour@hendy:~/gridgain-platform-os-6.1.9-nix > bin/ggstart.sh ~/git/lumen-kb/cli/src/main/resources/id/ac/itb/ee/lskk/lumen/yago/yago.gridgain.xml
Thanks for reporting. This issue is related to class peer-deployment when using dataLoader, we are looking into this.
As a workaround you can switch from dataLoader to cache API:
try (Grid grid = GridGain.start("examples/config/example-cache.xml")) {
GridCache<Object, Object> cache = grid.cache("partitioned");
cache.put(1, new YagoRule("a", "b", "c", "d", "e"));
cache.put(2, new YagoRule("a", "b", "c", "d", "e"));
cache.put(3, new YagoRule("a", "b", "c", "d", "e"));
cache.put(4, new YagoRule("a", "b", "c", "d", "e"));
}
Hi,
I am using 6.6.3 and get similary error with dataLoader with two nodes (separate JVMs) but not with one. Is this fixed already ?
error class org.gridgain.grid.GridException: Failed to finish operation (too many remaps): 32
Cheers, Lauri
Can you please configure "peerClassLoadingEnabled" to false in configuration and make all the classes available on all nodes and see if issue is reproducible?
Thanks!
I set it to false, but still getting the same exception. http://www.gridgain.com/sdk/6.6.3/javadoc/org/gridgain/grid/GridConfiguration.html#DFLT_P2P_ENABLED
It's bit strange as the exceptions are raised for few first items but rest of the data gets uploaded quite allright.
Can you try setting it explicitly on GridConfiguration.setPeerClassLoadingEnabled(false)? Also, can you paste your full exception stack trace here? I want to make sure that it is absolutely identical exception.
Data load EXCEPTION: class org.gridgain.grid.GridException: Failed to finish operation (too many remaps): 32 For more information see: Troubleshooting: http://bit.ly/GridGain-Troubleshooting Documentation Center: http://bit.ly/GridGain-Documentation
org.gridgain.grid.kernal.processors.dataload.GridDataLoaderImpl.load0(GridDataLoaderImpl.java:427) org.gridgain.grid.kernal.processors.dataload.GridDataLoaderImpl.access$600(GridDataLoaderImpl.java:62) org.gridgain.grid.kernal.processors.dataload.GridDataLoaderImpl$4.apply(GridDataLoaderImpl.java:517) org.gridgain.grid.kernal.processors.dataload.GridDataLoaderImpl$4.apply(GridDataLoaderImpl.java:488) org.gridgain.grid.util.future.GridFutureAdapter.notifyListener(GridFutureAdapter.java:386) org.gridgain.grid.util.future.GridFutureAdapter.notifyListeners(GridFutureAdapter.java:373) org.gridgain.grid.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:504) org.gridgain.grid.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:474) org.gridgain.grid.kernal.processors.dataload.GridDataLoaderImpl$Buffer.onResponse(GridDataLoaderImpl.java:1106) org.gridgain.grid.kernal.processors.dataload.GridDataLoaderImpl$3.onMessage(GridDataLoaderImpl.java:235) org.gridgain.grid.kernal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:662) org.gridgain.grid.kernal.managers.communication.GridIoManager.access$1900(GridIoManager.java:62) org.gridgain.grid.kernal.managers.communication.GridIoManager$6.body(GridIoManager.java:623) org.gridgain.grid.util.worker.GridWorker.run(GridWorker.java:151) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) java.lang.Thread.run(Thread.java:745)
We cannot reproduce this issue internally. It would help a great deal if you could provide a small reproducible example that we could test on. Would this be possible?
Sure thing. It will take a moment but I will drop you an email.
At least on my machine, calling 3 times work, 4 times it errors. GridGain nodes = 3. If single node there's no error. GridGain 6.1.9.
Code: https://github.com/ceefour/gggettingstarted/blob/toomanyremaps/src/main/java/com/hendyirawan/gggettingstarted/simple/LoadData.java
Error: