Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix transport error on delete session #56

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Fix transport error on delete session #56

merged 3 commits into from
Nov 21, 2023

Conversation

XmasApple
Copy link
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

@XmasApple XmasApple requested a review from rekby November 20, 2023 16:17
Copy link
Member

@rekby rekby left a comment

Choose a reason for hiding this comment

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

Need comments - how the PR fix errors

@@ -24,7 +25,8 @@ internal ResultData(Session session)

public Session Session { get; }

internal static ResultData FromProto(CreateSessionResult resultProto, Driver driver, string endpoint)
internal static ResultData FromProto(CreateSessionResult resultProto, Driver driver, string endpoint,
bool settingsDeleteOnDispose)
Copy link
Member

Choose a reason for hiding this comment

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

The settingsDeleteOnDispose arg not used

@@ -6,6 +6,7 @@ namespace Ydb.Sdk.Services.Table;

public class CreateSessionSettings : OperationRequestSettings
{
public bool DeleteOnDispose = true;
Copy link
Member

Choose a reason for hiding this comment

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

When the flag will false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

when field DeleteSessionsOnDispose in class SessionPoolConfig is false

@XmasApple XmasApple merged commit e5dec2e into main Nov 21, 2023
14 checks passed
@XmasApple XmasApple deleted the FixDeleteSession branch November 21, 2023 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants