Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing Class.forName for implementation bridge helpers #3

Open
wants to merge 16 commits into
base: improvementForCosmosExceptionHelper
Choose a base branch
from

Conversation

FabianMeiswinkel
Copy link
Collaborator

No description provided.

mssfang and others added 2 commits May 16, 2022 17:43
…nd CosmosException (Azure#28620)

* Improved diagnostics with new models for StoreResponse, StoreResult and CosmosException

* Fixed spot bugs related to storeResult.getException()

* Updated query plan cache to ConcurrentHashMap with fixed size of 1000 to start with

* Added exception response headers and message to direct and gateway errors. Also added code for throwing any java.lang.Error

* Added unit tests for StoreReader and ConsistencyWriter

* Disabled StoreReader unit test for error since it is causing other tests to fail. Will investigate later

* Commented out the broken test

* Reverted StoreReaderTest

* Removed mockito-inline

* Fixed StoreReaderTest static mocking

* Fixed ConsistencyWriterTest static mocking

* Code review comments and changelog addition

* Fixed some test cases

public static void setCosmosClientBuilderAccessor(final CosmosClientBuilderAccessor newAccessor) {
if (accessor != null) {
throw new IllegalStateException("CosmosClientBuilder accessor already initialized!");
if (!accessor.compareAndSet(null, newAccessor)) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we call doNothingButEnsureLoadingClass() in setter as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No - because setXXX will always be called from the class that we want to ensure to be loaded.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yea make sense

@xinlian12
Copy link
Owner

Change log update?

@FabianMeiswinkel
Copy link
Collaborator Author

Change log update?

Added - although this PR is just to merge into your PR :-)

Copy link
Owner

@xinlian12 xinlian12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

xinlian12 pushed a commit that referenced this pull request Mar 31, 2023
* health insights sdk for java

* rename country to countryOrRegion

* update product name to azure-health-insights

* update cspell with missing words

* update root pom.xml and version_client.txt

* update dependency versions

* update dependency versions (#2)

* skip jacoco

* fix spell checks

* Asaflevi/feature/healthinsights sdk for java (#3)

* update dependency versions

* skip jacoco

* fix spell checks

* skip jacoco

* linting

* remove redundant plugins

* remove test.yaml files

* remove redundant package.json file

* fix sampes and readmes

* spell

* fix linting

* fix sample repository reference

* remove duplicate dependency (mockito)

* alignment (readme)

* fix readme title

* setPlaybackSyncPollerPollInterval

* update serviceversion class (emitter 0.5.1)

* remove impressions png
xinlian12 pushed a commit that referenced this pull request Apr 19, 2023
xinlian12 pushed a commit that referenced this pull request Feb 29, 2024
…property of AKV SecretClient (Azure#36603)

* Allows configuration of disableChallengeResourceVerification property
- Adds disableChallengeResourceVerification property to properties objects
- Includes new property in mapping methods
- Configures SecretClient in Factory when disableChallengeResourceVerification is set
- Configures CertificateClient in Factory when disableChallengeResourceVerification is set
- Updates/adds new tests
- Updates Changelog

Resolves Azure#36561

Signed-off-by: Esta Nagy <[email protected]>

* Allows configuration of disableChallengeResourceVerification property - Code review fixes #1
- Renames disableChallengeResourceVerification to challengeResourceVerificationEnabled
- Adds additional JavaDoc

Resolves Azure#36561

Signed-off-by: Esta Nagy <[email protected]>

* Allows configuration of disableChallengeResourceVerification property

- Fix a missed JavaDoc

Signed-off-by: Esta Nagy <[email protected]>

* Improve the configuration properties javadoc, and complete the additional-spring-configuration-metadata.json

* Allows configuration of disableChallengeResourceVerification property - Code review fixes #3
- Simplifies factory method logic as per code review recommendation

Resolves Azure#36561

Signed-off-by: Esta Nagy <[email protected]>

---------

Signed-off-by: Esta Nagy <[email protected]>
Co-authored-by: Azure SDK Bot <[email protected]>
Co-authored-by: Xiaolu Dai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants