curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jordan Zimmerman (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CURATOR-343) Schema exceptions need more context
Date Tue, 09 Aug 2016 16:18:20 GMT

     [ 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)

Mime
View raw message