Browse Source

[beeswax] Increase wait-time for create/insert partition table

Jenny Kim 10 năm trước cách đây
mục cha
commit
63c05500ae
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      apps/beeswax/src/beeswax/tests.py

+ 2 - 4
apps/beeswax/src/beeswax/tests.py

@@ -1685,8 +1685,7 @@ for x in sys.stdin:
       INSERT OVERWRITE TABLE test_partitions_int PARTITION (b=300)
         SELECT 301 AS a FROM test_partitions LIMIT 1;
     """
-    resp = _make_query(self.client, hql, database=self.db_name)
-    wait_for_query_to_finish(self.client, resp, max=120.0)
+    resp = _make_query(self.client, hql, wait=True, local=False, max=180.0, database=self.db_name)
 
     finish = conf.SAMPLE_TABLE_MAX_PARTITIONS.set_for_testing(2)
     try:
@@ -1702,8 +1701,7 @@ for x in sys.stdin:
     hql = """
       CREATE TABLE test_partitions_empty (a STRING) PARTITIONED BY (b STRING);
     """
-    resp = _make_query(self.client, hql, database=self.db_name)
-    wait_for_query_to_finish(self.client, resp, max=60.0)
+    resp = _make_query(self.client, hql, wait=True, local=False, max=60.0, database=self.db_name)
 
     finish = conf.SAMPLE_TABLE_MAX_PARTITIONS.set_for_testing(2)
     try: