Skip to content

Delta xds non breaking hash bytes refactor #181

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

Conversation

Ferdudas97
Copy link
Contributor

No description provided.

Signed-off-by: radoslaw.chrzanowski <[email protected]>
Signed-off-by: radoslaw.chrzanowski <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Merging #181 (0dba75e) into delta-xds-non-breaking-slonka-hash-bytes (e6e22eb) will increase coverage by 1.93%.
The diff coverage is 82.97%.

Impacted file tree graph

@@                              Coverage Diff                               @@
##             delta-xds-non-breaking-slonka-hash-bytes     #181      +/-   ##
==============================================================================
+ Coverage                                       80.61%   82.54%   +1.93%     
+ Complexity                                        428      426       -2     
==============================================================================
  Files                                              39       43       +4     
  Lines                                            1501     1467      -34     
  Branches                                          120      117       -3     
==============================================================================
+ Hits                                             1210     1211       +1     
+ Misses                                            224      192      -32     
+ Partials                                           67       64       -3     
Impacted Files Coverage Δ
...proxy/controlplane/cache/GroupCacheStatusInfo.java 66.66% <50.00%> (+16.66%) ⬆️
.../io/envoyproxy/controlplane/cache/SimpleCache.java 78.00% <72.50%> (+7.22%) ⬆️
...o/envoyproxy/controlplane/cache/AbstractWatch.java 100.00% <100.00%> (ø)
...envoyproxy/controlplane/cache/CacheStatusInfo.java 100.00% <100.00%> (+17.85%) ⬆️
.../controlplane/cache/CacheStatusInfoAggregator.java 100.00% <100.00%> (ø)
...proxy/controlplane/cache/DeltaCacheStatusInfo.java 100.00% <100.00%> (ø)
...a/io/envoyproxy/controlplane/cache/DeltaWatch.java 100.00% <100.00%> (+11.11%) ⬆️
...voyproxy/controlplane/cache/MutableStatusInfo.java 100.00% <100.00%> (ø)
...n/java/io/envoyproxy/controlplane/cache/Watch.java 100.00% <100.00%> (ø)
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e6e22eb...0dba75e. Read the comment docs.

AtomicIntegerFieldUpdater.newUpdater(AbstractWatch.class, "isCancelled");
private final V request;
private final Consumer<T> responseConsumer;
private volatile int isCancelled = 0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it used somewhere ? :P

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is used via isCancelledUpdater in cancel() and in isCancelled()

@lukidzi lukidzi merged commit 834a3ce into envoyproxy:delta-xds-non-breaking-slonka-hash-bytes Oct 21, 2021
Ferdudas97 added a commit that referenced this pull request Nov 18, 2021
* refactor delta xds

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* refactor setDeltaWatch and remove code duplication

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* resolve TODO in SnapshotTest

Signed-off-by: radoslaw.chrzanowski <[email protected]>
Ferdudas97 added a commit that referenced this pull request Sep 9, 2022
* delta xds

Signed-off-by: Sebastian Schepens <[email protected]>
Signed-off-by: slonka <[email protected]>

* fixes

Signed-off-by: Sebastian Schepens <[email protected]>
Signed-off-by: slonka <[email protected]>

* method naming

Signed-off-by: Sebastian Schepens <[email protected]>
Signed-off-by: slonka <[email protected]>

* Building version of non-breaking changes

Signed-off-by: slonka <[email protected]>

* Get integration tests passing

Signed-off-by: slonka <[email protected]>

* Add delta tests back

Signed-off-by: slonka <[email protected]>

