Azure-Samples / azure-cosmos-db-sql-dotnet-multi-master

Multi master conflict generation and resolution samples for SQL API in .NET
MIT License
2 stars 2 forks source link

The sample hangs when an new library is added via Nuget #1

Open jayanta-mondal opened 6 years ago

jayanta-mondal commented 6 years ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Download the sample
  2. Install Gremlin .NET (3.3.3) through Nuget
  3. Run the sample (no code change needed)

The sample hangs (at CreateDatabaseIfNotExistsAsync() in InitializeAsync()), as it complains that none of the write regions are available for write. See log below.

Any log messages given by the failure

DocDBTrace Information: 0 : Current WriteEndpoints = (https://xxx-mms-westus.documents.azure.com/) ReadEndpoints = (https://xxx-mms-westus.documents.azure.com/) DocDBTrace Information: 0 : Current WriteEndpoints = (https://xxx-mms-centralus.documents.azure.com/) ReadEndpoints = (https://xxx-mms-centralus.documents.azure.com/) DocDBTrace Information: 0 : Current WriteEndpoints = (https://xxx-mms-ukwest.documents.azure.com/) ReadEndpoints = (https://xxx-mms-ukwest.documents.azure.com/) DocDBTrace Information: 0 : ShouldRefreshEndpoints = False since most preferred location West US is not available for write. DocDBTrace Information: 0 : ShouldRefreshEndpoints = False since most preferred location Central US is not available for write. DocDBTrace Information: 0 : ShouldRefreshEndpoints = False since most preferred location UK West is not available for write. DocDBTrace Information: 0 : TimerPool Created with minSupportedTimerDelayInSeconds = 1 DocDBTrace Information: 0 : RntbdConnectionDispenser: requestTimeoutInSeconds: 60, openTimeoutInSeconds: 5, timerValueInSeconds: 1 DocDBTrace Information: 0 : TimerPool Created with minSupportedTimerDelayInSeconds = 1 DocDBTrace Information: 0 : RntbdConnectionDispenser: requestTimeoutInSeconds: 60, openTimeoutInSeconds: 5, timerValueInSeconds: 1 DocDBTrace Information: 0 : TimerPool Created with minSupportedTimerDelayInSeconds = 1 DocDBTrace Information: 0 : RntbdConnectionDispenser: requestTimeoutInSeconds: 60, openTimeoutInSeconds: 5, timerValueInSeconds: 1 DocDBTrace Information: 0 : TimerPool Created with minSupportedTimerDelayInSeconds = 1 DocDBTrace Information: 0 : TimerPool Created with minSupportedTimerDelayInSeconds = 1 DocDBTrace Information: 0 : TimerPool Created with minSupportedTimerDelayInSeconds = 1 DocDBTrace Warning: 0 : Endpoint not reachable. Refresh cache and retry DocDBTrace Information: 0 : Marking endpoint https://xxx-mms-centralus.documents.azure.com/ unavailable for read DocDBTrace Information: 0 : Endpoint https://xxx-mms-centralus.documents.azure.com/ unavailable for operations Read present in unavailableEndpoints DocDBTrace Information: 0 : Current WriteEndpoints = (https://xxx-mms-centralus.documents.azure.com/) ReadEndpoints = (https://xxx-mms-centralus.documents.azure.com/, https://gremlim-mms-centralus.documents.azure.com/) DocDBTrace Information: 0 : Endpoint https://xxx-mms-centralus.documents.azure.com/ unavailable for Read added/updated to unavailableEndpoints with timestamp 09/26/2018 18:09:49 DocDBTrace Information: 0 : RefreshLocationAsync() refreshing locations DocDBTrace Information: 0 : ShouldRefreshEndpoints = False since most preferred location Central US is not available for write. DocDBTrace Warning: 0 : Endpoint not reachable. Refresh cache and retry DocDBTrace Information: 0 : Marking endpoint https://xxx-mms-westus.documents.azure.com/ unavailable for read DocDBTrace Information: 0 : Endpoint https://xxx-mms-centralus.documents.azure.com/ unavailable for operations Read present in unavailableEndpoints DocDBTrace Information: 0 : Current WriteEndpoints = (https://xxx-mms-centralus.documents.azure.com/) ReadEndpoints = (https://gremlim-mms-centralus.documents.azure.com/, https://xxx-mms-centralus.documents.azure.com/) DocDBTrace Information: 0 : Endpoint https://xxx-mms-westus.documents.azure.com/ unavailable for Read added/updated to unavailableEndpoints with timestamp 09/26/2018 18:09:51 DocDBTrace Information: 0 : RefreshLocationAsync() refreshing locations DocDBTrace Information: 0 : ShouldRefreshEndpoints = False since most preferred location Central US is not available for write.

Expected/desired behavior

OS and Version?

Windows 10.

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

markjbrown commented 6 years ago

Am unable to repro this. Not sure if you want to try to get others to see if they can repro or not.