Cherry-pick in-memory cache implementation for release 23.1.1 Fixes AB#3444129#2822
Merged
siddhijain merged 5 commits intoworking/release/23.1.1from Nov 25, 2025
Merged
Conversation
…3.1.1 Co-authored-by: siddhijain <30181294+siddhijain@users.noreply.github.com>
|
✅ Work item link check complete. Description contains link AB#3417272 to an Azure Boards work item. |
Co-authored-by: siddhijain <30181294+siddhijain@users.noreply.github.com>
Updated version number and removed duplicate entry.
Copilot
AI
changed the title
[WIP] Cherry-pick commits for release 23.1.1
Cherry-pick in-memory cache implementation for release 23.1.1
Nov 25, 2025
|
❌ Invalid work item number: AB#3417272,. Work item number must be a valid integer. Click here to learn more. |
p3dr0rv
approved these changes
Nov 25, 2025
mohitc1
reviewed
Nov 25, 2025
|
❌ Invalid work item number: AB#3444129 Cherry-picks. Work item number must be a valid integer. Click here to learn more. |
|
❌ Invalid work item number: AB#3444129 Cherry-picks. Work item number must be a valid integer. Click here to learn more. |
|
✅ Work item link check complete. Description contains link AB#3444129 to an Azure Boards work item. |
siddhijain
approved these changes
Nov 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes AB#3444129
Cherry-picks two commits from dev to enable in-memory caching for accounts and credentials in the broker.
Commits
Changes
Core Implementation (
BrokerOAuth2TokenCache.java)ConcurrentHashMapto share in-memory cache instances acrossBrokerOAuth2TokenCacheinstancesFeature Flag (
CommonFlight.java)USE_IN_MEMORY_CACHE_FOR_ACCOUNTS_AND_CREDENTIALS(default: false)Telemetry (
AttributeName.java)in_memory_cache_used_for_accounts_and_credentialsattributeTests
BrokerOAuth2TokenCacheWithInMemoryCacheTest.java(1240 lines)BrokerOAuth2TokenCacheTest.javawith cache sharing testsConflicts Resolved
changelog.txthad conflicts due to version markers in the release branch. Resolved by adding entries under vNext:Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl.google.com/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Xmx3072m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant(dns block)www.puppycrawl.com/opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/tools/linux64/java/bin/java /opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/tools/linux64/java/bin/java -jar /opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/xml/tools/xml-extractor.jar --fileList=/home/REDACTED/work/microsoft-authentication-library-common-for-android/.codeql-scratch/dbs/java/working/files-to-index2294403091429273239.list --sourceArchiveDir=/home/REDACTED/work/microsoft-authentication-library-common-for-android/.codeql-scratch/dbs/java/src --outputDir=/home/REDACTED/work/microsoft-authentication-library-common-for-android/.codeql-scratch/dbs/java/trap/java(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.