Skip to content

Conversation

@alexanderchan-scality
Copy link
Contributor

@alexanderchan-scality alexanderchan-scality commented Feb 13, 2018

Adds GCP MPU Functionality

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

return next(null, destinationBucket,
objectLocationConstraint, cipherBundle, splitter,
partInfo);
} else if (partInfo && partInfo.dataStoreType === 'gcp') {
Copy link
Contributor

Choose a reason for hiding this comment

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

trivial, but these two else ifs could be combined with something like ['azure', 'gcp'].includes(partInfo.dataStoreType)

if (partInfo && partInfo.dataStoreType === 'azure') {
if (partInfo &&
(partInfo.dataStoreType === 'azure' ||
partInfo.dataStoreType === 'gcp')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

could use a similar structure as my previous comment, with the Array.includes() method

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@alexanderchan-scality
Copy link
Contributor Author

@ironman-machine
DEFAULT_BRANCH=rel/7.4
SCALITY_INTEGRATION_BRANCH=test/zenkobb
SCALITY_FEDERATION_BRANCH=ft/S3C-1114/GCP-BACKEND
SCALITY_S3_BRANCH=ft/S3C-1179/GCP-S3-MPU
try

@ironman-machine
Copy link
Contributor

Hello @alexanderchan-scality

"DEFAULT_BRANCH=rel/7.4": Success
"SCALITY_INTEGRATION_BRANCH=test/zenkobb": Success
"SCALITY_FEDERATION_BRANCH=ft/S3C-1114/GCP-BACKEND": Success
"SCALITY_S3_BRANCH=ft/S3C-1179/GCP-S3-MPU": Success
"try": Success: Try build successfully launched on 'http://ci.ironmann.io/gh/scality/Integration/19562' with the following env. args:

{
    "DEFAULT_BRANCH": "rel/7.4",
    "SCALITY_S3_BRANCH": "ft/S3C-1179/GCP-S3-MPU",
    "SCALITY_INTEGRATION_BRANCH": "test/zenkobb",
    "REPO_NAME": "S3",
    "SCALITY_FEDERATION_BRANCH": "ft/S3C-1114/GCP-BACKEND"
}

@ironman-machine
Copy link
Contributor

☀️ 👍 circleCI test succeeded!

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@alexanderchan-scality
Copy link
Contributor Author

@ironman-machine
DEFAULT_BRANCH=rel/7.4
SCALITY_INTEGRATION_BRANCH=test/zenkobb
SCALITY_FEDERATION_BRANCH=ft/S3C-1114/GCP-BACKEND
SCALITY_S3_BRANCH=ft/S3C-1179/GCP-S3-MPU
try

@ironman-machine
Copy link
Contributor

Hello @alexanderchan-scality

"DEFAULT_BRANCH=rel/7.4": Success
"SCALITY_INTEGRATION_BRANCH=test/zenkobb": Success
"SCALITY_FEDERATION_BRANCH=ft/S3C-1114/GCP-BACKEND": Success
"SCALITY_S3_BRANCH=ft/S3C-1179/GCP-S3-MPU": Success
"try": Success: Try build successfully launched on 'http://ci.ironmann.io/gh/scality/Integration/19621' with the following env. args:

{
    "DEFAULT_BRANCH": "rel/7.4",
    "SCALITY_S3_BRANCH": "ft/S3C-1179/GCP-S3-MPU",
    "SCALITY_INTEGRATION_BRANCH": "test/zenkobb",
    "REPO_NAME": "S3",
    "SCALITY_FEDERATION_BRANCH": "ft/S3C-1114/GCP-BACKEND"
}

@ironman-machine
Copy link
Contributor

☀️ 👍 circleCI test succeeded!

versioningNotImplBackends: { azure: true },
mpuMDStoredExternallyBackend: { aws_s3: true },
versioningNotImplBackends: { azure: true, gcp: true },
mpuMDStoredExternallyBackend: { aws_s3: true, gcp: true },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we actually storing MD on GCP like we do for AWS S3? Because for AWS we do initiate mpu but for GCP we emulate MPU.

Copy link
Contributor Author

@alexanderchan-scality alexanderchan-scality Feb 21, 2018

Choose a reason for hiding this comment

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

Yes. On initiate MPU, a 0-byte object will be created to hold the metadata for the final object.

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

CONFLICT (add/add): Merge conflict in tests/functional/raw-node/utils/gcpUtils.js
CONFLICT (add/add): Merge conflict in tests/functional/aws-node-sdk/test/multipleBackend/utils.js
CONFLICT (add/add): Merge conflict in lib/data/wrapper.js
CONFLICT (add/add): Merge conflict in lib/data/multipleBackendGateway.js
CONFLICT (add/add): Merge conflict in lib/data/external/GcpClient.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpUtils.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpApis/uploadPartCopy.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpApis/uploadPart.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpApis/listParts.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpApis/copyObject.js
CONFLICT (add/add): Merge conflict in lib/api/objectPutPart.js
CONFLICT (add/add): Merge conflict in constants.js

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

CONFLICT (add/add): Merge conflict in tests/functional/raw-node/utils/gcpUtils.js
CONFLICT (add/add): Merge conflict in tests/functional/aws-node-sdk/test/multipleBackend/utils.js
CONFLICT (add/add): Merge conflict in lib/data/wrapper.js
CONFLICT (add/add): Merge conflict in lib/data/multipleBackendGateway.js
CONFLICT (add/add): Merge conflict in lib/data/external/GcpClient.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpUtils.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpApis/uploadPartCopy.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpApis/uploadPart.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpApis/listParts.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpApis/copyObject.js
CONFLICT (add/add): Merge conflict in lib/api/objectPutPart.js
CONFLICT (add/add): Merge conflict in constants.js

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@rahulreddy rahulreddy force-pushed the ft/S3C-1179/GCP-S3-MPU branch from de6d448 to 76d5cdf Compare February 22, 2018 11:27
@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@alexanderchan-scality
Copy link
Contributor Author

@ironman-machine
DEFAULT_BRANCH=rel/7.4
SCALITY_INTEGRATION_BRANCH=ft/GCP
SCALITY_FEDERATION_BRANCH=ft/GCP
try

@ironman-machine
Copy link
Contributor

Hello @alexanderchan-scality

"DEFAULT_BRANCH=rel/7.4": Success
"SCALITY_INTEGRATION_BRANCH=ft/GCP": Success
"SCALITY_FEDERATION_BRANCH=ft/GCP": Success
"try": Success: Try build successfully launched on 'http://ci.ironmann.io/gh/scality/Integration/20159' with the following env. args:

{
    "REPO_NAME": "S3",
    "DEFAULT_BRANCH": "rel/7.4",
    "SCALITY_INTEGRATION_BRANCH": "ft/GCP",
    "SCALITY_FEDERATION_BRANCH": "ft/GCP",
    "SCALITY_S3_BRANCH": "ft/S3C-1179/GCP-S3-MPU"
}

JianqinWang
JianqinWang previously approved these changes Mar 9, 2018
@ironman-machine
Copy link
Contributor

💔 ☔ circleCI test failed.

@alexanderchan-scality
Copy link
Contributor Author

Passing integration build: http://ci.ironmann.io/gh/scality/Integration/20163

Adds MPU functionalities to GCP Backend
@ironman-machine ironman-machine dismissed JianqinWang’s stale review March 9, 2018 23:06

Do it again human slave!:point_right: :runner: (Oh and the pull request has been updated, by the way.)

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@alexanderchan-scality
Copy link
Contributor Author

@ironman-machine
DEFAULT_BRANCH=rel/7.4
SCALITY_INTEGRATION_BRANCH=ft/GCP
SCALITY_FEDERATION_BRANCH=ft/GCP
try

@ironman-machine
Copy link
Contributor

Hello @alexanderchan-scality

"DEFAULT_BRANCH=rel/7.4": Success
"SCALITY_INTEGRATION_BRANCH=ft/GCP": Success
"SCALITY_FEDERATION_BRANCH=ft/GCP": Success
"try": Success: Try build successfully launched on 'http://ci.ironmann.io/gh/scality/Integration/20175' with the following env. args:

{
    "REPO_NAME": "S3",
    "DEFAULT_BRANCH": "rel/7.4",
    "SCALITY_INTEGRATION_BRANCH": "ft/GCP",
    "SCALITY_FEDERATION_BRANCH": "ft/GCP",
    "SCALITY_S3_BRANCH": "ft/S3C-1179/GCP-S3-MPU"
}

@ironman-machine
Copy link
Contributor

☀️ 👍 circleCI test succeeded!

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

CONFLICT (add/add): Merge conflict in tests/functional/aws-node-sdk/test/multipleBackend/utils.js
CONFLICT (add/add): Merge conflict in lib/data/wrapper.js
CONFLICT (add/add): Merge conflict in lib/data/multipleBackendGateway.js
CONFLICT (add/add): Merge conflict in lib/data/external/GcpClient.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpUtils.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpApis/uploadPartCopy.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpApis/uploadPart.js
CONFLICT (add/add): Merge conflict in lib/data/external/GCP/GcpApis/listParts.js
CONFLICT (add/add): Merge conflict in lib/api/objectPutPart.js
CONFLICT (add/add): Merge conflict in lib/Config.js
CONFLICT (add/add): Merge conflict in constants.js

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@alexanderchan-scality
Copy link
Contributor Author

@ironman-machine
DEFAULT_BRANCH=rel/7.4
SCALITY_INTEGRATION_BRANCH=ft/GCP
SCALITY_FEDERATION_BRANCH=ft/GCP
try

@ironman-machine
Copy link
Contributor

Hello @alexanderchan-scality

"DEFAULT_BRANCH=rel/7.4": Success
"SCALITY_INTEGRATION_BRANCH=ft/GCP": Success
"SCALITY_FEDERATION_BRANCH=ft/GCP": Success
"try": Success: Try build successfully launched on 'http://ci.ironmann.io/gh/scality/Integration/20194' with the following env. args:

{
    "REPO_NAME": "S3",
    "DEFAULT_BRANCH": "rel/7.4",
    "SCALITY_INTEGRATION_BRANCH": "ft/GCP",
    "SCALITY_FEDERATION_BRANCH": "ft/GCP",
    "SCALITY_S3_BRANCH": "ft/S3C-1179/GCP-S3-MPU"
}

@ironman-machine
Copy link
Contributor

☀️ 👍 circleCI test succeeded!

@alexanderchan-scality alexanderchan-scality merged commit e5f966d into ft/GCP Mar 11, 2018
@alexanderchan-scality alexanderchan-scality deleted the ft/S3C-1179/GCP-S3-MPU branch April 18, 2018 16:50
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.

8 participants