RP-Kit / RPKit

RPKit plugin suite
Apache License 2.0
21 stars 12 forks source link

RPKit block logging duplicating block log records #633

Closed renbinden closed 1 year ago

renbinden commented 1 year ago

java.util.concurrent.CompletionException: com.rpkit.blocklog.bukkit.shadow.impl.org.jooq.exception.TooManyRowsException: Cursor returned more than one result
    at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
    at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
    at java.util.concurrent.ForkJoinPool$WorkQueue.helpAsyncBlocker(ForkJoinPool.java:1253) ~[?:?]
    at java.util.concurrent.ForkJoinPool.helpAsyncBlocker(ForkJoinPool.java:2237) ~[?:?]
    at java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1887) ~[?:?]
    at java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2117) ~[?:?]
    at com.rpkit.blocklog.bukkit.block.RPKBlockHistoryServiceImpl.getBlockHistory$lambda-0(RPKBlockHistoryServiceImpl.kt:86) ~[?:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) [?:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) [?:?]
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?]
    at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:?]
    at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?]
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:?]
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:?]
Caused by: com.rpkit.blocklog.bukkit.shadow.impl.org.jooq.exception.TooManyRowsException: Cursor returned more than one result
    at com.rpkit.blocklog.bukkit.shadow.impl.org.jooq_3.16.6.MYSQL.debug(Unknown Source) ~[?:?]
    at com.rpkit.blocklog.bukkit.shadow.impl.org.jooq.impl.Tools.fetchOne(Tools.java:2399) ~[?:?]
    at com.rpkit.blocklog.bukkit.shadow.impl.org.jooq.impl.ResultQueryTrait.fetchOne(ResultQueryTrait.java:506) ~[?:?]
    at com.rpkit.blocklog.bukkit.database.table.RPKBlockHistoryTable.get$lambda-6(RPKBlockHistoryTable.kt:130) ~[?:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
    ... 14 more```