Skip to content

[improve][offloaders] Automatically evict Offloaded Ledgers from memory - #22

Open
eolivelli wants to merge 837 commits into
masterfrom
impl/offloaders-evict-memory
Open

eolivelli wants to merge 837 commits into
masterfrom
impl/offloaders-evict-memory

Conversation

@eolivelli

Copy link
Copy Markdown
Owner

No description provided.

@github-actions

Copy link
Copy Markdown

The pr had no activity for 30 days, mark with Stale label.

@github-actions github-actions Bot added the Stale label Apr 10, 2023
@github-actions github-actions Bot added the PIP label Oct 16, 2024
shibd and others added 26 commits February 6, 2025 10:14
…rors when using the Admin API (apache#23928)

### Motivation

Currently, when there is a 404 or 409 error in the Admin API call, the broker prints the error logs.

```
ERROR org.apache.pulsar.broker.admin.v2.PersistentTopics - [xxx] Failed to get partitioned metadata topic persistent://xxx: Namespace not found
```

```
ERROR org.apache.pulsar.broker.admin.v2.Namespaces - Failed to get policies for namespace xxx: Namespace does not exist
```

```
ERROR org.apache.pulsar.broker.admin.v2.PersistentTopics - [xxx] Failed to create non-partitioned topic persistent:/xxx: This topic already exists
```

```
 [pulsar-web-44-1] ERROR org.apache.pulsar.broker.admin.AdminResource - [admin] Failed to create partitioned topic persistent://xxx

java.util.concurrent.CompletionException: org.apache.pulsar.broker.web.RestException: This topic already exists
```

These errors are related to the client side. The client can handle the error, so we don't need to print it in the broker log.

### Modifications

- Print a warning log for NotFound or Conflict errors in the Admin API.
…in ServerCnx (apache#23938)

### Motivation

If the producer is created with some schema error, the broker will print many error logs like this:

```
ERROR org.apache.pulsar.broker.service.ServerCnx - Try add schema failed, remote address xxx
java.util.concurrent.CompletionException: org.apache.pulsar.broker.service.schema.exceptions.IncompatibleSchemaException: Producers cannot connect or send message without a schema to topics with a schemawhen SchemaValidationEnforced is enabled
```

This error can be reported to the client and not need to print it in the broker.

### Modifications

- Avoid printing log for IncompatibleSchemaException in ServerCnx
…ues causing excessive throttling and connection timeouts (apache#23930)
… trimming ledger and non-durable cursor creation (apache#23951)

Co-authored-by: Yunze Xu <[email protected]>
…-go (apache#23861)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matteo Merli <[email protected]>
…io/solr (apache#23899)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matteo Merli <[email protected]>
lhotari and others added 30 commits May 15, 2025 18:24
…Thread interrupt status (apache#24309)

### Motivation

Terminating pulsar-perf with CTRL-C could take a while. There's also a similar problem in some test cases that I came across while fixing test resource leaks.

### Modifications

- replace `while(true)` loops with `while(!Thread.currentThread().isInterrupted())` 
- properly propagate Thread interrupted information after catching exceptions
- fix issue in tests related to runtime hook resource leaks
  - when the execution completes successfully, remove the shutdown hook and run it without waiting for JVM exit
…c and persistence global topic policies never affect (apache#24279)
…pache#24313)

### Motivation

There is still a call to the synchronous method in `internalCreatePartitionedTopic`, which can lead to a deadlock under certain conditions.

### Modifications

- Replaced synchronous call to `getNamespacePolicies()` with `getNamespacePoliciesAsync()`.
- Replaced synchronous call to `getTopicPartitionList()` with `getTopicPartitionListAsync()`.
- Updated `internalCreatePartitionedTopic` to propagate the async flow properly.
### Motivation
 we can now obtain the offset of a message by its message id:

1. Get the message by id using `get-message-by-id` cmd
2. Get the index of the message using `Message.getIndex()`

But we cannot obtain the message id by offset. Then we need to add a new API to get the message id by offset.


### Modifications

Add a new http API to retrieve the message ID by offset.
We propose to add a new API to retrieve the message ID by offset, enabling us to cache the mapping between message ID and offset.
This will allow us to use offsets for seek and acknowledgment operations when consuming messages through the standardized API.
…picWithRollbackDuration (apache#24318)

### Motivation
![image](https://github.com/user-attachments/assets/ddd6e926-b4c4-438f-9c9a-2b8407fcbd09)
The root cause of this problem is that the `reader` is not cleaned up after the unit test `shouldSupportCancellingReadNextAsync` is executed.


### Modifications
Add @cleanup on `reader` in test `shouldSupportCancellingReadNextAsync`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.