Commit 08e52b9
Fix payload size issue (#27388)
* Fix Payload Size issue, increase bufer
* Handle single entitiy with > 10 mb
* Single entity push
* Normalize SQl Queries
* Update generated TypeScript types
* Add Tests
* Fix Failing Test
* Revert fixes
* Fix Tests
* Strip Lineage
* Strip lIneage and make default 9 mb
* Add Warn log on Large entity size
* Review Comments
* Remove hierarchical fields
* remove team containing users
* revert unwanted changes
* Fix test failures from payload size default change
- Update mock expectations in SearchIndexExecutorControlFlowTest and
DistributedJobParticipantTest to use DEFAULT_BULK_PAYLOAD_SIZE_BYTES
instead of hardcoded 104857600L (old 100MB default)
- Remove "charts" from DashboardIndex excluded fields — charts are needed
for search filters and column lineage resolution
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix hardcoded payload size fallback in DistributedJobParticipant
Replace hardcoded 104857600L with SearchClusterMetrics.DEFAULT_BULK_PAYLOAD_SIZE_BYTES
to use the centralized 9MB default consistently.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Spotless
* Update payLoadSize schema defaults to 9MB
The JSON schema default for payLoadSize was 104857600 (100MB), which
meant EventPublisherJob.getPayLoadSize() always returned 100MB instead
of null, bypassing the DEFAULT_BULK_PAYLOAD_SIZE_BYTES fallback in
DistributedJobParticipant. Align schema defaults with the 9MB bulk
payload limit.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Address review comments: fix log message, reuse getLineageData, fix test key algorithm
- Fix misleading log in stripLineageForSize: report post-strip size, not
imply bytes removed
- Reuse getLineageData() in populateLineageData() instead of duplicating
the DAO call and edge construction loop
- Fix AddUpdateLineageScriptTest key algorithm to use maxKey+1 matching
the Painless script, avoiding key collisions after deletions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Address review: equals() in Painless, prune stale SQL keys, flush oversized single ops
- Use .equals() instead of == for string comparison in REMOVE_LINEAGE_SCRIPT
Painless to be explicit about value equality and null-safe (params on left)
- Prune orphaned sqlQueryKey in ADD_UPDATE_LINEAGE when updating an edge
with a different SQL query, preventing unbounded lineageSqlQueries growth
- Restore currentBufferSize >= maxPayloadSizeBytes check in
CustomBulkProcessor.add() so a single oversized operation is flushed
immediately rather than sitting in the buffer
- Update AddUpdateLineageScriptTest to mirror the new pruning logic
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e7b2d26 commit 08e52b9
114 files changed
Lines changed: 1415 additions & 315 deletions
File tree
- openmetadata-service/src
- main/java/org/openmetadata/service
- apps/bundles/searchIndex
- distributed
- search
- indexes
- test/java/org/openmetadata/service
- apps/bundles/searchIndex
- distributed
- search/indexes
- openmetadata-spec/src/main/resources
- elasticsearch
- en
- jp
- ru
- zh
- json/schema
- api/lineage
- entity/applications/configuration/internal
- system
- openmetadata-ui/src/main/resources/ui/src/generated/api/lineage
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 90 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| 138 | + | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
| |||
294 | 297 | | |
295 | 298 | | |
296 | 299 | | |
297 | | - | |
| 300 | + | |
298 | 301 | | |
299 | 302 | | |
300 | 303 | | |
| |||
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
306 | | - | |
307 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
308 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
309 | 346 | | |
310 | 347 | | |
311 | 348 | | |
312 | 349 | | |
313 | 350 | | |
314 | 351 | | |
315 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
316 | 356 | | |
317 | 357 | | |
318 | 358 | | |
| |||
321 | 361 | | |
322 | 362 | | |
323 | 363 | | |
324 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
325 | 368 | | |
326 | 369 | | |
327 | 370 | | |
| |||
369 | 412 | | |
370 | 413 | | |
371 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
372 | 451 | | |
373 | 452 | | |
374 | 453 | | |
| |||
755 | 834 | | |
756 | 835 | | |
757 | 836 | | |
| 837 | + | |
| 838 | + | |
758 | 839 | | |
759 | 840 | | |
760 | 841 | | |
| |||
766 | 847 | | |
767 | 848 | | |
768 | 849 | | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
769 | 854 | | |
770 | 855 | | |
771 | 856 | | |
| |||
852 | 937 | | |
853 | 938 | | |
854 | 939 | | |
855 | | - | |
856 | | - | |
857 | 940 | | |
858 | 941 | | |
859 | 942 | | |
| |||
Lines changed: 84 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| 157 | + | |
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
| |||
333 | 336 | | |
334 | 337 | | |
335 | 338 | | |
336 | | - | |
| 339 | + | |
337 | 340 | | |
338 | 341 | | |
339 | 342 | | |
| |||
354 | 357 | | |
355 | 358 | | |
356 | 359 | | |
357 | | - | |
358 | | - | |
359 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
360 | 395 | | |
| 396 | + | |
361 | 397 | | |
362 | 398 | | |
363 | 399 | | |
| |||
367 | 403 | | |
368 | 404 | | |
369 | 405 | | |
370 | | - | |
| 406 | + | |
371 | 407 | | |
372 | 408 | | |
373 | 409 | | |
| |||
376 | 412 | | |
377 | 413 | | |
378 | 414 | | |
379 | | - | |
| 415 | + | |
380 | 416 | | |
381 | 417 | | |
382 | 418 | | |
| |||
425 | 461 | | |
426 | 462 | | |
427 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
428 | 500 | | |
429 | 501 | | |
430 | 502 | | |
| |||
899 | 971 | | |
900 | 972 | | |
901 | 973 | | |
| 974 | + | |
| 975 | + | |
902 | 976 | | |
903 | 977 | | |
904 | 978 | | |
| |||
910 | 984 | | |
911 | 985 | | |
912 | 986 | | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
913 | 991 | | |
914 | 992 | | |
915 | 993 | | |
| |||
1001 | 1079 | | |
1002 | 1080 | | |
1003 | 1081 | | |
1004 | | - | |
1005 | | - | |
1006 | 1082 | | |
1007 | 1083 | | |
1008 | 1084 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | | - | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
0 commit comments