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!