KafkaStore SSL support.#319
Conversation
| # Memory options | ||
| if [ -z "$SCHEMA_REGISTRY_HEAP_OPTS" ]; then | ||
| SCHEMA_REGISTRY_HEAP_OPTS="-Xmx256M" | ||
| SCHEMA_REGISTRY_HEAP_OPTS="-Xmx512M" |
There was a problem hiding this comment.
This seems quite large for what the schema registry is doing. Did you actually run into limits with the existing setting?
There was a problem hiding this comment.
Ewen Cheslack-Postava (@ewencp), yeah I was getting OOMEs. I didn't test whether a smaller value would work or not. Want me to test a smaller value, like 384?
|
Alex L (@alexlod) For the first For the two new classes, can enough be saved by sharing a base class to make adding yet one more class into the mix? |
|
Ewen Cheslack-Postava (@ewencp), great suggestions, thanks! I just pushed a new commit with trivial changes. I'll work on the less trivial suggestions now and report back when I have a new commit. Thanks again. |
|
Ewen Cheslack-Postava (@ewencp) and I spoke in person, and I'm documenting the result here. |
|
Ewen Cheslack-Postava (@ewencp): new commit addressing all your suggestions (minus the Thanks, and let me know what other suggestions you have. |
| </dependency> | ||
| <dependency> | ||
| <groupId>org.bouncycastle</groupId> | ||
| <artifactId>bcpkix-jdk15on</artifactId> |
There was a problem hiding this comment.
Nitpick: should we add this as a property in the parent POM?
There was a problem hiding this comment.
Good catch.
|
New commit addressing all comments (exception the |
| </dependency> | ||
| <dependency> | ||
| <groupId>org.bouncycastle</groupId> | ||
| <artifactId>bcpkix-jdk15on</artifactId> |
There was a problem hiding this comment.
We are using bouncycastle outside of tests?
There was a problem hiding this comment.
I don't believe so. I'll make the scope test and test on my local machine. Good catch!
This diff adds support for an SSL KafkaStore. The implementation is pretty straightforward, mostly involving forwarding config parameters to the Kafka clients. The tests were a little tricky, though.
There were a few implementation choices I made which I'm not sure are ideal:
null.ConfigDefdoesn't support optional parameters with a default value ofnull. My workaround is to make the default value in the schema registry""and convert that tonullwhen I initialize the Kafka clients.Thanks ahead of time for taking a look!