serilog-archive / serilog-sinks-azuredocumentdb

A Serilog sink that writes to Azure DocumentDB
Apache License 2.0
17 stars 15 forks source link

Actor thread blocking at Serilog.Sinks.Batch.BatchProvider.EventPump #65

Closed manoj-kumar1 closed 6 years ago

manoj-kumar1 commented 6 years ago

Hi All,

I am using Azure document Db logger sink with Azure service fabric Actors and when we deploy these actor services in Azure service fabric cluster, logs are not written to document db. After analyzing DUMP files we find that all Actors have one thread is blocking at below method: Serilog.Sinks.Batch.BatchProvider.EventPump

Is it happening due to batching. Why Actor thread is getting blocked... After further investigation, the collection link is ‘dbs/Z0FDAA==/colls/Z0FDAJSwbQA=/’ Is this normal/correct?? I am using following configuration appsettings to write logs into Doc db: `

`

saleem-mirza commented 6 years ago

Although this sink hasn’t been tested in said environment but I’ll look into issue. However, it flushs log under two circumstances.

after certain timeout, normally 10 seconds Or when batch completes

please send a testable solution