Skip to content
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

Fix the broken sample path in API #1805

Merged
merged 2 commits into from
Aug 11, 2019
Merged

Fix the broken sample path in API #1805

merged 2 commits into from
Aug 11, 2019

Conversation

IronPan
Copy link
Member

@IronPan IronPan commented Aug 10, 2019

Related change b476a84

/hold
Need investigate why test doesn't catch it.

/assign @numerology @gaoning777


This change is Reviewable

Related change b476a84

/hold
Need investigate why test doesn't catch it. 

/assign @numerology @hongye-sun
@numerology
Copy link

Sorry I'm not aware of this part of test.
May I ask where the related backend test lives? Thanks!

@numerology
Copy link

/lgtm

@IronPan
Copy link
Member Author

IronPan commented Aug 11, 2019

@numerology All presubmit tests should fail because API server should in theory fail to start.

@IronPan
Copy link
Member Author

IronPan commented Aug 11, 2019

With further investigation, it appears these lines didn't fully delete the pipeline's artifact/metadata GCE PD

ks delete default -c pipeline

The PD backing metadata store is name with ${KFAPP}-storage-metadata-store
When reinstall the pipeline, the PD got reused and the metadata got recovered.

The API server decides if needs to load samples based on the HaveSamplesLoaded flag in the DB

haveSamplesLoaded, err := resourceManager.HaveSamplesLoaded()

Because the DB's PD is reused, the flag is still true after reinstall, thus it skipped to load the samples.

IronPan added a commit that referenced this pull request Aug 11, 2019
For more context see 
#1805 (comment)

We could remove this fix when ksonnet is deprecated.
@IronPan
Copy link
Member Author

IronPan commented Aug 11, 2019

/hold cancel

@IronPan
Copy link
Member Author

IronPan commented Aug 11, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: IronPan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 5793cb2 into master Aug 11, 2019
@gaoning777
Copy link
Contributor

With further investigation, it appears these lines didn't fully delete the pipeline's artifact/metadata GCE PD

ks delete default -c pipeline

The PD backing metadata store is name with ${KFAPP}-storage-metadata-store
When reinstall the pipeline, the PD got reused and the metadata got recovered.

The API server decides if needs to load samples based on the HaveSamplesLoaded flag in the DB

haveSamplesLoaded, err := resourceManager.HaveSamplesLoaded()

Because the DB's PD is reused, the flag is still true after reinstall, thus it skipped to load the samples.

Thanks for the investigation. This is really important for the test to catch the errors.

k8s-ci-robot pushed a commit that referenced this pull request Aug 12, 2019
For more context see 
#1805 (comment)

We could remove this fix when ksonnet is deprecated.
@IronPan IronPan deleted the IronPan-patch-5 branch August 16, 2019 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants