Skip to content

[ci-run][fix][broker]Cache invalidation due to concurrent access - #26

Closed
poorbarcode wants to merge 23 commits into
masterfrom
flaky/ManagedLedgerBkTest
Closed

poorbarcode wants to merge 23 commits into
masterfrom
flaky/ManagedLedgerBkTest

Conversation

@poorbarcode

@poorbarcode poorbarcode commented Oct 17, 2022 •

Copy link
Copy Markdown
Owner

poorbarcode and others added 22 commits October 14, 2022 16:23
…nnel inactive (apache#17856)

### Motivation
https://github.com/apache/pulsar/blob/b89c1451551a6bbe681465726906a2e61c9d8a69/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java#L282-L297 
The `pendingLookupRequestSemaphore` will leak when channel inactive. There are `LookUpRequestSemaphore` not released when removing it from `pendingRequests`

### Modifications
We can't easily release the semaphore in `channelInactive`, because there are not only `LookUpRequest`. So release the semaphore when connectionException

### Verifying this change
Add unit test case to cover this change

### Documentation

<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->

- [ ] `doc-required` 
(Your PR needs to update docs and you will update later)

- [x] `doc-not-needed` 
bug fixs, no need doc

- [ ] `doc` 
(Your PR contains doc changes)

- [ ] `doc-complete`
(Docs have been already added)
…pache#16045)

* [fix][proxy] Use correct channel for HAProxyMessage dest address

* Fix implementation after researching HAProxy

### Motivation

When reading through the Proxy code, I noticed that the `remoteAddress` was used where it probably makes sense to use the `localAddress`.

After researching it a bit with the AWS docs https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-proxy-protocol.html and the protocol spec http://www.haproxy.org/download/1.8/doc/proxy-protocol.txt, I think this implementation is correct.

We could look at using the value in the broker logs if we wanted to make it clear which proxy the traffic is ingressing through. For now, I propose we just fix the code in the proxy.

### Modifications

* Replace `inboundChannel.localAddress` with `inboundChannel.localAddress`.
* Fix type checking

- [x] `doc-not-needed`
)

When using KubernetesRuntime, if uploadBuiltinSinksSources is false (non-default), the originalFileName
is not set for builtin components. But with k8s, we need a filename since the component will be
downloaded. This results in the component currently being downloaded with the download directory as filename.
Also when using a transform function, we use the originalFileName to know if there's a builtin function to download.
…e#17922)

* Make BookieId work with PulsarRegistrationDriver (apache#17762)

* Make BookieId work with PulsarRegistrationDriver

* Switch to MetadataCache

* checkstyle

* Do not execute lookup on MetadataCache in the getBookieServiceInfo caller thread
@poorbarcode
poorbarcode deleted the flaky/ManagedLedgerBkTest branch October 19, 2022 17:16
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.