-
Notifications
You must be signed in to change notification settings - Fork 99
samples: Schema evolution #1469
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
Conversation
|
@kamalaboulhosn Samples failing test and checkstyle. |
samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java
Outdated
Show resolved
Hide resolved
samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java
Outdated
Show resolved
Hide resolved
* samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
…apis/java-pubsub into schema-evolution-examples
samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java
Outdated
Show resolved
Hide resolved
samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java
Outdated
Show resolved
Hide resolved
acocuzzo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple comments re: exceptions, otherwise looks great! Thanks.
| System.out.println("Committed a schema using an Avro schema:\n" + schema); | ||
| return schema; | ||
| } catch (AlreadyExistsException e) { | ||
| System.out.println(schemaName + "already exists."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably change to FailedPrecondition/InvalidArgument/NotFound/ResourceExhausted, since we can't get AlreadyExists.
|
|
||
| System.out.println("Committed a schema using a protobuf schema:\n" + schema); | ||
| return schema; | ||
| } catch (AlreadyExistsException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
No description provided.