You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2022/11/29 07:04:12 UTC

[GitHub] [helix] BoyuLi4 opened a new issue, #2296: Possible Json Ordering Permutations Problem in Tests

BoyuLi4 opened a new issue, #2296:
URL: https://github.com/apache/helix/issues/2296

   ### Describe the bug
   These tests has flakiness with some reason
   ```
   org.apache.helix.rest.server.json.cluster.TestClusterInfo#whenSerializingClusterInfo
   org.apache.helix.rest.server.json.cluster.TestClusterTopology#whenSerializingClusterTopology
   org.apache.helix.rest.server.json.instance.TestStoppableCheck#whenSerializingStoppableCheck
   ```
   
   ### To Reproduce
   The flakiness was found with [NonDex.](https://github.com/TestingResearchIllinois/NonDex))
   After installing NonDex and run the following code.
   cd nifi
   ```
   mvn install -pl helix-rest -am -DskipTests
   mvn -pl helix-rest edu.illinois:nondex- 
     maven-plugin:2.1:nondex - 
     Dtest=org.apache.helix.rest.server.json.cluster.TestClusterInfo#whenSerializingClusterInfo
   ```
   
   ### Expected behavior
   The test flakiness is due to comparisons between Json Strings.
   However, JsonObject does not guarantee entry orders, its object is an unordered set of name/value pairs, and internal permutations may occur in the output as JSON String.
   
   ### Additional context
   Null
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


Re: [I] Possible Json Ordering Permutations Problem in Tests [helix]

Posted by "junkaixue (via GitHub)" <gi...@apache.org>.
junkaixue closed issue #2296: Possible Json Ordering Permutations Problem in Tests
URL: https://github.com/apache/helix/issues/2296


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org