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

YdbSchemaCompatibilityChecker fails on new table in unexisted directory #45

Closed
lavrukov opened this issue Mar 6, 2024 · 0 comments · Fixed by #46
Closed

YdbSchemaCompatibilityChecker fails on new table in unexisted directory #45

lavrukov opened this issue Mar 6, 2024 · 0 comments · Fixed by #46
Assignees
Labels
bug Something isn't working

Comments

@lavrukov
Copy link
Contributor

lavrukov commented Mar 6, 2024

I add to project new table with annotation @table(name = "newDir/MyTable"). It is the first table in this dir and YdbRepository can create it because it have a code for create dirs. But YdbSchemaCompatibilityChecker got this

 tech.ydb.core.UnexpectedResultException: Cannot get value, code: SCHEME_ERROR, issues: [Path not found (S_ERROR)]
        at tech.ydb.core.Result$Fail.getValue(Result.java:128)
        at tech.ydb.yoj.repository.ydb.client.YdbSchemaOperations.listDirectory(YdbSchemaOperations.java:362)
        at tech.ydb.yoj.repository.ydb.client.YdbSchemaOperations.tables(YdbSchemaOperations.java:243)
        at tech.ydb.yoj.repository.ydb.client.YdbSchemaOperations.tableStream(YdbSchemaOperations.java:237)
        at tech.ydb.yoj.repository.ydb.client.YdbSchemaOperations.getTables(YdbSchemaOperations.java:227)
        at tech.ydb.yoj.repository.ydb.client.YdbSchemaOperations.getTables(YdbSchemaOperations.java:222)
        at tech.ydb.yoj.repository.ydb.compatibility.YdbSchemaCompatibilityChecker.lambda$run$0(YdbSchemaCompatibilityChecker.java:85)
        at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
@lavrukov lavrukov added the bug Something isn't working label Mar 6, 2024
@lavrukov lavrukov self-assigned this Mar 6, 2024
@lavrukov lavrukov linked a pull request Mar 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant