# Partitions in Percona-Server-MongoDB-3.0.10 working?

**URL:** <https://forums.percona.com/t/partitions-in-percona-server-mongodb-3-0-10-working/4831>\
**Category:** Percona Server for MongoDB\
**Created:** [April 11, 2016, 5:31am UTC](https://forums.percona.com/t/partitions-in-percona-server-mongodb-3-0-10-working/4831 "2016-04-11T05:31:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Hofer](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@Thomas\_Hofer](https://forums.percona.com/u/Thomas_Hofer)\
**Post date:** [April 11, 2016, 5:31am UTC](https://forums.percona.com/t/partitions-in-percona-server-mongodb-3-0-10-working/4831/1 "2016-04-11T05:31:20Z")

</div>

I’m testing Percona-Server-MongoDB-3.0.10 and installed the RPMs for CentOS / Redhat 7 from the download page.  
Creating a partitioned collection seems to work, but when I try to create a new partition or query information about partitions I get the following error:  
“TypeError: Property ‘addPartition’ of object metric.metric\_universe is not a function”  
Does partitioning work in this version? Do I have to enable it in the config file?

What I do is:

[COLOR=#0000FF]\> use foo  
switched to db foo

> db.foo.drop()  
> true  
> db.createCollection(“foo”, {partitioned: 1 , primaryKey : {T: 1 , \_id: 1}})  
> { “ok” : 1 }  
> db.bar.getPartitionInfo()  
> 2016-04-11T12:54:42.044+0200 E QUERY TypeError: Property ‘getPartitionInfo’ of object foo.bar is not a function  
> at (shell):1:8  
> db.bar.addPartition()  
> 2016-04-11T12:54:48.857+0200 E QUERY TypeError: Property ‘addPartition’ of object foo.bar is not a function  
> at (shell):1:8  
> db.bar.stats()  
> {  
> “ns” : “foo.bar”,  
> “count” : 0,  
> “size” : 0,  
> “numExtents” : 1,  
> “storageSize” : 8192,  
> “lastExtentSize” : 8192,  
> “paddingFactor” : 1,  
> “paddingFactorNote” : “paddingFactor is unused and unmaintained in 3.0. It remains hard coded to 1.0 for compatibility only.”,  
> “userFlags” : 1,  
> “capped” : false,  
> “nindexes” : 1,  
> “totalIndexSize” : 8176,  
> “indexSizes” : {  
> “_id_” : 8176  
> },  
> “ok” : 1  
> }

Any help is greatly appreciated!
