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

[da-vinci][controller] Add check to ensure version is valid before ingestion #1079

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tylerhu3
Copy link

@tylerhu3 tylerhu3 commented Jul 24, 2024

Summary, imperative, start upper case, don't end with a period

Add check to ensure version is valid before ingestion

Resolves #657

How was this PR tested?

Ran "./gradlew check --continue"

Does this PR introduce any user-facing changes?

  • [ X] No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

@tylerhu3 tylerhu3 closed this Jul 24, 2024
@tylerhu3 tylerhu3 reopened this Jul 24, 2024
@tylerhu3 tylerhu3 closed this Jul 24, 2024
@tylerhu3 tylerhu3 reopened this Jul 24, 2024
if (getStore(clusterName, storeName).isDaVinciPushStatusStoreEnabled()) {
Set<Map.Entry<String, Integer>> versionSet = getCurrentVersionsForMultiColos(
clusterName,
SystemStore.SYSTEM_STORE_NAME_PREFIX + VeniceSystemStoreUtils.DAVINCI_PUSH_STATUS_STORE_STR + "_" + storeName)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: This can be replaced by VeniceSystemStoreType.getSystemStoreName(storeName)

@mynameborat
Copy link
Contributor

Based on the original issue, we still only add a check here as opposed to trying to create one if it doesn't exist? The issue also suggests to try to create one if not exists and then fail if the creation fails.

Do we plan to add that in subsequent PRs? If so, I 'd clarify the description to specify it partially resolves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants