Skip to content

Comments

Extract class AggregateWriteBuffer from Stripe#10718

Merged
bneradt merged 2 commits intoapache:masterfrom
JosiahWI:refactor/aggregate-write-buffer
Nov 15, 2023
Merged

Extract class AggregateWriteBuffer from Stripe#10718
bneradt merged 2 commits intoapache:masterfrom
JosiahWI:refactor/aggregate-write-buffer

Conversation

@JosiahWI
Copy link
Contributor

@JosiahWI JosiahWI commented Nov 2, 2023

This encapsulates the agg_ fields of Stripe in a new class. This is in preparation to move all the aggregation behavior into this new class, including the behavior to enqueue virtual connections and update the number of bytes waiting to be written to the buffer, which is currently being done by the virtual connections themselves.

Note: Stripe does not use its own getters to access aggregate buffer, but calls the getters on the AggregateWriteBuffer itself. This is because I want to get rid of as many of the getters on Stripe as possible.

@JosiahWI JosiahWI marked this pull request as draft November 2, 2023 17:18
@JosiahWI JosiahWI force-pushed the refactor/aggregate-write-buffer branch 2 times, most recently from 9ce3b05 to 963699f Compare November 2, 2023 17:29
@JosiahWI
Copy link
Contributor Author

JosiahWI commented Nov 2, 2023

HostDB regression test failed on Ubuntu and CentOS and AuTests substitute and proxy_serve_stale_dns_fail failed.

@JosiahWI JosiahWI self-assigned this Nov 2, 2023
@JosiahWI JosiahWI added this to the 10.0.0 milestone Nov 2, 2023
@JosiahWI
Copy link
Contributor Author

JosiahWI commented Nov 2, 2023

I will rebase and mark ready for review after #10710 lands.

@JosiahWI JosiahWI force-pushed the refactor/aggregate-write-buffer branch from be1eec6 to 0f53246 Compare November 9, 2023 23:27
This encapsulates the `agg_` fields of `Stripe` in a new class. This is
in preparation to move all the aggregation behavior into this new
class, including the behavior to enqueue virtual connections and
update the number of bytes waiting to be written to the buffer, which
is currently being done by the virtual connections themselves.

Note: `Stripe` does not use its own getters to access aggregate buffer,
but calls the getters on the `AggregateWriteBuffer` itself. This is
because I want to get rid of as many of the getters on `Stripe` as
possible.
@JosiahWI JosiahWI force-pushed the refactor/aggregate-write-buffer branch from 0f53246 to 81e0215 Compare November 14, 2023 18:23
@JosiahWI JosiahWI marked this pull request as ready for review November 14, 2023 18:35
@JosiahWI JosiahWI requested a review from masaori335 November 14, 2023 18:35
@bneradt bneradt merged commit 5a57fac into apache:master Nov 15, 2023
@JosiahWI JosiahWI deleted the refactor/aggregate-write-buffer branch November 15, 2023 00:30
phongn pushed a commit to phongn/trafficserver that referenced this pull request Nov 16, 2023
This encapsulates the `agg_` fields of `Stripe` in a new class. This is
in preparation to move all the aggregation behavior into this new
class, including the behavior to enqueue virtual connections and
update the number of bytes waiting to be written to the buffer, which
is currently being done by the virtual connections themselves.

Note: `Stripe` does not use its own getters to access aggregate buffer,
but calls the getters on the `AggregateWriteBuffer` itself. This is
because I want to get rid of as many of the getters on `Stripe` as
possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants