Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Conversation

@CharlesZKQ
Copy link

In org.springframework.data.gemfire.serialization.json.JSONRegionAdviceIntegrationTests, the tests objectToJSon() , templateFind(), templateFindUnique(), templateQuery() are all flaky due to the non-deterministic property of getDeclatedFields() (please refer document), which is used in serialization of org.apache.geode.cache.Region and com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(). I fixed it by adding @JsonPropertyOrder annotation to fix fix its order of properties during serialization of putting into Region, and adding MapperFeature.SORT_PROPERTIES_ALPHABETICALLY to make the mapper in alphabetical order.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants