Skip to content

Conversation

@justinuang
Copy link
Contributor

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 12, 2020
@justinuang
Copy link
Contributor Author

After this is approved, I will also copy the changes over to https://github.com/googleapis/gax-java/blob/master/gax/src/main/java/com/google/api/gax/rpc/Watchdog.java#L114

@justinuang
Copy link
Contributor Author

@igorbernstein2

Copy link
Collaborator

@igorbernstein2 igorbernstein2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. But please backport this to the bigtable-1x branch as well

@codecov
Copy link

codecov bot commented May 12, 2020

Codecov Report

Merging #2529 into master will decrease coverage by 0.00%.
The diff coverage is 60.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2529      +/-   ##
============================================
- Coverage     62.34%   62.34%   -0.01%     
- Complexity     1636     1637       +1     
============================================
  Files           200      200              
  Lines         10129    10134       +5     
  Branches       1035     1035              
============================================
+ Hits           6315     6318       +3     
- Misses         3351     3353       +2     
  Partials        463      463              
Impacted Files Coverage Δ Complexity Δ
...oud/bigtable/grpc/BigtableTableAdminGCJClient.java 83.33% <0.00%> (ø) 20.00 <0.00> (ø)
...le/hbase/wrappers/veneer/AdminClientVeneerApi.java 100.00% <ø> (ø) 9.00 <0.00> (ø)
...che/hadoop/hbase/client/AbstractBigtableAdmin.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...va/com/google/cloud/bigtable/grpc/io/Watchdog.java 92.45% <60.00%> (-1.61%) 12.00 <1.00> (+1.00) ⬇️
...bigtable/grpc/BigtableTableAdminClientWrapper.java 100.00% <100.00%> (ø) 23.00 <2.00> (ø)
.../hbase/wrappers/classic/AdminClientClassicApi.java 100.00% <100.00%> (ø) 9.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 73f5c5e...2562091. Read the comment docs.

@justinuang
Copy link
Contributor Author

@googlebot rescan

Copy link
Collaborator

@igorbernstein2 igorbernstein2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@igorbernstein2 igorbernstein2 merged commit 7cb20f1 into googleapis:master May 12, 2020
@justinuang justinuang deleted the catch-watchdog-exceptions branch May 12, 2020 21:15
justinuang added a commit to justinuang/java-bigtable-hbase that referenced this pull request May 12, 2020
…s running (googleapis#2529)

* Catch and log all exceptions in Watchdog runnable to ensure it never stops running

See https://stackoverflow.com/questions/6894595/scheduledexecutorservice-exception-handling for details

* runUnsafe
igorbernstein2 pushed a commit that referenced this pull request May 12, 2020
…s running (#2529) (#2531)

* Catch and log all exceptions in Watchdog runnable to ensure it never stops running

See https://stackoverflow.com/questions/6894595/scheduledexecutorservice-exception-handling for details

* runUnsafe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If an exception is thrown in Watchdog#run, future executions will never run

3 participants