From 1de58ca308e4c210ab14e3df55efc50d5e2886f5 Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 21 Sep 2016 22:33:09 -0400 Subject: [PATCH] Log chunk save failures as ERROR level --- Spigot-Server-Patches/0073-Chunk-Save-Reattempt.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Spigot-Server-Patches/0073-Chunk-Save-Reattempt.patch b/Spigot-Server-Patches/0073-Chunk-Save-Reattempt.patch index 8cac0dda3..ed3ce7d04 100644 --- a/Spigot-Server-Patches/0073-Chunk-Save-Reattempt.patch +++ b/Spigot-Server-Patches/0073-Chunk-Save-Reattempt.patch @@ -1,4 +1,4 @@ -From ab76a45357dcabf90d3b249332f063abae6f5a89 Mon Sep 17 00:00:00 2001 +From 639ec1035a1b282d21b9ba6e112039d6a0995c13 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 4 Mar 2013 23:46:10 -0500 Subject: [PATCH] Chunk Save Reattempt @@ -6,7 +6,7 @@ Subject: [PATCH] Chunk Save Reattempt We commonly have "Stream Closed" errors on chunk saving, so this code should re-try to save the chunk in the event of failure and hopefully prevent rollbacks. diff --git a/src/main/java/net/minecraft/server/ChunkRegionLoader.java b/src/main/java/net/minecraft/server/ChunkRegionLoader.java -index e6e7626..eb36e1f 100644 +index e6e7626..854fbd7 100644 --- a/src/main/java/net/minecraft/server/ChunkRegionLoader.java +++ b/src/main/java/net/minecraft/server/ChunkRegionLoader.java @@ -174,11 +174,16 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { @@ -23,7 +23,7 @@ index e6e7626..eb36e1f 100644 + laste = exception; // Paper } + try {Thread.sleep(10);} catch (InterruptedException e) {e.printStackTrace();} } // Paper -+ if (laste != null) { com.destroystokyo.paper.exception.ServerInternalException.reportInternalException(laste); laste.printStackTrace(); } // Paper ++ if (laste != null) { com.destroystokyo.paper.exception.ServerInternalException.reportInternalException(laste); MinecraftServer.LOGGER.error("Failed to save chunk", laste); } // Paper } synchronized (lock) { if (this.b.get(chunkcoordintpair) == nbttagcompound) { this.b.remove(chunkcoordintpair); } }// Paper - This will not equal if a newer version is still pending @@ -42,5 +42,5 @@ index c9bd856..1fe5019 100644 } -- -2.10.0.windows.1 +2.9.3