Skip to content

Bug Report: Hardcoded schema expectation breaks compatibility with standard Vespa deployments #88

Description

@parisni

Environment

  • Vispana Version: v0.0.1-SNAPSHOT (latest Docker image vispana/vispana:latest)
  • Vespa Version: 8.521.17
  • Deployment: Kubernetes cluster

Problem Description

Vispana fails to load with a 404 error when connecting to a standard Vespa cluster due to a hardcoded assumption about schema file names.

Error Details

Error Message:

404 Not Found: {"error-code":"NOT_FOUND","message":"Session 4 does not contain a file at path '/schemas/cluster-controllers.sd'"}

Full Stack Trace:

org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found: "{"error-code":"NOT_FOUND","message":"Session 4 does not contain a file at path '/schemas/cluster-controllers.sd'"}"
	at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:112)
	at com.vispana.vespa.state.helpers.Request.requestGet(Request.java:10)
	at com.vispana.vespa.state.assemblers.ContentAssembler.lambda$fetchSchemaContent$2(ContentAssembler.java:87)
	at com.vispana.vespa.state.assemblers.ContentAssembler.fetchSchemaContent(ContentAssembler.java:97)
	at com.vispana.vespa.state.assemblers.ContentAssembler.lambda$assemble$0(ContentAssembler.java:71)
	at com.vispana.vespa.state.assemblers.ContentAssembler.assemble(ContentAssembler.java:76)
	at com.vispana.vespa.state.VespaStateClient.lambda$vespaState$8(VespaStateClient.java:47)

Root Cause

The issue is in ConfigNodesAssembler.java line 20:

private final static String CLUSTER_CONTROLLERS_SCHEMA = "cluster-controllers";

Workaround Attempted

We tried creating a dummy cluster-controllers.sd schema file, but Vespa doesn't allow hyphens in schema names (requires underscores), creating an incompatibility between Vispana's expectation (cluster-controllers) and Vespa's requirements (cluster_controllers).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions