-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: update offline_log_viewer and use in ducktape tests #5315
Commits on Dec 15, 2022
-
tools: write offline_log_viewer kvstore/controller output to stdout
On stderr it gets mixed with logs. On stdout it is straightforward to capture and decode json for use in tests.
Configuration menu - View commit details
-
Copy full SHA for e168164 - Browse repository at this point
Copy the full SHA e168164View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f00c02 - Browse repository at this point
Copy the full SHA 9f00c02View commit details -
tools: offline_log_viewer don't replay pre-snapshot kvstore messages
This was wasteful: all messages from before the snapshot should already be accounted for in the state we loaded from the snapshot.
Configuration menu - View commit details
-
Copy full SHA for 963fc3d - Browse repository at this point
Copy the full SHA 963fc3dView commit details -
tools/metadata_viewer: handle kvstore deletions
A None value is a deletion. Previously, we ignored these and thereby the kvstore dump would include all keys ever created, even if they had since been deleted.
Configuration menu - View commit details
-
Copy full SHA for 7f666f7 - Browse repository at this point
Copy the full SHA 7f666f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for b492385 - Browse repository at this point
Copy the full SHA b492385View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37b76a1 - Browse repository at this point
Copy the full SHA 37b76a1View commit details -
tools/offline_log_viewer: fixed variable used to read BatchType (was …
…batch.header.type instead of batch.type)
Configuration menu - View commit details
-
Copy full SHA for 18328b1 - Browse repository at this point
Copy the full SHA 18328b1View commit details -
tools/offline_log_viewer: added peek_int8, read_serde_enum
... and augmented Reader.read_envelope to accept a type_read Callable[rdr: Reader, version: Int]: Dict and a max_version parameter. If a type_read is used, it is invoked with reader and envelope if envelope.version <= max_version parameter. the result is joined with a dict {'envelope': envelope} and returned, otherwise an error dict is returned. If no type_read is used, envelope is returned immediately
Configuration menu - View commit details
-
Copy full SHA for 4bbd0c5 - Browse repository at this point
Copy the full SHA 4bbd0c5View commit details -
tools/offline_log_viewer: added serde decoding for topic_commands
the new code tries to mimic the structure of the adl decoding functions. the new code is aware of the version number embedded in the binary stream and will skip the field if the version is not supported, while reporting the error.
Configuration menu - View commit details
-
Copy full SHA for 021317a - Browse repository at this point
Copy the full SHA 021317aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce43d16 - Browse repository at this point
Copy the full SHA ce43d16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b924de - Browse repository at this point
Copy the full SHA 8b924deView commit details -
tools/offline_log_viewer: added decode_config_command for serde for c…
…luster_config_command
Configuration menu - View commit details
-
Copy full SHA for 29f9e7e - Browse repository at this point
Copy the full SHA 29f9e7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98e4df6 - Browse repository at this point
Copy the full SHA 98e4df6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fe0654 - Browse repository at this point
Copy the full SHA 8fe0654View commit details -
tools/offline_log_viewer: added check that all the bytes of a record …
…are processed in case of unread byte, an 'unread': {'k': ..., 'v': ...} field is added and an error is logged this check is not exact but is a good proxy to know if the decoding code is correct
Configuration menu - View commit details
-
Copy full SHA for ba26cd7 - Browse repository at this point
Copy the full SHA ba26cd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8d85c4 - Browse repository at this point
Copy the full SHA d8d85c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9ab9fa - Browse repository at this point
Copy the full SHA a9ab9faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8557ac4 - Browse repository at this point
Copy the full SHA 8557ac4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7e6983 - Browse repository at this point
Copy the full SHA a7e6983View commit details -
tests: validate kvstore cleanup in topic_delete_test
Partitions have various kvstore items, stored by the raft + storage layers. When the topic is deleted, they should be deleted too. Use our offline log decoder tool to inspect the kvstore out-of-band and validate the keys go away when the topic is deleted.
Configuration menu - View commit details
-
Copy full SHA for fac7d51 - Browse repository at this point
Copy the full SHA fac7d51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1813135 - Browse repository at this point
Copy the full SHA 1813135View commit details -
tools: disable broken controller command decode
This needs fixing, but better to comment it out and have the rest of the command work.
Configuration menu - View commit details
-
Copy full SHA for 189e475 - Browse repository at this point
Copy the full SHA 189e475View commit details