[SERVER-22015] "compact" no effect Created: 24/Dec/15  Updated: 29/Dec/15  Resolved: 29/Dec/15

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 3.2.0
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: wencan Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-21833 Compact does not release space to the... Closed
Participants:

 Description   

I have removed the large number of documents.

shell:

> db.runCommand({compact: "urandom"})
{ "ok" : 1 }

mongod log:

2015-12-24T08:51:59.262+0000 I COMMAND  [conn21] compact test.urandom begin, options: paddingMode: NONE validateDocuments: 1
2015-12-24T08:52:00.708+0000 I COMMAND  [conn21] compact test.urandom end
2015-12-24T08:52:00.708+0000 I COMMAND  [conn21] command test.urandom command: compact { compact: "urandom" } ntoreturn:1 ntoskip:0 keyUpdates:0 writeConflicts:0 numYields:0 reslen:22 locks:{ Global: { acquireCount: { r: 1, w: 1 } }, Database: { acquireCount: { W: 1 }, acquireWaitCount: { W: 1 }, timeAcquiringMicros: { W: 85985 } } } protocol:op_command 1532ms



 Comments   
Comment by Kelsey Schubert [ 29/Dec/15 ]

Hi wencan,

Thank you for your report. This behavior has been previously identified in SERVER-21833. We have resolved the issue in our development branch, and backports to 3.0 and 3.2 have been requested. Please watch SERVER-21833 for updates and feel free to vote for it.

Kind regards,
Thomas

Comment by wencan [ 25/Dec/15 ]

storage engine: wiredtiger

Generated at Thu Feb 08 03:59:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.