Skip to content

ignore encryption keys for propagation - #22736

Merged
DeepDiver1975 merged 1 commit into
masterfrom
propagation-ignore-encryption
Mar 1, 2016
Merged

DeepDiver1975 merged 1 commit into
masterfrom
propagation-ignore-encryption

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

no need to have things like etags and mtimes propagator there

For #18359

cc @PVince81 @schiesbn

@icewind1991 icewind1991 added this to the 9.0-current milestone Feb 29, 2016
@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @PVince81, @DeepDiver1975 and @MorrisJobke to be potential reviewers

@PVince81

Copy link
Copy Markdown
Contributor

Interesting approach. Let me test it.

@PVince81

Copy link
Copy Markdown
Contributor

Tested, works 👍

@icewind1991 I guess this won't be backportable because it requires the new storage API ?

Second reviewer ? @nickvergessen @schiesbn @DeepDiver1975

@icewind1991

Copy link
Copy Markdown
Contributor Author

@icewind1991 I guess this won't be backportable because it requires the new storage API ?

Yes, 8.2 would require a separate approach

@LukasReschke

Copy link
Copy Markdown
Contributor

👍

@karlitschek

Copy link
Copy Markdown
Contributor

👍

@DeepDiver1975

Copy link
Copy Markdown
Contributor
14:28:10 There was 1 error:
14:28:10 
14:28:10 1) Test_DBSchema::testSchema
14:28:10 Doctrine\DBAL\DBALException: An exception occurred while executing 'SELECT alc.constraint_name,
14:28:10           alc.DELETE_RULE,
14:28:10           alc.search_condition,
14:28:10           cols.column_name "local_column",
14:28:10           cols.position,
14:28:10           r_alc.table_name "references_table",
14:28:10           r_cols.column_name "foreign_column"
14:28:10      FROM user_cons_columns cols
14:28:10 LEFT JOIN user_constraints alc
14:28:10        ON alc.constraint_name = cols.constraint_name
14:28:10 LEFT JOIN user_constraints r_alc
14:28:10        ON alc.r_constraint_name = r_alc.constraint_name
14:28:10 LEFT JOIN user_cons_columns r_cols
14:28:10        ON r_alc.constraint_name = r_cols.constraint_name
14:28:10       AND cols.position = r_cols.position
14:28:10     WHERE alc.constraint_name = cols.constraint_name
14:28:10       AND alc.constraint_type = 'R'
14:28:10       AND alc.table_name = 'oc_storages'
14:28:10  ORDER BY alc.constraint_name ASC, cols.position ASC':
14:28:10 
14:28:10 Execution aborted after 15 minutes
14:28:10 
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:119
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:836
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/db/connection.php:183
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:766
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:319
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:284
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:268
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/db/mdb2schemawriter.php:56
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/db/mdb2schemamanager.php:57
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/db.php:161
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/dbschema.php:74
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/dbschema.php:57
14:28:10 
14:28:10 Caused by
14:28:10 PHP_Invoker_TimeoutException: Execution aborted after 15 minutes
14:28:10 
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:212
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php:116
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:833
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/db/connection.php:183
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:766
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:319
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:284
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:268
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/db/mdb2schemawriter.php:56
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/db/mdb2schemamanager.php:57
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/db.php:161
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/dbschema.php:74
14:28:10 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/dbschema.php:57
14:28:10 
14:28:10 --
14:28:10 
14:28:10 There were 201 skipped tests:

@DeepDiver1975

Copy link
Copy Markdown
Contributor

This oracle issue seems unrelated ....

DeepDiver1975 added a commit that referenced this pull request Mar 1, 2016
@DeepDiver1975
DeepDiver1975 merged commit caf6c43 into master Mar 1, 2016
@DeepDiver1975
DeepDiver1975 deleted the propagation-ignore-encryption branch March 1, 2016 07:19
@schiessle

Copy link
Copy Markdown
Contributor

This will fail if the admin changed the root of the encryption keys, which is possible since oC 8.2 as some kind of "key-storage light".

In general I would prefer not to have a per-app or per-folder exception but a more general rule to skip etag propagation, e.g. for everything outside data/<user>/files. Nothing outside the files directory needs a etag.

@PVince81

PVince81 commented Mar 1, 2016

Copy link
Copy Markdown
Contributor

@schiesbn did you manage to make it fail ?
From looking at the code it only looks like those users will not benefit from the performance increase, nothing critical.

@PVince81

PVince81 commented Mar 1, 2016

Copy link
Copy Markdown
Contributor

Raised #22758 to make it broader.

Goal of this current PR was to limit the scope of the fix to avoid potential regressions.

@schiessle

Copy link
Copy Markdown
Contributor

From looking at the code it only looks like those users will not benefit from the performance increase, nothing critical.

That's what I mean with 'fail' 😉

@lock

lock Bot commented Aug 7, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants