-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 8.2.4, 7.0.31, 8.2.6, 8.2.12
-
Component/s: None
-
None
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Running collMod with either capped resize option against a view stops the server. No
error is returned and the connection closes.
The view does not need a real source collection or a pipeline, and the value can be 1.
Every other target returns a clean error for the same options.
| Target | Result |
|---|---|
| ordinary collection | error 72, Collection must be capped |
| clustered collection | error 72 |
| oplog | error 72, cannot resize the oplog using this command |
| non-existent collection | error 26, ns does not exist |
| view | server stops |
Expected
Error 72 InvalidOptions, matching the ordinary collection case. A view has no
underlying collection to resize.
Actual
The server stops. The client sees the connection close with no error code, and the
process exits with 139.
cappedSize and cappedMax give the same exit code on every version I tried.