Giter Site home page Giter Site logo

ksnap's People

Contributors

akamensky avatar alex817 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ksnap's Issues

Python error when deallocating objects

Python runtime state: initialized
Current thread 0x00007fb377639740 (most recent call first):
  File "/opt/miniconda3/envs/ksnap/lib/python3.9/site-packages/ksnap/manager.py", line 80 in run
  File "/opt/miniconda3/envs/ksnap/lib/python3.9/site-packages/ksnap/__main__.py", line 23 in main
  File "/opt/miniconda3/envs/ksnap/bin/ksnap", line 8 in <module>
/bin/kafka-data-snapshot: line 67: 26988 Aborted                 "${ksnap_bin}" backup -b "${broker_list}" -t "${topics}" -d "${dest_tmp_dir}" --ignore-missing-topics```

Version v2.0.5 WARNING Unknown error fetching data for topic-partition

Hey
Version v2.0.5 backup results in the following errors

2021-06-03 22:59:53,327 WARNING  Unknown error fetching data for topic-partition TopicPartition(topic='esp.commands', partition=2)
2021-06-03 22:59:53,327 WARNING  Unknown error fetching data for topic-partition TopicPartition(topic='esp.commands', partition=11)
2021-06-03 22:59:53,328 WARNING  Unknown error fetching data for topic-partition TopicPartition(topic='esp.commands', partition=8)
2021-06-03 22:59:53,328 WARNING  Unknown error fetching data for topic-partition TopicPartition(topic='esp.commands', partition=5)
2021-06-03 22:59:53,447 WARNING  Unknown error fetching data for topic-partition TopicPartition(topic='esp.commands', partition=1)
2021-06-03 22:59:53,447 WARNING  Unknown error fetching data for topic-partition TopicPartition(topic='esp.commands', partition=4)

Version v2.0.3 works fine

Unable to serialise headers with value of None

  File "/opt/miniconda3/envs/ksnap/bin/ksnap", line 8, in <module>
    sys.exit(main())
  File "/opt/miniconda3/envs/ksnap/lib/python3.9/site-packages/ksnap/__main__.py", line 23, in main
    ksnap_manager.run()
  File "/opt/miniconda3/envs/ksnap/lib/python3.9/site-packages/ksnap/manager.py", line 81, in run
    self.backup()
  File "/opt/miniconda3/envs/ksnap/lib/python3.9/site-packages/ksnap/manager.py", line 55, in backup
    data_flow_manager.write(offsets, partitions)
  File "/opt/miniconda3/envs/ksnap/lib/python3.9/site-packages/ksnap/data_flow.py", line 60, in write
    partition.to_file(file_path)
  File "/opt/miniconda3/envs/ksnap/lib/python3.9/site-packages/ksnap/partition.py", line 45, in to_file
    [m.to_row() for m in self.messages])
  File "/opt/miniconda3/envs/ksnap/lib/python3.9/site-packages/ksnap/partition.py", line 45, in <listcomp>
    [m.to_row() for m in self.messages])
  File "/opt/miniconda3/envs/ksnap/lib/python3.9/site-packages/ksnap/message.py", line 21, in to_row
    headers = [
  File "/opt/miniconda3/envs/ksnap/lib/python3.9/site-packages/ksnap/message.py", line 22, in <listcomp>
    {"key": key, "val": b64encode(val).decode("ascii")}
  File "/opt/miniconda3/envs/ksnap/lib/python3.9/base64.py", line 58, in b64encode
    encoded = binascii.b2a_base64(s, newline=False)
TypeError: a bytes-like object is required, not 'NoneType'

Ksnap stopped consuming messages from topics prematurely when connecting to a kafka broker with slow connection

There is a mechanism where ksnap reader waits for messages and exit if there is no new messages after x secs. This serves the purpose of consuming all messages and exit the consuming stage if ksnap has a good and fast connection with target kafka cluster.

I think we should get the latest offsets of all topics and wait until we receive messages with said offsets then exit along with a generous consumer timeout.

SSL/SASL_SSL

What about SSL/SASL_SSL?
How to pass configuration to connect?

Do full errors check in backup workflow

Currently in backup workflow the tool will exit on first error (i.e. topic does not exist). It should first check all errors (w/o starting the backup process itself) and print all errors if any.

Need few information about topics and duplicate data in kafka

Hi,

I got to know about this tool from this discussion itadventurer/kafka-backup#52
I have a similar requirement for taking point-in-time snapshots of Kafka data and this tool is solving most of my requirements.

I have few questions:

  1. Is there any way to provide regular expression for topics like if I want to take backup for all topics, can I pass "*" instead of a list of all topics?
  2. If either key or value is duplicate in Kafka data then the backup tool is throwing error "sqlite3.IntegrityError" and skipping those data points. I am new to Kafka, so it is the right behaviour, I mean Kafka is not supposed to stream duplicate data (key or value) or values with null keys? If so, how to handle this error

Thank you

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.