Skip to content

Commit

Permalink
Increase error threshold for batch length (#10336)
Browse files Browse the repository at this point in the history
  • Loading branch information
andre4i authored May 19, 2022
1 parent 924a033 commit 50c4507
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
18 changes: 0 additions & 18 deletions experimental/dds/tree/src/test/Virtualization.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,19 +210,11 @@ describe('SharedTree history virtualization', () => {
});

it('can upload full chunks with incomplete chunks in the edit log', async () => {
testObjectProvider.logger.registerExpectedEvent(
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' },
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' }
);
await addNewEditChunks(1, 50);
expect(editChunksUploaded).to.equal(1);
});

it('correctly saves handles and their corresponding starting revisions to the summary', async () => {
testObjectProvider.logger.registerExpectedEvent(
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' },
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' }
);
await addNewEditChunks(4);

const { editHistory } = sharedTree.saveSummary() as SharedTreeSummary;
Expand Down Expand Up @@ -278,11 +270,6 @@ describe('SharedTree history virtualization', () => {
});

it('does not cause misaligned chunks', async () => {
testObjectProvider.logger.registerExpectedEvent(
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' },
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' },
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' }
);
await addNewEditChunks(1, 50);

const summary = sharedTree.saveSummary();
Expand All @@ -309,11 +296,6 @@ describe('SharedTree history virtualization', () => {

it('does not cause misaligned chunks for format version 0.0.2', async () => {
await useSharedTreeSummaryv0_0_2();
testObjectProvider.logger.registerExpectedEvent(
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' },
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' },
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' }
);

// Add enough edits for a chunk and a half
await addNewEditChunks(1, 50);
Expand Down
5 changes: 0 additions & 5 deletions experimental/dds/tree/src/test/utilities/SharedTreeTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1322,11 +1322,6 @@ export function runSharedTreeOperationsTests(
writeFormat,
summarizeHistory: false,
});
testObjectProvider.logger.registerExpectedEvent(
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' },
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' },
{ eventName: 'fluid:telemetry:Batching:LengthTooBig' }
);

applyNoop(tree);
await testObjectProvider.ensureSynchronized();
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/container-runtime/src/batchTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ export class BatchTracker {
export const BindBatchTracker = (
batchEventEmitter: EventEmitter,
logger: ITelemetryLogger,
batchLengthThreshold: number = 128,
batchLengthThreshold: number = 1000,
batchCountSamplingRate: number = 1000,
) => new BatchTracker(batchEventEmitter, logger, batchLengthThreshold, batchCountSamplingRate);

0 comments on commit 50c4507

Please sign in to comment.