question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[QUERY] Accessing secondary site of RA-GRS storage account

See original GitHub issue

Query/Question How can we read from the secondary site of a storage account configured using RA-GRS using the v12 SDK? Previous versions had awareness of the LocationMode, but this version doesn’t appear to.

Why is this not a Bug or a feature Request? Request for information on how to do something that was possible in previous SDK versions (e.g. the sample here: https://github.com/Azure-Samples/storage-java-ha-ra-grs/blob/master/RAGRS/src/main/java/AzureApp/App.java)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rickle-msftcommented, May 5, 2020

I see. Thank you for sharing. As I said, I was just curious. And thank you again for bringing this to our attention.

It looks like we perhaps do need to update our builder logic. The request should be signed as though it is going to the primary, and we are simply using the url passed in, which is a secondary in your case. I’m not sure if we need to check if it’s a secondary and strip “-secondary” or request that customers still pass in the primary if they are passing in a secondary. We’ll have some discussion over here and figure out the best way to support this scenario.

0reactions
AGT89commented, May 5, 2020

@rickle-msft We’re trying to make use of RA-GRS, for example as outlined in https://docs.microsoft.com/en-us/azure/storage/common/storage-designing-ha-apps-with-ragrs but the SDK no longer supports LocationMode. In case of error on the primary, we don’t want to try all requests to the primary and let them fail before trying the secondary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Storage - Data redundancy - Microsoft Learn
With GRS or GZRS, the data in the secondary region isn't available for read or write access unless there's a failover to the...
Read more >
Read-Access Geo-Redundant Storage Accounts (RA-GRS)
Because GRS and RA-GRS Accounts are replicated asynchronously to the Secondary Region, data written to the Primary Region of the storage account will...
Read more >
Accessing your geo-redundant endpoint - Cerebrata
Accessing the replicated data is done with the same credentials and API conventions, except that '-secondary' is appended to the subdomain for ...
Read more >
Azure — Storage Replication Overview - Medium
Read-access Geo-redundant storage (RA-GRS) ... With GRS, your secondary region isn't available for read access until the primary region fails.
Read more >
Azure Storage Account and its Complete Overview
Even loose files can be stored using services like Azure Files and Azure Blobs. What is Azure Storage Account? A storage account is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found