Closed fgalan closed 9 years ago
Some logs found at CB when this bug arises, just printed before the crash, that could be useful:
Sample 1:
INFO@19:24:49 MongoGlobal.cpp[1078]: Database Operation Successful ({ query: { $or: [ { _id.id: /.*/, _id.type: ".*" } ], _id.servicePath: { $in: [ /^/.*/, null ] }, location.coords: { $geoWithin: { $geometry: { type: "Polygon", coordinates: [ [ [ -70.652788, -33.603458 ], [ -70.64603200000001, -33.604231 ], [ -70.65379, -33.606123 ], [ -70.646781, -33.607108 ], [ -70.652788, -33.603458 ] ] ] } } } }, orderby: { creDate: 1 } })
Sample 2:
INFO@19:30:52 MongoGlobal.cpp[1078]: Database Operation Successful ({ query: { $or: [ { _id.id: /.*/, _id.type: "TypeC" } ], _id.servicePath: { $in: [ /^/.*/, null ] }, location.coords: { $geoWithin: { $geometry: { type: "Polygon", coordinates: [ [ [ -70.652788, -33.603458 ], [ -70.64603200000001, -33.604231 ], [ -70.65379, -33.606123 ], [ -70.646781, -33.607108 ], [ -70.652788, -33.603458 ] ] ] } } } }, orderby: { creDate: 1 } })
Fixed in PR #698
Reported by @PabloCGarcia (see https://github.com/telefonicaid/fiware-orion-pep/issues/97):
When we create a syntactically correct query but that is semantically incorrect, the broker crashes. We created the following query that combines a geo restriction of kind polygon and, in the same query, a restriction of kind circle, then the broker crashes.
The query is: