GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: update max_in_use_session at 10 mins interval by surbhigarg92 · Pull Request #3570 · googleapis/java-spanner

This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Conversation

@surbhigarg92

@surbhigarg92 surbhigarg92 commented Dec 26, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR fixes the max_in_use_session value. Currently this value is only reset at client initialization.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@surbhigarg92
surbhigarg92 requested a review from a team December 26, 2024 10:48
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/java-spanner API. labels Dec 26, 2024
@surbhigarg92
surbhigarg92 force-pushed the max_in_use_session branch from cce4419 to 2eec9a6 Compare December 27, 2024 05:14
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Dec 27, 2024
@surbhigarg92
fix: update max_in_use_session at 10 mins interval
ab9f3c5
@surbhigarg92
surbhigarg92 force-pushed the max_in_use_session branch from 2eec9a6 to ab9f3c5 Compare December 27, 2024 06:05
rahul2393
rahul2393 approved these changes Dec 30, 2024
View reviewed changes
sakthivelmanii
sakthivelmanii reviewed Dec 30, 2024
View reviewed changes
Comment thread google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPool.java Outdated

// Does various pool maintenance activities.
void maintainPool() {
Instant currTime = clock.instant();

@sakthivelmanii sakthivelmanii Dec 30, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

nit: Do we really have to initialize here? Can we initialize before if statement inside synchronized block so that we will get exact current time. It would be okay to initialize here if we don't have synchronized block.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@sakthivelmanii sakthivelmanii Dec 30, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I just noticed that go does the same way where they are assigning right before if statement. https://github.com/googleapis/google-cloud-go/blob/main/spanner/session.go#L1775

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@surbhigarg92 surbhigarg92 Dec 31, 2024

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

this currTime is used at multiple places. Inside synchronized block and outside as well. It will be an overkill if we initialize at multiple times. Inside block and outside. WDYT ?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@surbhigarg92
review comments
cb3495e
@surbhigarg92 surbhigarg92 added the automerge Merge the pull request once unit tests and other checks pass. label Dec 31, 2024
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit cc1753d into googleapis:main Dec 31, 2024
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Dec 31, 2024
@release-please release-please Bot mentioned this pull request Dec 31, 2024
chore(main): release 6.84.0 #3556
Merged
svc-squareup-copybara pushed a commit to cashapp/misk that referenced this pull request Jan 6, 2025
@github-cash-renovate-jvm-2 @svc-squareup-copybara
This PR contains the following updates:
626e46e
| Package | Type | Package file | Manager | Update | Change |
|---|---|---|---|---|---|
|
[com.google.cloud:google-cloud-spanner](https://github.com/googleapis/java-spanner)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`6.83.0` -> `6.84.0` |
|
[org.assertj:assertj-core](https://assertj.github.io/doc/#assertj-core)
([source](https://github.com/assertj/assertj)) | dependencies |
misk/gradle/libs.versions.toml | gradle | patch | `3.27.1` -> `3.27.2` |
| [software.amazon.awssdk:sdk-core](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.29.44` -> `2.29.45` |
|
[software.amazon.awssdk:dynamodb-enhanced](https://aws.amazon.com/sdkforjava)
| dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.29.44` -> `2.29.45` |
| [software.amazon.awssdk:dynamodb](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.29.44` -> `2.29.45` |
| [software.amazon.awssdk:aws-core](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.29.44` -> `2.29.45` |
| [software.amazon.awssdk:bom](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.29.44` -> `2.29.45` |
| [software.amazon.awssdk:auth](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.29.44` -> `2.29.45` |

---

### Release Notes

<details>
<summary>googleapis/java-spanner
(com.google.cloud:google-cloud-spanner)</summary>

###
[`v6.84.0`](https://github.com/googleapis/java-spanner/blob/HEAD/CHANGELOG.md#6840-2025-01-06)

##### Features

- Add support for ARRAY\<STRUCT> to CloudCilentExecutor
([#&#8203;3544](googleapis/java-spanner#3544))
([6cbaf7e](googleapis/java-spanner@6cbaf7e))
- Add transaction runner for connections
([#&#8203;3559](googleapis/java-spanner#3559))
([5a1be3d](googleapis/java-spanner@5a1be3d))
- Exposing InstanceType in Instance configuration (to define PROVISIONED
or FREE spanner instance)
([8d295c4](googleapis/java-spanner@8d295c4))
- Improve tracing by adding attributes
([#&#8203;3576](googleapis/java-spanner#3576))
([eee333b](googleapis/java-spanner@eee333b))
- **spanner:** Add jdbc support for external hosts
([#&#8203;3536](googleapis/java-spanner#3536))
([801346a](googleapis/java-spanner@801346a))

##### Bug Fixes

- AsyncTransactionManager did not always close the session
([#&#8203;3580](googleapis/java-spanner#3580))
([d9813a0](googleapis/java-spanner@d9813a0))
- Retry specific internal errors
([#&#8203;3565](googleapis/java-spanner#3565))
([b9ce1a6](googleapis/java-spanner@b9ce1a6))
- Update max_in_use_session at 10 mins interval
([#&#8203;3570](googleapis/java-spanner#3570))
([cc1753d](googleapis/java-spanner@cc1753d))

##### Dependencies

- Update opentelemetry.version to v1.45.0
([#&#8203;3531](googleapis/java-spanner#3531))
([78c82ed](googleapis/java-spanner@78c82ed))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 6pm every weekday,before 2am
every weekday" in timezone Australia/Melbourne, Automerge - At any time
(no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

GitOrigin-RevId: 89058b2cef6e62653b7c19ce971a25a1dff13e6b
@suztomo suztomo mentioned this pull request Mar 20, 2025
protobuf ci 4.29.x #3703
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@sakthivelmanii sakthivelmanii sakthivelmanii left review comments
@rahul2393 rahul2393 rahul2393 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: spanner Issues related to the googleapis/java-spanner API. size: m Pull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@surbhigarg92 @rahul2393 @sakthivelmanii
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.