SERVER-137908In Progress

Add test to assert on cloning properties of QuerySolutionNode

The QuerySolutionNode class exposes a [clone()|https://github.com/10gen/mongo/blob/2c0a9a216233b0670da0311027d17e6eb2d5810f/src/mongo/db/query/compiler/physical_model/query_solution/query_solution.h#L232] method that is fragile and difficult to maintain when new properties are added. Rather than moving away from clone(), this ticket proposes a comprehensive test that will catch issues related to cloning ideally in a unit test.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
tech-debt