Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException Added a page twice: DataPage{pageId=821, immutable=true, writable=false, usedMemory=791012} during data selecting from herdDB #636

Open
hamadodene opened this issue Jun 26, 2020 · 0 comments
Labels

Comments

@hamadodene
Copy link
Contributor

herddb.model.StatementExecutionException: herddb.storage.DataStorageManagerException: java.lang.IllegalArgumentException: Added a page twice: DataPage{pageId=821, immutable=true, writable=false, usedMemory=791012}
        at herddb.core.DBManager.executePlan(DBManager.java:700)
        at herddb.server.ServerSideConnectionPeer.handleOpenScanner(ServerSideConnectionPeer.java:457)
        at herddb.server.ServerSideConnectionPeer.requestReceived(ServerSideConnectionPeer.java:182)
        at herddb.network.netty.NettyChannel.lambda$handlePduRequest$0(NettyChannel.java:97)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: herddb.storage.DataStorageManagerException: java.lang.IllegalArgumentException: Added a page twice: DataPage{pageId=821, immutable=true, writable=false, usedMemory=791012}
        at herddb.core.TableManager.loadPageToMemory(TableManager.java:2188)
        at herddb.core.TableManager.fetchDataPage(TableManager.java:3537)
        at herddb.core.TableManager.fetchRecord(TableManager.java:3468)
        at herddb.core.TableManager.accessRecord(TableManager.java:3416)
        at herddb.core.TableManager.lambda$streamTableData$24(TableManager.java:3339)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
        at java.base/java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812)
        at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:294)
        at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
        at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:161)
        at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300)
        at java.base/java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
        at herddb.core.StreamDataScanner.fetchNext(StreamDataScanner.java:61)
        at herddb.core.StreamDataScanner.<init>(StreamDataScanner.java:49)
        at herddb.core.TableManager.scanWithStream(TableManager.java:3162)
        at herddb.core.TableManager.scan(TableManager.java:2884)
        at herddb.core.TableSpaceManager.scan(TableSpaceManager.java:647)
        at herddb.core.DBManager.scan(DBManager.java:747)
        at herddb.core.DBManager.executePlanAsync(DBManager.java:712)
        at herddb.core.DBManager.executePlan(DBManager.java:689)
        ... 9 more
Caused by: java.lang.IllegalArgumentException: Added a page twice: DataPage{pageId=821, immutable=true, writable=false, usedMemory=791012}
        at herddb.core.ClockProPolicy.unsafeAdd(ClockProPolicy.java:368)
        at herddb.core.ClockProPolicy.unsafeAdd(ClockProPolicy.java:276)
        at herddb.core.ClockProPolicy.add(ClockProPolicy.java:155)
        at herddb.core.ClockProPolicy.add(ClockProPolicy.java:52)
        at herddb.core.TableManager.loadPageToMemory(TableManager.java:2172)
        ... 28 more

@eolivelli eolivelli added the bug label Jul 2, 2020
@eolivelli eolivelli changed the title IllegalArgumentException during data selecting from herdDB IllegalArgumentException Added a page twice: DataPage{pageId=821, immutable=true, writable=false, usedMemory=791012} during data selecting from herdDB Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants