pjfanning commented on code in PR #7128:
URL: https://github.com/apache/hadoop/pull/7128#discussion_r1816396488


##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestPath.java:
##########
@@ -404,6 +404,8 @@ public void testGetName() {
   
   @Test (timeout = 30000)
   public void testAvroReflect() throws Exception {
+    // Avro expects explicitely stated, trusted packages used for 
(de-)serialization
+    System.setProperty("org.apache.avro.SERIALIZABLE_PACKAGES", 
"org.apache.hadoop.fs.Path");

Review Comment:
   the property is for package names as opposed to class names - should really 
have value like `""org.apache.hadoop.fs"`



##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestPath.java:
##########
@@ -404,6 +404,8 @@ public void testGetName() {
   
   @Test (timeout = 30000)
   public void testAvroReflect() throws Exception {
+    // Avro expects explicitely stated, trusted packages used for 
(de-)serialization
+    System.setProperty("org.apache.avro.SERIALIZABLE_PACKAGES", 
"org.apache.hadoop.fs.Path");

Review Comment:
   the property is for package names as opposed to class names - should really 
have value like `"org.apache.hadoop.fs"`



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to