Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1460,8 +1460,8 @@ public void operationComplete() {
ledger.getName(), newReadPosition, name);
}
}
callback.resetComplete(newReadPosition);
updateLastActive();
callback.resetComplete(newReadPosition);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,9 @@ void testLastActiveAfterResetCursor() throws Exception {

long lastActive = cursor.getLastActive();

// ensure that the next last active time will be greater than the current one
Thread.sleep(1L);

cursor.asyncResetCursor(lastPosition, false, new AsyncCallbacks.ResetCursorCallback() {
@Override
public void resetComplete(Object ctx) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,8 @@ public SchemaStorageFormat.SchemaLocator deserialize(String path, byte[] content
producer.close();
}

@Test
// This test fails consistently, disabling until it is fixed. Issue https://github.com/apache/pulsar/issues/24262
@Test(enabled = false)
public void testPendingQueueSizeIfIncompatible() throws Exception {
final String namespace = BrokerTestUtil.newUniqueName(PUBLIC_TENANT + "/ns");
admin.namespaces().createNamespace(namespace, Sets.newHashSet(CLUSTER_NAME));
Expand Down