Skip to content

Lazy initialize external storages - #11694

Merged
LukasReschke merged 1 commit into
masterfrom
extstorage-lazyinit
Oct 22, 2014
Merged

LukasReschke merged 1 commit into
masterfrom
extstorage-lazyinit

Conversation

@PVince81

Copy link
Copy Markdown
Contributor

Fixed the following external storages to not connect in the constructor,
but do it on-demand when getConnection() is called.

  • S3
  • SWIFT
  • SFTP

Prerequisite for the fix of #10820

Please review/test @butonic @bantu @icewind1991

I tested SFTP (manual+unit tests) and SWIFT (manual+unit tests against devstack) and this change did not break them.

@icewind1991

Copy link
Copy Markdown
Contributor

Code looks good 👍

@LukasReschke

Copy link
Copy Markdown
Contributor

Rebase please.

Fixed the following external storages to not connect in the constructor,
but do it on-demand when getConnection() is called.
- S3
- SWIFT
- SFTP
@PVince81
PVince81 force-pushed the extstorage-lazyinit branch from fa65511 to 075e8d8 Compare October 22, 2014 10:42
@PVince81

Copy link
Copy Markdown
Contributor Author

Rebased

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 9 new issues, 8 updated code elements

@ghost

ghost commented Oct 22, 2014

Copy link
Copy Markdown

🚀 Test PASSed. 🚀
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/896/
🚀 Test PASSed. 🚀

@LukasReschke

Copy link
Copy Markdown
Contributor

👍 🎫

LukasReschke added a commit that referenced this pull request Oct 22, 2014
@LukasReschke
LukasReschke merged commit fe912ca into master Oct 22, 2014
@LukasReschke
LukasReschke deleted the extstorage-lazyinit branch October 22, 2014 12:12
@PVince81

Copy link
Copy Markdown
Contributor Author

@karlitschek backport to stable7 ? It only affects SFTP, SWIFT and S3 and is a prerequisite for #10820

@karlitschek

Copy link
Copy Markdown
Contributor

yes. please backport

@PVince81

Copy link
Copy Markdown
Contributor Author

I'm on it. There are some conflicts.

@PVince81

Copy link
Copy Markdown
Contributor Author

Backported to stable7 as 09d80ac
I also re-ran the unit tests for SWIFT and SFTP.

@butonic

butonic commented Oct 22, 2014

Copy link
Copy Markdown
Contributor

💣 💣💣 completely breaks s3 💣 💣 💣
$base_url and $param is not remembered as a global variable (and thun used in the connection)

have not had a look at swift or SFTP

please be more thorough when testing files external stuff ...

@LukasReschke

Copy link
Copy Markdown
Contributor

Filed #11714 to track this properly.

Apologize for missing that on the review, shouldn't have happened and will try hard to prevent such failures in the future. - Seems like I should setup a S3 account...
This is clearly not only @PVince81's fault but also I and @icewind1991 failed here.

Thanks a lot for catching that and sorry again. - I'm just annoyed about this error as you are.

@PVince81

Copy link
Copy Markdown
Contributor Author

I didn't test S3. The US buckets are way too slow...
Will fix the issue.

@LukasReschke

Copy link
Copy Markdown
Contributor

Any chance to have the external storage tests also running on Jenkins? - Wouldn't even have to run on all PRs but at least on the release branches it might be a nice addition.

\cc @DeepDiver1975

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants