-
Notifications
You must be signed in to change notification settings - Fork 679
Ct testing rnot2 #27719
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
Closed
Closed
Ct testing rnot2 #27719
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
33c07f3
test: initial cloud topics integration with random node ops
dotnwat 09ece07
test/rnot: allow bad request from azurite for PUT
dotnwat a6e6698
Merge remote-tracking branch 'tyler/ls' into ct-testing-rnot
dotnwat 7fe7bda
ct/l1/object: ensure reader/builder is always closed
rockwotj 1ac86cc
ct/reconciler: close builders before upload
rockwotj 2d24178
Revert "test/rnot: allow bad request from azurite for PUT"
dotnwat 56bfa38
Merge remote-tracking branch 'tyler/close' into ct-testing-rnot
dotnwat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -327,6 +327,10 @@ class object_builder_impl final : public object_builder { | |||||||||
: _output(std::move(output)) | ||||||||||
, _opts(opts) {} | ||||||||||
|
||||||||||
~object_builder_impl() override { | ||||||||||
vassert(_closed, "L1 object builders must be closed unconditionally"); | ||||||||||
} | ||||||||||
|
||||||||||
ss::future<> start_partition(model::topic_id_partition tidp) final { | ||||||||||
end_partition(); | ||||||||||
co_await serde_write_to_stream(data_type::partition_marker, tidp); | ||||||||||
|
@@ -393,7 +397,10 @@ class object_builder_impl final : public object_builder { | |||||||||
co_return info; | ||||||||||
} | ||||||||||
|
||||||||||
ss::future<> close() final { return _output.close(); } | ||||||||||
ss::future<> close() final { | ||||||||||
_closed = true; | ||||||||||
return _output.close(); | ||||||||||
} | ||||||||||
|
||||||||||
size_t file_size() const final { return _offset; } | ||||||||||
|
||||||||||
|
@@ -444,6 +451,7 @@ class object_builder_impl final : public object_builder { | |||||||||
model::topic_id_partition _current_tidp{}; | ||||||||||
footer::partition _current_partition; | ||||||||||
options _opts; | ||||||||||
bool _closed = false; | ||||||||||
}; | ||||||||||
|
||||||||||
} // namespace | ||||||||||
|
@@ -460,6 +468,10 @@ class object_reader_impl : public object_reader { | |||||||||
explicit object_reader_impl(ss::input_stream<char> input) | ||||||||||
: _input(std::move(input)) {} | ||||||||||
|
||||||||||
~object_reader_impl() override { | ||||||||||
vassert(_closed, "L1 object readers must be closed unconditionally"); | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||
} | ||||||||||
|
||||||||||
ss::future<result> read_next() final { | ||||||||||
if (_saw_footer) { | ||||||||||
// After the footer we have 4 bytes for the size of the footer, so | ||||||||||
|
@@ -493,7 +505,10 @@ class object_reader_impl : public object_reader { | |||||||||
"unknown data type in object: {}", std::to_underlying(dt))); | ||||||||||
} | ||||||||||
|
||||||||||
ss::future<> close() final { return _input.close(); } | ||||||||||
ss::future<> close() final { | ||||||||||
_closed = true; | ||||||||||
return _input.close(); | ||||||||||
} | ||||||||||
|
||||||||||
private: | ||||||||||
template<typename T> | ||||||||||
|
@@ -538,6 +553,7 @@ class object_reader_impl : public object_reader { | |||||||||
|
||||||||||
ss::input_stream<char> _input; | ||||||||||
bool _saw_footer = false; | ||||||||||
bool _closed = false; | ||||||||||
}; | ||||||||||
|
||||||||||
} // namespace | ||||||||||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
vassert
in a destructor can cause program termination during stack unwinding if an exception is already being processed. Consider using a different error handling mechanism like logging an error instead.Copilot uses AI. Check for mistakes.