Pierre Villard created NIFI-8267:
------------------------------------

             Summary: HWX Schema Registry - Cache size doesn't support long
                 Key: NIFI-8267
                 URL: https://issues.apache.org/jira/browse/NIFI-8267
             Project: Apache NiFi
          Issue Type: Bug
            Reporter: Pierre Villard
            Assignee: Pierre Villard


In version 0.8.1, the cache size needs to be a positive number, that's the only 
verification being done:

[https://github.com/hortonworks/registry/blob/0.8.1/schema-registry/client/src/main/java/com/hortonworks/registries/schemaregistry/client/SchemaRegistryClient.java#L1292]

In more recent versions of the registry, the value is first converted into an 
integer:

[https://github.com/hortonworks/registry/blob/0.9.0/schema-registry/client/src/main/java/com/hortonworks/registries/schemaregistry/client/SchemaRegistryClient.java#L1442]

Problem is that we use a long in NiFi and the conversion fails. This needs to 
be changed.

This applies to:
 * CLASSLOADER_CACHE_SIZE
 * CLASSLOADER_CACHE_EXPIRY_INTERVAL_SECS
 * SCHEMA_VERSION_CACHE_SIZE
 * SCHEMA_VERSION_CACHE_EXPIRY_INTERVAL_SECS



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to