Commit dd7bb9d
Reject external versioning when script is configured in OpenSearch sink (opensearch-project#6773)
OpenSearch does not support external versioning with scripted upserts.
Add config-time validation in IndexConfiguration to fail fast with a
clear error message instead of getting runtime 400 errors from OpenSearch.
Signed-off-by: Dinu John <86094133+dinujoh@users.noreply.github.com>1 parent cd346f0 commit dd7bb9d
2 files changed
Lines changed: 29 additions & 0 deletions
File tree
- data-prepper-plugins/opensearch/src
- main/java/org/opensearch/dataprepper/plugins/sink/opensearch/index
- test/java/org/opensearch/dataprepper/plugins/sink/opensearch/index
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
305 | 312 | | |
306 | 313 | | |
307 | 314 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
656 | 678 | | |
0 commit comments