Skip to content

Manually-created changlog topic doesn't allow iteration of keys in table with rocksdb #654

@g-clef

Description

@g-clef

Checklist

  • I have included information about relevant versions
  • I have verified that the issue persists when using the master branch of Faust.

Steps to reproduce

Create changlog topic manually, make Table from that using rocksdb store, add data to the Table, try to iterate over the keys in the table.

Expected behavior

Iteration over the Table as a dict should allow access to all the keys assigned to the node for that table.

Actual behavior

No keys are returned. This is because in stores/rocksdb.py the _dbs_for_actives method looks at self.table._changelog_table_name() , which returns the auto-generated topic name for the changelog, rather than the actually-assigned topic name.

Versions

  • Python version 3.7
  • Faust version 1.10.4
  • Operating system Linux
  • Kafka version
  • RocksDB version (if applicable)

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