azist / azos

A to Z Sky Operating System / Microservice Chassis Framework
MIT License
213 stars 29 forks source link

Bug - Chronicle archive dimensions builder fails with enabled type hints EntityId/Atom #872

Closed itadapter closed 1 year ago

itadapter commented 1 year ago

We enabled type hints on archive dims, so now when chronicle server tries to build a n index - it fails on EntityId as it does not know how to handle types See this:

@20230530-155314.852, dfbf05cd-5781-48a5-9311-a1fa0df92bb6, dsys-app-01, Critical, Instr, MongoChronicleStore@78.WriteAsync, BSONException[1] First: Azos.Serialization.BSON.BSONException: BSONDocument.Add(not supported object type 'EntityId')
   at Azos.Serialization.BSON.BSONExtensions.Add(BSONDocument document, String name, Object value, Boolean skipNull, Boolean required)
   at Azos.Serialization.BSON.BSONExtensions.ToBson(JsonDataMap map)
   at Azos.Sky.Chronicle.Server.BsonConvert.ToBson(Message msg)
   at System.Linq.Enumerable.SelectListIterator`2.ToArray()
   at Azos.Sky.Chronicle.Server.MongoChronicleStore.WriteAsync(LogBatch data)
itadapter commented 1 year ago

Is it in Azos.Serialization.BSON.BSONExtensions.ToBson(JsonDataMap map)?

itadapter commented 1 year ago

Also there is an issue with reading AD - "premature JSOn eof" see issue:

itadapter commented 1 year ago

Fixed. It was