Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 606cd13

Browse filesBrowse files
authored
New library version to address failure. (GoogleCloudPlatform#2057)
* New library version to address failure. * Encoded strings for library call * Give changes a bit longer to finish * fix lint error * Update main.py * Paren was missing
1 parent 01e9b27 commit 606cd13
Copy full SHA for 606cd13

File tree

Expand file treeCollapse file tree

3 files changed

+6
-4
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+6
-4
lines changed

‎bigtable/hello_happybase/main.py

Copy file name to clipboardExpand all lines: bigtable/hello_happybase/main.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ def main(project_id, instance_id, table_name):
7272
#
7373
# https://cloud.google.com/bigtable/docs/schema-design
7474
row_key = 'greeting{}'.format(i)
75-
table.put(row_key, {column_name: value})
75+
table.put(
76+
row_key, {column_name.encode('utf-8'): value.encode('utf-8')}
77+
)
7678
# [END writing_rows]
7779

7880
# [START getting_a_row]
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-cloud-happybase==0.32.1
1+
google-cloud-happybase==0.33.0

‎bigtable/metricscaler/metricscaler_test.py

Copy file name to clipboardExpand all lines: bigtable/metricscaler/metricscaler_test.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ def test_scale_bigtable():
4646

4747
scale_bigtable(BIGTABLE_INSTANCE, BIGTABLE_INSTANCE, True)
4848

49-
time.sleep(3)
49+
time.sleep(10)
5050
cluster.reload()
5151

5252
new_node_count = cluster.serve_nodes
5353
assert (new_node_count == (original_node_count + SIZE_CHANGE_STEP))
5454

5555
scale_bigtable(BIGTABLE_INSTANCE, BIGTABLE_INSTANCE, False)
56-
time.sleep(3)
56+
time.sleep(10)
5757
cluster.reload()
5858
final_node_count = cluster.serve_nodes
5959
assert final_node_count == original_node_count

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.