Giter Site home page Giter Site logo

ksql-bug-demo's Introduction

KSQL not failing container on exception

The purpose od this repo is to demonstrate that ksql cli does not fail a container in k8s when an exception is rised. This prevents k8s from restarting the container in the case of a failure due to the ksql server not being ready yet.

Report:

Describe the bug A k8s container with the ksqsl cli that fails to connect to the ksqsl server does not fail the container. This is issue evne thouhg is reproduced through a k8s pod seems to be caused by the bash scripts.

To Reproduce Steps to reproduce the behavior, include:

  1. Version: confluentinc/ksqldb-cli:0.17.0
  2. Demo repo: https://github.com/javiersvg/ksql-bug-demo
  3. Commands:
kubectl create namespace test-env
kubectl -n test-env apply -f test.yaml
kubectl -n test-env get po

Expected behavior The created container should fail to connect to the server and the get po command should show the container as Error.

Actual behaviour The get po command shows the container as Completed instead.

A clear and concise description of what actually happens, including:

  1. After running get po the container is Compelted
  • alt text
  1. KSQL logs show that the client was unable to connect to the sesrver
  • alt text

Additional context I have been looking at some posible solutions but had no success this far. The problem affects k8s deployment but should be caused by the bash scripts: ksqsl and kssql-run-class

ksql-bug-demo's People

Contributors

javiersvg avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.