commit | 3f5fb11d042cff81fb0730f81bb49dc27fd2057b | [log] [tgz] |
---|---|---|
author | zheilbron <zheilbron@gmail.com> | Thu May 30 11:10:17 2013 -0700 |
committer | zheilbron <zheilbron@gmail.com> | Thu May 30 11:10:17 2013 -0700 |
tree | dc77b2daf3a3a235a1c2920ea4d5cecaa7de1eca | |
parent | 8f790d8f2908f5ce15055e8de3762ed8db2fc84a [diff] |
remove debug statements; add exceptions to IIndexLifecycleManager methods
diff --git a/hyracks/hyracks-storage-am-common/src/main/java/edu/uci/ics/hyracks/storage/am/common/api/IIndexLifecycleManager.java b/hyracks/hyracks-storage-am-common/src/main/java/edu/uci/ics/hyracks/storage/am/common/api/IIndexLifecycleManager.java index c4f43b9..854d34e 100644 --- a/hyracks/hyracks-storage-am-common/src/main/java/edu/uci/ics/hyracks/storage/am/common/api/IIndexLifecycleManager.java +++ b/hyracks/hyracks-storage-am-common/src/main/java/edu/uci/ics/hyracks/storage/am/common/api/IIndexLifecycleManager.java
@@ -5,7 +5,7 @@ import edu.uci.ics.hyracks.api.exceptions.HyracksDataException; public interface IIndexLifecycleManager { - public IIndex getIndex(long resourceID); + public IIndex getIndex(long resourceID) throws HyracksDataException; public void register(long resourceID, IIndex index) throws HyracksDataException; @@ -13,7 +13,7 @@ public void open(long resourceID) throws HyracksDataException; - public void close(long resourceID); + public void close(long resourceID) throws HyracksDataException; public List<IIndex> getOpenIndexes(); } \ No newline at end of file
diff --git a/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/MultitenantVirtualBufferCache.java b/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/MultitenantVirtualBufferCache.java index db34e28..1ad7f5d 100644 --- a/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/MultitenantVirtualBufferCache.java +++ b/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/MultitenantVirtualBufferCache.java
@@ -77,16 +77,12 @@ if (openCount == 0) { vbc.close(); } - System.out.println("Calling close with openCount = " + openCount); - Thread.dumpStack(); } @Override public synchronized void open() { ++openCount; vbc.open(); - System.out.println("Calling open with openCount = " + openCount); - Thread.dumpStack(); } @Override @@ -103,5 +99,4 @@ public IFileMapManager getFileMapProvider() { return vbc.getFileMapProvider(); } - }