* Rewrite V3DiscoveryServerAdsDeltaResourcesIT to have a 2 second poll delay to account for potential delays in writing to the wire (we don't want that to happen)

Signed-off-by: slonka <[email protected]>

* Add comment to trigger PR build

Signed-off-by: slonka <[email protected]>

* Get V3DiscoveryServerXdsDeltaResourcesIT passing

Signed-off-by: slonka <[email protected]>

* Update protobuf to envoy 1.16.0 (#155)

* Update protobuf to envoy 1.16.0

Signed-off-by: Lukasz Jedryczka <[email protected]>

* Fixing test by setting -boostrap-version 2 flag

Signed-off-by: Lukasz Jedryczka <[email protected]>

* Update protobuf to envoy 1.16.0

Signed-off-by: Lukasz Jedryczka <[email protected]>

* Information about update envoy image version in README.md

Signed-off-by: wookieJ <[email protected]>
Signed-off-by: slonka <[email protected]>

* release: prepare release v0.1.25

Signed-off-by: slonka <[email protected]>

* release: prepare for next development iteration

Signed-off-by: slonka <[email protected]>

* release: prepare release v0.1.26

Signed-off-by: slonka <[email protected]>

* release: prepare for next development iteration

Signed-off-by: slonka <[email protected]>

* Bump nexus release plugin timeout to 20 minutes (#156)

Signed-off-by: slonka <[email protected]>

* release: prepare release v0.1.27

Signed-off-by: slonka <[email protected]>

* release: prepare for next development iteration

Signed-off-by: slonka <[email protected]>

* ci: fixes javadoc and jacoco plugin issues (#158)

Signed-off-by: karthik <[email protected]>
Signed-off-by: slonka <[email protected]>

* Update api to v1 17 (#159)

* Update protobuf to envoy 1.17

Signed-off-by: Lukasz Dziedziak <[email protected]>

* Use v2 version

Signed-off-by: Lukasz Dziedziak <[email protected]>

* Support V2/V3 in Envoy - remove V2 in separate PR

Signed-off-by: Lukasz Dziedziak <[email protected]>

* UDPA download - split directory create/copy

Signed-off-by: Lukasz Dziedziak <[email protected]>
Signed-off-by: slonka <[email protected]>

* Fix references to main branch after rename (#160)

Signed-off-by: slonka <[email protected]>

* release: prepare release v0.1.28

Signed-off-by: slonka <[email protected]>

* release: prepare for next development iteration

Signed-off-by: slonka <[email protected]>

* Change version to 0.1.29-delta-xds-slonka-SNAPSHOT

Signed-off-by: slonka <[email protected]>

* Revert ads configs to main

Signed-off-by: slonka <[email protected]>

* Hash bytes array not string

Signed-off-by: slonka <[email protected]>

* Remove unused import

Signed-off-by: slonka <[email protected]>

* Revert snapshot name

Signed-off-by: slonka <[email protected]>

* Remove respondDeltaTracked since it's not used anywhere

Signed-off-by: slonka <[email protected]>

* Delta xds non breaking hash bytes refactor (#181)

* refactor delta xds

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* refactor setDeltaWatch and remove code duplication

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* resolve TODO in SnapshotTest

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* Change version to 0.1.29-delta-xds-slonka-SNAPSHOT

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* DEPLOY_BRANCH added for snapshot deploy

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* changes after merge master with new envoy api

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* make CacheStatusInfoAggregator public

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* make GroupCacheStatusInfo and MutableStatusInfo public

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* refactor SimpleCache

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* create resources map only once

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* build snapshot with improved performance

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* refactor creating snapshot resources due to performance improvements

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* create hash version from string

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* remove custom snapshot version and deploy branch env

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* fix test after merge

Signed-off-by: radoslaw.chrzanowski <[email protected]>

* fix V3DeltaDiscoveryServerCallbacks description

Signed-off-by: radoslaw.chrzanowski <[email protected]>

Signed-off-by: Sebastian Schepens <[email protected]>
Signed-off-by: slonka <[email protected]>
Signed-off-by: wookieJ <[email protected]>
Signed-off-by: karthik <[email protected]>
Signed-off-by: Lukasz Dziedziak <[email protected]>
Signed-off-by: radoslaw.chrzanowski <[email protected]>
Co-authored-by: Sebastian Schepens <[email protected]>
Co-authored-by: mgajda <[email protected]>
Co-authored-by: Łukasz Jędryczka <[email protected]>
Co-authored-by: envoy-bot <[email protected]>
Co-authored-by: Karthik Ram <[email protected]>
Co-authored-by: Łukasz Dziedziak <[email protected]>
Co-authored-by: Radek Chrzanowski <[email protected]>
Co-authored-by: radoslaw.chrzanowski <[email protected]>
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.

4 participants