GithubHelp home page GithubHelp logo

Question - What does red mean? about cmak HOT 3 CLOSED

yahoo avatar yahoo commented on August 27, 2024
Question - What does red mean?

from cmak.

Comments (3)

patelh avatar patelh commented on August 27, 2024

A topic is marked red if it is marked for deletion in Zookeeper. I have seen cases where if you create a topic and then delete it and attempt to create a topic with the same name, it fails to create properly and just gets marked as deleted by Kafka controller in 0.8.2.1. I will try to validate this tomorrow in my dev environment.

from cmak.

spuder avatar spuder commented on August 27, 2024

That actually is what happened. I deleted the topic 'ndstreamer' and stopped everything from pushing to that topic for a day so it would have time to purge out.

I then made a new topic with the same name and started pushing to it again. Everything seemed fine for a day until it abruptly showed up red after the weekend.

Is there a way to 'unmark' a topic for deletion

from cmak.

spuder avatar spuder commented on August 27, 2024

Figured it out by looking at the source. When kafka marks a topic for deletion, it calls the ZkUtils.scala class and adds to zookeeper the following entry: /admin/delete_topics

https://github.com/apache/kafka/blob/5f3eb1cafaecee746641fa43945cc0762635a0bd/core/src/main/scala/kafka/utils/ZkUtils.scala#L46

I assume that if a topic appears in both kafka/admin/delete_topics and kafka/config/toipcs then it is marked for deletion. If the topic is in only one or the other then the topic is valid or deleted.

I worked around the issue by removing the topic from the delete_topics directory in zookeeper

screenshot 2015-04-08 10 59 46

from cmak.

Related Issues (20)

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.