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

SMBJ not working when Azure Files are used #718

Open
JozefDropco opened this issue Jun 16, 2022 · 1 comment
Open

SMBJ not working when Azure Files are used #718

JozefDropco opened this issue Jun 16, 2022 · 1 comment

Comments

@JozefDropco
Copy link
Contributor

As there is a code which does validation server details in SMBProtocolNegotiator for given "share" there must be always only one server which corresponds to the share name. This is not true for Azure Files where LRS (locally redundant storage) is selected. For consecutive requests for connection there might be different server responding (different GUID). We have faced it now. Connection as Poolable so it means whenever a connection is really closed SmbClient should unregister itself the server. Leaving it completely outside for user of this library is not easy to maintain the code itself. When connection to server is really closed a cleanup activity should be performed also on serverList.

@JozefDropco
Copy link
Contributor Author

I have read #644 but this seems to me as another problem where the connection is still opened and you try to do operations on open connection. In my case I am closing connection after "batch" of operations as long term connections are eating resources and should be avoided

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

No branches or pull requests

1 participant