mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[Reporting] UUID vs PUID (#170177)
## Summary Closes [169732](https://github.com/elastic/kibana/issues/169732)
This commit is contained in:
parent
5cfd05a2fa
commit
3e92751b39
1 changed files with 2 additions and 3 deletions
|
@ -8,7 +8,7 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
|
|||
import { ByteSizeValue } from '@kbn/config-schema';
|
||||
import type { ElasticsearchClient, Logger } from '@kbn/core/server';
|
||||
import { defaults, get } from 'lodash';
|
||||
import Puid from 'puid';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { Duplex } from 'stream';
|
||||
import type { ReportingCore } from '..';
|
||||
import type { ReportSource } from '../../common/types';
|
||||
|
@ -74,7 +74,6 @@ export class ContentStream extends Duplex {
|
|||
private jobSize?: number;
|
||||
private maxChunkSize?: number;
|
||||
private parameters: Required<ContentStreamParameters>;
|
||||
private puid = new Puid();
|
||||
private primaryTerm?: number;
|
||||
private seqNo?: number;
|
||||
|
||||
|
@ -233,7 +232,7 @@ export class ContentStream extends Duplex {
|
|||
|
||||
private async writeChunk(content: string) {
|
||||
const { id: parentId, index } = this.document;
|
||||
const id = this.puid.generate();
|
||||
const id = uuidv4();
|
||||
|
||||
this.logger.debug(`Writing chunk #${this.chunksWritten} (${id}).`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue