| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Please add the enhancement label. |
Sorry, something went wrong.
There was a problem hiding this comment.
Hello @axreldable
This looks good to me, thank you for it.
I note that this also fixes an NPE in MetadataAdapter.getAllByte(String key)
Sorry, something went wrong.
Correct, it fixes NPE for getAll(key).spliterator() in MetadataAdapter.getAllByte(String key) method. |
Sorry, something went wrong.
…tring) and getAllByte(String)
There was a problem hiding this comment.
Overall LGTM.
Can you just clarify the case when it is null in the ServerSessionMiddleware please ?
Sorry, something went wrong.
|
@jbonofre , some CI pipelines failed. Do you think it relates to the changes or the pipelines are flaky? |
Sorry, something went wrong.
|
@axreldable let me take a look. I will get back to you. |
Sorry, something went wrong.
|
The verify job failed to flaky test (memory allocation). I ran again the jobs to double check. |
Sorry, something went wrong.
|
Thank you, @jbonofre ! Looks like tests passed this time. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What's Changed
CallHeaders has 3 implementations:
Before this change:
MetadataAdapter could return null from getAll(String) and getAllByte(String) when there were no values for the key, because gRPC’s Metadata.getAll() returns null in that case. This was undocumented and forced callers to null-check.
After this change:
All 3 implementations consistently return an empty iterable (never null) when the key is absent or has no values. The contract is documented on the interface and covered by tests for each implementation.
This contains breaking changes.
MetadataAdapter.getAll(String) and getAllByte(String) return empty iterator instead of null.
Closes #139.