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

e2e: meta sync #164

Merged
merged 8 commits into from
Nov 8, 2018
Merged

e2e: meta sync #164

merged 8 commits into from
Nov 8, 2018

Conversation

weekface
Copy link
Contributor

@weekface weekface commented Nov 5, 2018

This pr adds the e2e specs to ensure meta informations are synced properly.

@tennix @onlymellb @xiaojingchen PTAL

@weekface
Copy link
Contributor Author

weekface commented Nov 5, 2018

/run-e2e-tests

@weekface
Copy link
Contributor Author

weekface commented Nov 6, 2018

/run-e2e-tests

return false, nil
}
for _, member := range members.Members {
if member.Name == podName {
Copy link
Member

Choose a reason for hiding this comment

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

What if there is no member name matching pod name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

}
for _, store := range stores.Stores {
addr := store.Store.GetAddress()
if strings.Split(addr, ".")[0] == podName {
Copy link
Member

Choose a reason for hiding this comment

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

Also what if no matching?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

for _, vol := range pod.Spec.Volumes {
if vol.PersistentVolumeClaim != nil {
pvcName = vol.PersistentVolumeClaim.ClaimName
break
Copy link
Contributor

Choose a reason for hiding this comment

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

if the pod have multiple pvcs?

Copy link
Contributor Author

@weekface weekface Nov 7, 2018

Choose a reason for hiding this comment

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

currently, there are no multiple pvcs

Copy link
Member

@tennix tennix left a comment

Choose a reason for hiding this comment

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

LGTM

@weekface
Copy link
Contributor Author

weekface commented Nov 8, 2018

/run-e2e-tests

1 similar comment
@weekface
Copy link
Contributor Author

weekface commented Nov 8, 2018

/run-e2e-tests

@tennix tennix merged commit 9f77d54 into pingcap:master Nov 8, 2018
queenliuxx pushed a commit to queenliuxx/tidb-operator that referenced this pull request Dec 19, 2018
@weekface weekface deleted the e2e-meta-sync branch June 21, 2019 08:42
yahonda pushed a commit that referenced this pull request Dec 27, 2021
fgksgf added a commit to fgksgf/tidb-operator that referenced this pull request Dec 23, 2024
Co-authored-by: Cody (Xuecheng) Zhang <csuzhangxc@gmail.com>
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.

3 participants