Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Temporarily disabling repository object/byte counts
  • Loading branch information
escowles committed Sep 11, 2014
1 parent 1737afc commit 611de3e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Expand Up @@ -1047,6 +1047,8 @@ public void testGetGraphForDatastreamWithJCRBadPath() throws Exception {
assertEquals(NOT_FOUND.getStatusCode(), response.getStatusLine().getStatusCode());

}

@Ignore("pending https://www.pivotaltracker.com/story/show/78647248")
@Test
public void testDescribeSize() throws Exception {

Expand Down Expand Up @@ -1081,6 +1083,7 @@ public void testDescribeSize() throws Exception {
Integer.parseInt(oldSize) < Integer.parseInt(newSize));
}

@Ignore("pending https://www.pivotaltracker.com/story/show/78647248")
@Test
public void testDescribeCount() throws Exception {
logger.trace("Entering testDescribeCount()...");
Expand Down
Expand Up @@ -24,11 +24,12 @@
import static org.fcrepo.kernel.RdfLexicon.HAS_FIXITY_ERROR_COUNT;
import static org.fcrepo.kernel.RdfLexicon.HAS_FIXITY_REPAIRED_COUNT;
import static org.fcrepo.kernel.RdfLexicon.HAS_NODE_TYPE;
import static org.fcrepo.kernel.RdfLexicon.HAS_OBJECT_COUNT;
import static org.fcrepo.kernel.RdfLexicon.HAS_OBJECT_SIZE;
import static org.fcrepo.kernel.RdfLexicon.REPOSITORY_NAMESPACE;
import static org.fcrepo.kernel.impl.services.ServiceHelpers.getRepositoryCount;
import static org.fcrepo.kernel.impl.services.ServiceHelpers.getRepositorySize;
// see: https://www.pivotaltracker.com/story/show/78647248
//import static org.fcrepo.kernel.RdfLexicon.HAS_OBJECT_COUNT;
//import static org.fcrepo.kernel.RdfLexicon.HAS_OBJECT_SIZE;
//import static org.fcrepo.kernel.impl.services.ServiceHelpers.getRepositoryCount;
//import static org.fcrepo.kernel.impl.services.ServiceHelpers.getRepositorySize;
import static org.slf4j.LoggerFactory.getLogger;
import org.fcrepo.metrics.RegistryService;

Expand Down Expand Up @@ -96,10 +97,15 @@ public RootRdfContext(final Node node, final IdentifierTranslator graphSubjects)
createLiteral(nodeType.getName())));
}

/*
FIXME: removing because performance problems, esp. w/ many files on federated filesystem
see: https://www.pivotaltracker.com/story/show/78647248
b.add(create(subject(), HAS_OBJECT_COUNT.asNode(), createLiteral(String
.valueOf(getRepositoryCount(repository)))));
b.add(create(subject(), HAS_OBJECT_SIZE.asNode(), createLiteral(String
.valueOf(getRepositorySize(repository)))));
*/

// Get the cluster configuration, if available
// this ugly test checks to see whether this is an ordinary JCR
Expand Down

0 comments on commit 611de3e

Please sign in to comment.