[
https://issues.apache.org/jira/browse/ASTERIXDB-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ian Maxon resolved ASTERIXDB-1465.
----------------------------------
Resolution: Cannot Reproduce
This hasn't happened again so far. The instance that had this happen had other
things happen to it, so this may be a consequence of those. My only guess was
this would happen once the fileIds rolled over after enough merges but that
didn't happen either.
> BTree Merge selects wrong file for output
> -----------------------------------------
>
> Key: ASTERIXDB-1465
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1465
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: Hyracks, Storage
> Reporter: Ian Maxon
> Assignee: Ian Maxon
>
> This happened on an instance that was ingesting tweets for about two weeks.
> An NC died at some point and was restarted, and everything works fine until a
> merge is scheduled. It fails with the below stack and the fallout from this
> causes exceptions to come from the buffer cache for resultant queries.
> INFO: Started a merge operation for index: LSMBTree
> [/mnt/asterixdb/asterixdb/storage/partition_1/feeds/Tweets_idx_Tweets/] ...
> May 27, 2016 1:49:09 PM
> org.apache.hyracks.storage.common.buffercache.BufferCache openFile
> INFO: Opening file: 20 in cache:
> org.apache.hyracks.storage.common.buffercache.BufferCache@7cddf110
> May 27, 2016 1:49:09 PM
> org.apache.hyracks.storage.common.buffercache.BufferCache openFile
> INFO: Opening file: 5 in cache:
> org.apache.hyracks.storage.common.buffercache.BufferCache@7cddf110
> May 27, 2016 1:49:09 PM
> org.apache.hyracks.storage.common.buffercache.BufferCache closeFile
> INFO: Closing file: 5 in cache:
> org.apache.hyracks.storage.common.buffercache.BufferCache@7cddf110
> May 27, 2016 1:49:09 PM
> org.apache.hyracks.storage.common.buffercache.BufferCache closeFile
> INFO: Closed file: 5 in cache:
> org.apache.hyracks.storage.common.buffercache.BufferCache@7cddf110
> May 27, 2016 1:49:09 PM
> org.apache.hyracks.storage.common.buffercache.BufferCache openFile
> INFO: Opening file: 5 in cache:
> org.apache.hyracks.storage.common.buffercache.BufferCache@7cddf110
> org.apache.hyracks.storage.am.common.api.TreeIndexException: Cannot bulk-load
> a non-empty tree.
> at
> org.apache.hyracks.storage.am.common.impls.AbstractTreeIndex$AbstractTreeIndexBulkLoader.<init>(AbstractTreeIndex.java:339)
> at
> org.apache.hyracks.storage.am.btree.impls.BTree$BTreeBulkLoader.<init>(BTree.java:965)
> at
> org.apache.hyracks.storage.am.btree.impls.BTree.createBulkLoader(BTree.java:953)
> at
> org.apache.hyracks.storage.am.lsm.btree.impls.LSMBTree.merge(LSMBTree.java:522)
> at
> org.apache.hyracks.storage.am.lsm.common.impls.LSMHarness.merge(LSMHarness.java:478)
> at
> org.apache.hyracks.storage.am.lsm.common.impls.LSMTreeIndexAccessor.merge(LSMTreeIndexAccessor.java:111)
> at
> org.apache.hyracks.storage.am.lsm.btree.impls.LSMBTreeMergeOperation.call(LSMBTreeMergeOperation.java:79)
> at
> org.apache.hyracks.storage.am.lsm.btree.impls.LSMBTreeMergeOperation.call(LSMBTreeMergeOperation.java:36)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)