zstan commented on code in PR #6213:
URL: https://github.com/apache/ignite-3/pull/6213#discussion_r2195357881


##########
modules/runner/src/test/java/org/apache/ignite/internal/configuration/compatibility/framework/ConfigurationTreeScanner.java:
##########
@@ -145,12 +144,38 @@ private static ConfigNode createNodeForField(ConfigNode 
parent, Field field) {
         List<ConfigAnnotation> annotations = 
collectAdditionalAnnotations(field);
 
         EnumSet<ConfigNode.Flags> flags = extractFlags(field);
+        Set<String> legacyNames = extractLegacy(field);
+        String publicProperty = extractPublicPropertyName(field);
 
         Map<String, String> attributes = new LinkedHashMap<>();
-        attributes.put(Attributes.NAME, field.getName());
+        attributes.put(Attributes.NAME, publicProperty.isEmpty() ? 
field.getName() : publicProperty);

Review Comment:
   done



##########
modules/runner/src/test/java/org/apache/ignite/internal/configuration/compatibility/framework/ConfigurationTreeComparator.java:
##########
@@ -130,13 +155,19 @@ private static List<ConfigNode> getPath(ConfigNode node) {
      */
     private static boolean match(ConfigNode node, ConfigNode candidate) {
         return Objects.equals(candidate.kind(), node.kind())
-                && Objects.equals(candidate.name(), node.name())
+                && (Objects.equals(candidate.name(), node.name())
+                    || (node.isValue() && candidate.isValue() && 
compareUsingLegacyNames(candidate, node)))

Review Comment:
   done



-- 
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: notifications-unsubscr...@ignite.apache.org

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

Reply via email to