Skip to content

Commit

Permalink
chore: fix review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
arpan14 committed Sep 28, 2023
1 parent 0bc1c03 commit e2059d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1704,9 +1704,8 @@ private PooledSession pollUninterruptiblyWithTimeout(
ErrorCode.RESOURCE_EXHAUSTED,
"Timed out after waiting "
+ acquireSessionTimeout.toMillis()
+ "ms for acquiring session. To mitigate error increase the timeout duration at"
+ " session pool option `acquireSessionTimeout` or increase the "
+ "number of sessions in the session pool.");
+ "ms for acquiring session. To mitigate error SessionPoolOptions#setAcquireSessionTimeout(Duration) to set a higher timeout"
+ " or increase the number of sessions in the session pool.");
}
return null;
} catch (ExecutionException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,14 @@
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.junit.runners.MethodSorters;
import org.threeten.bp.Duration;

@Category(SlowTest.class)
@RunWith(JUnit4.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class BatchCreateSessionsSlowTest {
private static final String TEST_PROJECT = "my-project";
private static final String TEST_DATABASE_ROLE = "my-role";
Expand Down

0 comments on commit e2059d8

Please sign in to comment.