You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Jordan Zimmerman (JIRA)" <ji...@apache.org> on 2016/08/09 16:18:20 UTC
[jira] [Updated] (CURATOR-343) Schema exceptions need more context
[ https://issues.apache.org/jira/browse/CURATOR-343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jordan Zimmerman updated CURATOR-343:
-------------------------------------
Description:
Current schema violations look like this:
{code}
Schema violation: Data is not valid for schema: Schema{name='950eb5e3-b64f-43a4-833e-4262be0f3018', pathRegex=/clusters/.*, path='null', documentation='', dataValidator=InternalSchemaValidator(List(root, ip, readonly)), ephemeral=CAN, sequential=CAN, watched=CAN, canBeDeleted=true, metadata={*=1, allocators=1}}
{code}
It lacks information about the invalid aspect. It merely shows what was expected.
was:
Current schema violations look like this:
```
Schema violation: Data is not valid for schema: Schema{name='950eb5e3-b64f-43a4-833e-4262be0f3018', pathRegex=/clusters/.*, path='null', documentation='', dataValidator=InternalSchemaValidator(List(root, ip, readonly)), ephemeral=CAN, sequential=CAN, watched=CAN, canBeDeleted=true, metadata={*=1, allocators=1}}
```
It lacks information about the invalid aspect. It merely shows what was expected.
> Schema exceptions need more context
> -----------------------------------
>
> Key: CURATOR-343
> URL: https://issues.apache.org/jira/browse/CURATOR-343
> Project: Apache Curator
> Issue Type: Improvement
> Components: Framework
> Reporter: Jordan Zimmerman
> Priority: Minor
>
> Current schema violations look like this:
> {code}
> Schema violation: Data is not valid for schema: Schema{name='950eb5e3-b64f-43a4-833e-4262be0f3018', pathRegex=/clusters/.*, path='null', documentation='', dataValidator=InternalSchemaValidator(List(root, ip, readonly)), ephemeral=CAN, sequential=CAN, watched=CAN, canBeDeleted=true, metadata={*=1, allocators=1}}
> {code}
> It lacks information about the invalid aspect. It merely shows what was expected.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)