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

its impossible to delete a namespace once you change the schema #32

Open
marmbrus opened this issue Oct 23, 2010 · 2 comments
Open

its impossible to delete a namespace once you change the schema #32

marmbrus opened this issue Oct 23, 2010 · 2 comments

Comments

@marmbrus
Copy link
Member

and its kinda annoying to do by hand over and over again.

CardinalityExperiment.results.delete
INF [20101023-15:34:23.495] comm: Opening Zookeeper Connection to mesos-ec2.knowsql.org:2181 with timeout 30000
java.lang.RuntimeException: Server key schema {"type":"record","name":"ResultKey","namespace":"edu.berkeley.cs.scads.perf.scadr.cardinality","fields":[{"name":"clientConfig","type":{"type":"record","name":"LoadClient","fields":[{"name":"numServers","type":"int"},{"name":"numClients","type":"int"},{"name":"followingCardinality","type":"int"},{"name":"executorClass","type":"string"},{"name":"iterations","type":"int"},{"name":"threads","type":"int"},{"name":"runLengthMin","type":"int"}]}},{"name":"clusterAddress","type":"string"},{"name":"clientId","type":"int"},{"name":"iteration","type":"int"},{"name":"threadId","type":"int"}]} is not a prefix of client key schema {"type":"record","name":"ResultKey","namespace":"edu.berkeley.cs.scads.perf.scadr.cardinality","fields":[{"name":"clientConfi...

@stephentu
Copy link
Member

should schema mismatches then only emit warnings and not be fatal errors?

@marmbrus
Copy link
Member Author

One option would be to move delete out of namespace and into scads cluster
Another would be to make sure schema mistmatch doesn't fail in the constructor. I do think it should throw an exception when you try to get or put data though to ensure people don't corrupt the cluster.

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

No branches or pull requests

2 participants