-
Notifications
You must be signed in to change notification settings - Fork 95
Inject Session Time Out To The Remote Operation Constructors #1597
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
Conversation
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
|
Failing test is unrelated. Example merged PR: #1593 |
ZetaTom
left a comment
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.
Overall, this seems to be working as expected. There are a few minor things that I would suggest changing, for which I've added some comments.
library/src/main/java/com/owncloud/android/lib/resources/e2ee/StoreMetadataV2RemoteOperation.kt
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/files/CreateFolderRemoteOperation.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/files/RemoveFileRemoteOperation.java
Outdated
Show resolved
Hide resolved
...rc/main/java/com/owncloud/android/lib/resources/files/RestoreFileVersionRemoteOperation.java
Outdated
Show resolved
Hide resolved
...main/java/com/owncloud/android/lib/resources/trashbin/RemoveTrashbinFileRemoteOperation.java
Outdated
Show resolved
Hide resolved
...ain/java/com/owncloud/android/lib/resources/trashbin/RestoreTrashbinFileRemoteOperation.java
Outdated
Show resolved
Hide resolved
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
|
stable-IT test failed: https://www.kaminsky.me/nc-dev/android-library-integrationTests/3603-IT-stable-15-53/debug/ |
|
@tobiasKaminsky @AndyScherzinger Can we merge this PR? Since unrelated tests are keep failing for previously merged PRs as well. |
ZetaTom
left a comment
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.
Apart from the new default timeouts, everything looks fine. I haven't noticed any change in behaviour when running tests. However, we need to consider whether the new timeouts have any unintended consequences.
|
I think increasing SYNC_READ_TIMEOUT and SYNC_CONNECTION_TIMEOUT values should not cause any issues, and it is straightforward changes. However, if there’s a argument against this, it would be great to discuss it further. Any code modification can sometimes lead to unexpected behavior :) |
|
master-IT test failed: https://www.kaminsky.me/nc-dev/android-library-integrationTests/3616-IT-master-18-42/debug/ |
|
stable-IT test failed: https://www.kaminsky.me/nc-dev/android-library-integrationTests/3616-IT-stable-18-44/debug/ |
|
/backport to stable-2.19 |
The client must be able to modify the session timeout according to their needs. For example, if the server instance slow, some network operations may fail. This could lead to issues, especially during end-to-end (E2E) operations.
Changes
SessionTimeOut data class has been added.
The default SessionTimeOut is utilized for each remote operation in the first constructor.
A second constructor has been added to allow custom SessionTimeOut injection for each remote operation.
How to Test?
Files client must build without any compile error
Files client must be able to configure SessionTimeOut for any remote operations