You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/03/08 14:13:00 UTC
[jira] [Commented] (NIFI-8267) HWX Schema Registry - Cache size
doesn't support long
[ https://issues.apache.org/jira/browse/NIFI-8267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17297394#comment-17297394 ]
ASF subversion and git services commented on NIFI-8267:
-------------------------------------------------------
Commit c5b5be89a2991ae83d380fe2ea141ae306611486 in nifi's branch refs/heads/main from Pierre Villard
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=c5b5be8 ]
NIFI-8267 - Fix for HWX Schema Registry to use integers (#4850)
> 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
> Components: Extensions
> Reporter: Pierre Villard
> Assignee: Pierre Villard
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)