-
Bug
-
Resolution: Duplicate
-
None
-
Minecraft 1.14 Pre-Release 1
-
None
-
Ubuntu 18.04
mcrcon
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
-
Unconfirmed
Since I made a bash-script to backup my world, I sometimes get these errors when saving the world using the "/save-all flush" command from RCON. Seems that each time the chunks which cause the error are random. For RCON connection I'm using mcrcon (sorry for bad formatting).
Seems that this is because of /save-on enabled at the moment of /save-all flush: I now first disable auto-saves by /save-off, then save the world, and only then re-enable auto-saving by /save-on and seems these exceptions are gone. I've also put 5-second sleep after the save before actually TAR'ing the world, just in case rcon response from save is async.
Just wanted you to know about it - maybe you consider it a bug. Note that these exceptions only occur when saving from RCON, when saving directly from console everything is also OK.
[03:15:01] [RCON Listener #1/INFO]: Rcon connection from: /127.0.0.1 [03:15:01] [RCON Listener #1/INFO]: Rcon connection from: /127.0.0.1 [03:15:01] [RCON Client #22/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved [03:15:01] [RCON Client #22/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [03:15:01] [RCON Client #22/ERROR]: Failed to save chunk 2,14java.util.ConcurrentModificationException: null at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909) ~[?:1.8.0_201] at java.util.ArrayList$Itr.next(ArrayList.java:859) ~[?:1.8.0_201] at bhn.a(SourceFile:118) ~[server.jar:?] at bhn.a(SourceFile:103) ~[server.jar:?] at bhn.a(SourceFile:149) ~[server.jar:?] at bxo.a(SourceFile:355) ~[server.jar:?] at us.a(SourceFile:550) ~[server.jar:?] at com.mojang.datafixers.util.Either$Left.ifLeft(Either.java:43) ~[server.jar:?] at us.a(SourceFile:342) ~[server.jar:?] at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$11$1.accept(ReferencePipeline.java:373) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_201] at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_201] at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_201] at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_201] at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_201] at us.a(SourceFile:339) ~[server.jar:?] at vd.a(SourceFile:216) ~[server.jar:?] at vf.a(SourceFile:742) ~[server.jar:?] at net.minecraft.server.MinecraftServer.a(SourceFile:526) ~[server.jar:?] at sz.a(SourceFile:34) ~[server.jar:?] at sz.a(SourceFile:23) ~[server.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:262) [server.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:176) [server.jar:?] at ce.a(SourceFile:223) [server.jar:?] at ug.a_(SourceFile:578) [server.jar:?] at yf.run(SourceFile:80) [server.jar:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201][03:15:01] [RCON Client #22/ERROR]: Failed to save chunk 2,15java.util.ConcurrentModificationException: null at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909) ~[?:1.8.0_201] at java.util.ArrayList$Itr.next(ArrayList.java:859) ~[?:1.8.0_201] at bhn.a(SourceFile:118) ~[server.jar:?] at bhn.a(SourceFile:103) ~[server.jar:?] at bhn.a(SourceFile:149) ~[server.jar:?] at bxo.a(SourceFile:355) ~[server.jar:?] at us.a(SourceFile:550) ~[server.jar:?] at com.mojang.datafixers.util.Either$Left.ifLeft(Either.java:43) ~[server.jar:?] at us.a(SourceFile:342) ~[server.jar:?] at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$11$1.accept(ReferencePipeline.java:373) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_201] at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_201] at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_201] at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_201] at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_201] at us.a(SourceFile:339) ~[server.jar:?] at vd.a(SourceFile:216) ~[server.jar:?] at vf.a(SourceFile:742) ~[server.jar:?] at net.minecraft.server.MinecraftServer.a(SourceFile:526) ~[server.jar:?] at sz.a(SourceFile:34) ~[server.jar:?] at sz.a(SourceFile:23) ~[server.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:262) [server.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:176) [server.jar:?] at ce.a(SourceFile:223) [server.jar:?] at ug.a_(SourceFile:578) [server.jar:?] at yf.run(SourceFile:80) [server.jar:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201][03:15:01] [RCON Client #22/ERROR]: Failed to save chunk 2,16java.util.ConcurrentModificationException: null at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1211) ~[?:1.8.0_201] at java.util.TreeMap$KeyIterator.next(TreeMap.java:1265) ~[?:1.8.0_201] at bhn.a(SourceFile:118) ~[server.jar:?] at bhn.a(SourceFile:103) ~[server.jar:?] at bhn.a(SourceFile:149) ~[server.jar:?] at bxo.a(SourceFile:348) ~[server.jar:?] at us.a(SourceFile:550) ~[server.jar:?] at com.mojang.datafixers.util.Either$Left.ifLeft(Either.java:43) ~[server.jar:?] at us.a(SourceFile:342) ~[server.jar:?] at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$11$1.accept(ReferencePipeline.java:373) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_201] at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_201] at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_201] at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_201] at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_201] at us.a(SourceFile:339) ~[server.jar:?] at vd.a(SourceFile:216) ~[server.jar:?] at vf.a(SourceFile:742) ~[server.jar:?] at net.minecraft.server.MinecraftServer.a(SourceFile:526) ~[server.jar:?] at sz.a(SourceFile:34) ~[server.jar:?] at sz.a(SourceFile:23) ~[server.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:262) [server.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:176) [server.jar:?] at ce.a(SourceFile:223) [server.jar:?] at ug.a_(SourceFile:578) [server.jar:?] at yf.run(SourceFile:80) [server.jar:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201][03:15:01] [RCON Client #22/ERROR]: Failed to save chunk -4,17java.util.ConcurrentModificationException: null at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909) ~[?:1.8.0_201] at java.util.ArrayList$Itr.next(ArrayList.java:859) ~[?:1.8.0_201] at bhn.a(SourceFile:118) ~[server.jar:?] at bhn.a(SourceFile:103) ~[server.jar:?] at bhn.a(SourceFile:149) ~[server.jar:?] at bxo.a(SourceFile:355) ~[server.jar:?] at us.a(SourceFile:550) ~[server.jar:?] at com.mojang.datafixers.util.Either$Left.ifLeft(Either.java:43) ~[server.jar:?] at us.a(SourceFile:342) ~[server.jar:?] at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$11$1.accept(ReferencePipeline.java:373) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_201] at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_201] at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_201] at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_201] at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_201] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_201] at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_201] at us.a(SourceFile:339) ~[server.jar:?] at vd.a(SourceFile:216) ~[server.jar:?] at vf.a(SourceFile:742) ~[server.jar:?] at net.minecraft.server.MinecraftServer.a(SourceFile:526) ~[server.jar:?] at sz.a(SourceFile:34) ~[server.jar:?] at sz.a(SourceFile:23) ~[server.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:262) [server.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:176) [server.jar:?] at ce.a(SourceFile:223) [server.jar:?] at ug.a_(SourceFile:578) [server.jar:?] at yf.run(SourceFile:80) [server.jar:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201][03:15:02] [RCON Client #22/INFO]: ThreadedAnvilChunkStorage (withsllh): All chunks are saved
- duplicates
-
MC-72390 Rcon is not thread-safe
- Resolved