Skip to content

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

@marmbrus

Description

@marmbrus
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...

Activity

stephentu

stephentu commented on Oct 23, 2010

@stephentu
Member

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

marmbrus

marmbrus commented on Oct 23, 2010

@marmbrus
MemberAuthor

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @marmbrus@stephentu

        Issue actions

          its impossible to delete a namespace once you change the schema · Issue #32 · radlab/SCADS