You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Event Hubs] Set GeoDR on management link (Azure#48204)
The focus of these changes is to set the desired capability for GeoDR on the
management link, so that requests for Event Hub and partition metadata can take
it into account for offset formatting. Also included are tweaks to the tests for
`EventPosition.Latest` to reduce flakininess due to timing issues during nightly
runs.
// If more than one event was read, no need to keep going.
2429
2458
2430
-
varreadState=awaitreadTask;
2431
-
Assert.That(cancellationSource.IsCancellationRequested,Is.False,"The cancellation token should not have been signaled.");
2432
-
Assert.That(readState.Events.Count,Is.EqualTo(sourceEvents.Count),"Only the source events should have been read.");
2459
+
if(++eventsRead>1)
2460
+
{
2461
+
break;
2462
+
}
2463
+
}
2464
+
}
2465
+
catch(TaskCanceledException)
2466
+
{
2467
+
// Expected
2468
+
}
2469
+
});
2433
2470
2434
-
foreach(varsourceEventinsourceEvents)
2471
+
// Give the receiver a moment to ensure that it is established and then send events for it to read.
2472
+
2473
+
varsendTask=Task.Run(async()=>
2474
+
{
2475
+
try
2435
2476
{
2436
-
varsourceId=sourceEvent.MessageId;
2437
-
Assert.That(readState.Events.TryGetValue(sourceId,outvarreadEvent),Is.True,$"The event with custom identifier [{sourceId }] was not processed.");
2438
-
Assert.That(sourceEvent.IsEquivalentTo(readEvent.Data),$"The event with custom identifier [{sourceId }] did not match the corresponding processed event.");
0 commit comments