Skip to content

Conversation

Tim-Brooks
Copy link
Contributor

This is related to #25932. Currently when we create the
GoogleCloudStorageService client we do not wrap that call in a
doPrivileged block. The call might open a connection. This commit
ensures that the creation is wrapped in a doPrivileged block.

This is related to elastic#25932. Currently when we create the
`GoogleCloudStorageService` client we do not wrap that call in a
doPrivileged block. The call might open a connection. This commit
ensures that the creation is wrapped in a doPrivileged block.
Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

LGTM.

@dadoonet
Copy link
Contributor

@tbrooks8 I see that you merged it in master branch. I believe it should be merged as well in 6.0 and 6.x branches, right?

jasontedor pushed a commit that referenced this pull request Jul 28, 2017
This is related to #25932. Currently when we create the
`GoogleCloudStorageService` client we do not wrap that call in a
doPrivileged block. The call might open a connection. This commit
ensures that the creation is wrapped in a doPrivileged block.
jasontedor pushed a commit that referenced this pull request Jul 28, 2017
This is related to #25932. Currently when we create the
`GoogleCloudStorageService` client we do not wrap that call in a
doPrivileged block. The call might open a connection. This commit
ensures that the creation is wrapped in a doPrivileged block.
@jasontedor
Copy link
Member

@dadoonet I backported this to 6.0 and 6.x.

@dadoonet
Copy link
Contributor

Something is weird. This morning I just restarted my GCE instance and ran again a snapshot creation and it succeeded:

{
  "acknowledged" : true
}

Nice right? But the problem is that I did not apply the patch on my instance. So I don't understand how it failed the first time.
Anyway, I'm going to apply this patch to make sure I don't see any regression.

@lcawl lcawl removed the v6.1.0 label Dec 12, 2017
@clintongormley clintongormley added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs and removed :Plugin Repository GCS labels Feb 14, 2018
@Tim-Brooks Tim-Brooks deleted the fix_gcs branch November 14, 2018 14:49
@jimczi jimczi added v7.0.0-beta1 and removed v7.0.0 labels Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6 participants