From: <tho...@us...> - 2014-03-24 15:41:55
|
Revision: 8015 http://sourceforge.net/p/bigdata/code/8015 Author: thompsonbry Date: 2014-03-24 15:41:50 +0000 (Mon, 24 Mar 2014) Log Message: ----------- Bug fix to the GRS to protect the index with an UnisolatedReadWriteIndex along all code paths. This is only a partial fix for the reported problem. I am committing this change to CI for feedback before committing through the NSS specific modifications. See #867 (NSS concurrency problem with list namespaces and create namespace) Modified Paths: -------------- branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/sparse/GlobalRowStoreHelper.java Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/sparse/GlobalRowStoreHelper.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/sparse/GlobalRowStoreHelper.java 2014-03-24 01:34:33 UTC (rev 8014) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/sparse/GlobalRowStoreHelper.java 2014-03-24 15:41:50 UTC (rev 8015) @@ -74,9 +74,17 @@ if (globalRowStore == null) { - IIndex ndx = indexManager.getIndex(GLOBAL_ROW_STORE_INDEX, - ITx.UNISOLATED); - + /** + * The GRS view needs to be protected by an + * UnisolatedReadWriteIndex. + * + * @see <a href="http://trac.bigdata.com/ticket/867"> NSS + * concurrency problem with list namespaces and create + * namespace </a> + */ + IIndex ndx = AbstractRelation.getIndex(indexManager, + GLOBAL_ROW_STORE_INDEX, ITx.UNISOLATED); + if (ndx == null) { if (log.isInfoEnabled()) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |