Skip to content

Commit

Permalink
Merge pull request #2409 from atlanhq/batch-error
Browse files Browse the repository at this point in the history
fix: Use the strings to validate insteaqd of class as it is breaking
  • Loading branch information
sumandas0 authored Oct 11, 2023
2 parents 0db348e + d2f5c51 commit a96af51
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package org.apache.atlas;

import com.datastax.oss.driver.api.core.servererrors.InvalidQueryException;
import com.google.common.annotations.VisibleForTesting;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
Expand Down Expand Up @@ -174,7 +173,7 @@ public boolean checkForBatchTooLargeError(Throwable t) {
String message = currentCause.getMessage();
if (message != null &&
message.contains("Batch too large") &&
currentCause.getClass().equals(InvalidQueryException.class)) {
currentCause.getClass().getSimpleName().equals("InvalidQueryException")) {
return true;
}
currentCause = currentCause.getCause();
Expand Down

0 comments on commit a96af51

Please sign in to comment.