1
0
فهرست منبع

HADOOP-11549. flaky test detection tool failed to handle special control characters in test result. Contributed by Yongjun Zhang.

Akira Ajisaka 10 سال پیش
والد
کامیت
5f4ef2d13f
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 2 2
      dev-support/determine-flaky-tests-hadoop.py
  2. 3 0
      hadoop-common-project/hadoop-common/CHANGES.txt

+ 2 - 2
dev-support/determine-flaky-tests-hadoop.py

@@ -92,10 +92,10 @@ def load_url_data(url):
     ourl = urllib.request.urlopen(url)
     ourl = urllib.request.urlopen(url)
     codec = ourl.info().get_param('charset')
     codec = ourl.info().get_param('charset')
     content = ourl.read().decode(codec)
     content = ourl.read().decode(codec)
-    data = simplejson.loads(content)
+    data = simplejson.loads(content, strict=False)
   else:
   else:
     ourl = urllib2.urlopen(url)
     ourl = urllib2.urlopen(url)
-    data = simplejson.load(ourl)
+    data = simplejson.load(ourl, strict=False)
   return data
   return data
  
  
 """ List all builds of the target project. """
 """ List all builds of the target project. """

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -838,6 +838,9 @@ Release 2.7.0 - UNRELEASED
     HADOOP-11547. hadoop-common native compilation fails on Windows due to
     HADOOP-11547. hadoop-common native compilation fails on Windows due to
     missing support for __attribute__ declaration. (cnauroth)
     missing support for __attribute__ declaration. (cnauroth)
 
 
+    HADOOP-11549. flaky test detection tool failed to handle special control
+    characters in test result. (Yongjun Zhang via aajisaka)
+
 Release 2.6.1 - UNRELEASED
 Release 2.6.1 - UNRELEASED
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES