Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Watch Created with Empty Resource Names

Open
#411 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start in server/src/main/java/io/envoyproxy/controlplane/server/DiscoveryRequestStreamObserver.java, especially lines 80–94, and compare the current behavior with the Envoy xDS protocol documentation linked in the issue. The change is complete when an empty resource-names list cancels the previous watch without creating a new one; check the surrounding watch-handling code for the relevant verification point.

Written by the indexing model from the issue text.

Description

According to the Envoy xDS protocol documentation:

If the list of resource names becomes empty, that means the client is no longer interested in any resources of the specified type.

However, the DiscoveryRequestStreamObserver currently creates a new watch even when the resource names list becomes empty, which violates the spec.
https://github.com/envoyproxy/java-control-plane/blob/main/server/src/main/java/io/envoyproxy/controlplane/server/DiscoveryRequestStreamObserver.java#L80-L94

I think we can just cancel the previous watch and not create another one in this case. Please let me know if this makes sense, and I’ll be happy to submit a PR.

Dominant language
Java
Stars
312
Forks
150
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from envoyproxy/java-control-plane

All issues in envoyproxy/java-control-plane

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.