Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registry does not work on ipv6 #1289

Closed
jellebens opened this issue Mar 3, 2021 · 0 comments · Fixed by #1295
Closed

Registry does not work on ipv6 #1289

jellebens opened this issue Mar 3, 2021 · 0 comments · Fixed by #1295
Assignees
Labels
2.0.x type/bug Something isn't working

Comments

@jellebens
Copy link

jellebens commented Mar 3, 2021

When a trying to deploy registry using operator on a kubernetes server that only has ipv6 to its disposition registry fails to start

image

issue is located here:
class: https://github.com/Apicurio/apicurio-registry/blob/5ceb8a89ae772172826b150b87ff9f1bf87263ec/storage/streams/src/main/java/io/apicurio/registry/streams/StreamsRegistryConfiguration.java

public HostInfo storageLocalHost(StreamsProperties props) {
        String appServer = props.getApplicationServer();
        String[] hostPort = appServer.split(":");
        log.info("Application server gRPC: '{}'", appServer);
        return new HostInfo(hostPort[0], Integer.parseInt(hostPort[1]));
    }

should be

public HostInfo storageLocalHost(StreamsProperties props) {
        String appServer = props.getApplicationServer();
        String[] hostPort = appServer.split(":");
        log.info("Application server gRPC: '{}'", appServer);
        return new HostInfo(hostPort[0], Integer.parseInt(hostPort[hostPort.length-1]));
    }

it should split on the last ':'

@EricWittmann EricWittmann added type/bug Something isn't working 2.0.x labels Mar 3, 2021
@carlesarnal carlesarnal linked a pull request Mar 4, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0.x type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants