Skip to content

Commit

Permalink
fix(spark-lineage): default timeout for future responses
Browse files Browse the repository at this point in the history
  • Loading branch information
deepgarg-visa committed Jul 20, 2024
1 parent 96fb2f7 commit fae44d1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ public void completed(SimpleHttpResponse response) {

@Override
public void failed(Exception ex) {
responseLatch.countDown();
if (callback != null) {
try {
callback.onFailure(ex);
Expand All @@ -261,6 +262,7 @@ public void failed(Exception ex) {

@Override
public void cancelled() {
responseLatch.countDown();
if (callback != null) {
try {
callback.onFailure(new RuntimeException("Cancelled"));
Expand Down Expand Up @@ -344,6 +346,7 @@ public void completed(SimpleHttpResponse response) {

@Override
public void failed(Exception ex) {
responseLatch.countDown();
if (callback != null) {
try {
callback.onFailure(ex);
Expand All @@ -355,6 +358,7 @@ public void failed(Exception ex) {

@Override
public void cancelled() {
responseLatch.countDown();
if (callback != null) {
try {
callback.onFailure(new RuntimeException("Cancelled"));
Expand Down

0 comments on commit fae44d1

Please sign in to comment.