lkuchars commented on code in PR #10105:
URL: https://github.com/apache/nifi/pull/10105#discussion_r2254126925
##########
nifi-extension-bundles/nifi-confluent-platform-bundle/nifi-confluent-schema-registry-service/src/main/java/org/apache/nifi/confluent/schemaregistry/client/CachingSchemaRegistryClient.java:
##########
@@ -47,21 +52,30 @@ public CachingSchemaRegistryClient(final
SchemaRegistryClient toWrap, final int
.maximumSize(cacheSize)
.expireAfterWrite(Duration.ofNanos(expirationNanos))
.build(client::getSchema);
+ definitionCache = Caffeine.newBuilder()
+ .maximumSize(cacheSize)
+ .expireAfterWrite(Duration.ofNanos(expirationNanos))
+ .build(client::getSchemaDefinition);
}
@Override
- public RecordSchema getSchema(final String schemaName) {
+ public RecordSchema getSchema(final String schemaName) throws IOException,
SchemaNotFoundException {
Review Comment:
Changed the signature back to the original. Lets leave it like this please
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]