predator4ann commented on code in PR #7697:
URL: https://github.com/apache/gravitino/pull/7697#discussion_r2214694615


##########
integration-test-common/src/test/java/org/apache/gravitino/integration/test/util/DownloaderUtils.java:
##########
@@ -34,11 +38,25 @@ public class DownloaderUtils {
 
   public static final Logger LOG = 
LoggerFactory.getLogger(DownloaderUtils.class);
 
+  // Supported driver types and their corresponding version extraction patterns
+  private static final Pattern MYSQL_DRIVER_PATTERN =
+      Pattern.compile("mysql-connector-java-([\\d.]+)\\.jar");
+  private static final Pattern POSTGRESQL_DRIVER_PATTERN =
+      Pattern.compile("postgresql-([\\d.]+)\\.jar");
+
   public static void downloadFile(String fileUrl, String... 
destinationDirectories)
       throws IOException {
+
+    // Check and clean driver version conflicts before downloading
+    try {
+      checkAndCleanDriverConflicts(fileUrl, destinationDirectories);

Review Comment:
   fine



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to