GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Spanner: RESOURCE_EXHAUSTED No session available in the pool. · Issue #3786 · googleapis/google-cloud-java Closed Labels api: spannerIssues related to the Spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue. DescriptionI am using the Spanner client library for Java and i configure the client using Spring (Java 10 and Docker) After a while, the application start to log the following message but i don't understand why. The application concurrency is minimal. It's seem the sessions aren't reused. I monitor the session with Stackdriver and they are below 20. If i remove setFailIfPoolExhausted the applicacion hang instead of throwing exception RESOURCE_EXHAUSTED.
@Configuration public class SpannerConfig { @Value("${datasource.instanceId}") private String instance; @Value("${datasource.databaseId}") private String database; @Bean public Spanner spannerService() throws IOException { SessionPoolOptions sessionPoolOptions = SessionPoolOptions.newBuilder() .setFailIfPoolExhausted() .setMinSessions(5) .setMaxSessions(100) .build(); SpannerOptions options = SpannerOptions.newBuilder() .setSessionPoolOption(sessionPoolOptions) .build(); return options.getService(); } @Bean public DatabaseClient spannerClient(Spanner spannerService) { DatabaseId databaseId = DatabaseId.of(spannerService.getOptions().getProjectId(), instance, database); return spannerService.getDatabaseClient(databaseId); } } Activity
MetadataMetadataAssigneesLabelsapi: spannerIssues related to the Spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |