Skip to content

[h2v] Add repush ttl config and filter to the H2V.#10

Merged
adamxchen merged 6 commits intolinkedin:masterfrom
adamxchen:ttlfilter
Sep 30, 2022
Merged

[h2v] Add repush ttl config and filter to the H2V.#10
adamxchen merged 6 commits intolinkedin:masterfrom
adamxchen:ttlfilter

Conversation

@adamxchen
Copy link
Copy Markdown
Contributor

@adamxchen adamxchen commented Sep 26, 2022

Description

This commit introduces two new config REPUSH_TTL_IN_HOURS and REPUSH_TTL_POLICY. They are used in conjunction to apply corresponding TTL logic to records. Note that as for now, we only support one REPUSH_TTL_POLICY so its value is hardcoded.

The TTL filter uses the chain of responsibility pattern so we can introduce more filters to the Mapper stage. TTL filter also comes with 3 policies w.r.t batch writes. The core implementation will be added in a separate commit.

How was this PR tested?

unit tests and integration tests

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.
    Users now can specify the ttl time in hours in the repush job. When the config is specified, the filter will be present during H2V mapper stage. Currently, this filter doesn't do anything but allowing everything flow thru. Its implementation will be introduce in a different PR.

@adamxchen adamxchen requested review from a team and majisourav99 September 28, 2022 21:21
This commit introduces two new config REPUSH_TTL_IN_HOURS_OVERRIDE and REPUSH_TTL_POLICY.
They are used in conjunction to apply corresponding TTL logic to records. Note that as for now, we only support one REPUSH_TTL_POLICY so its value is hardcoded.

The TTL filter uses the chain of responsibility pattern so we can introduce more filters to the Mapper stage. TTL filter also comes with 3 policies w.r.t batch writes.
The core implementation will be added in a separate commit.
@adamxchen adamxchen force-pushed the ttlfilter branch 2 times, most recently from eea3e91 to ef4590e Compare September 29, 2022 06:09
@sushantmane
Copy link
Copy Markdown
Contributor

sushantmane commented Sep 29, 2022

Thanks, @adamxchen

@adamxchen adamxchen removed the request for review from a team September 30, 2022 18:09
@adamxchen adamxchen merged commit 3f2ff93 into linkedin:master Sep 30, 2022
@adamxchen adamxchen deleted the ttlfilter branch September 30, 2022 19:18
ZacAttack pushed a commit that referenced this pull request Jun 1, 2023
…ion with Kafka (#452)

* [push-job] Fix VenicePushJob - loading Kafka configuration

* [tests] Fix tests failing due to SASL implementation

* [controller][server] Ensure that Kafka SASL properties are preserved (#10)

* [samza][pulsar-sink] Pass SASL properties to the Producer

* [server][pulsar-sink] More fixes about SASL authentication (#11)

- Fix Venice Server loading Kafka SASL parameters
- Remove JAAS configuration from PulsarSink tests, Kafka is not
configured with SASL
- Add a generic `writerConfig` to tune the PulsarSink

* [tests] Add Kafka SASL integration tests end-to-end (#20)

* Fix build

* Fix build

* Increase code coverage

* fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants