Commit d56d8c8
authored
[Backport 2.x] [Writable Warm] Composite Directory implementation and integrating it with FileCache (#14489)
* [Writable Warm] Composite Directory implementation and integrating it with FileCache (#12782)
* Composite Directory POC
Signed-off-by: Shreyansh Ray <[email protected]>
* Refactor TransferManager interface to RemoteStoreFileTrackerAdapter
Signed-off-by: Shreyansh Ray <[email protected]>
* Implement block level fetch for Composite Directory
Signed-off-by: Shreyansh Ray <[email protected]>
* Removed CACHE state from FileTracker
Signed-off-by: Shreyansh Ray <[email protected]>
* Fixes after latest pull
Signed-off-by: Shreyansh Ray <[email protected]>
* Add new setting for warm, remove store type setting, FileTracker and RemoteStoreFileTrackerAdapter, CompositeDirectoryFactory and update Composite Directory implementation
Signed-off-by: Shreyansh Ray <[email protected]>
* Modify TransferManager - replace BlobContainer with Functional Interface to fetch an InputStream instead
Signed-off-by: Shreyansh Ray <[email protected]>
* Reuse OnDemandBlockSnapshotIndexInput instead of OnDemandBlockCompositeIndexInput
Signed-off-by: Shreyansh Ray <[email protected]>
* Modify constructors to avoid breaking public api contract and code review fixes
Signed-off-by: Shreyansh Ray <[email protected]>
* Add experimental annotations for newly created classes and review comment fixes
Signed-off-by: Shreyansh Ray <[email protected]>
* Use ref count as a temporary measure to prevent file from eviction until uploaded to Remote
Signed-off-by: Shreyansh Ray <[email protected]>
* Remove method level locks
Signed-off-by: Shreyansh Ray <[email protected]>
* Handle tmp file deletion
Signed-off-by: Shreyansh Ray <[email protected]>
* Nit fixes
Signed-off-by: Shreyansh Ray <[email protected]>
* Handle delete and close in Composite Directory, log current state of FileCache and correct it's clear method and modify unit and integration tests as per review comments
Signed-off-by: Shreyansh Ray <[email protected]>
* Refactor usages of WRITEABLE_REMOTE_INDEX_SETTING to TIERED_REMOTE_INDEX_SETTING
Signed-off-by: Shreyansh Ray <[email protected]>
* Add tests for FileCachedIndexInput and review comment fixes
Signed-off-by: Shreyansh Ray <[email protected]>
* Add additional IT for feature flag disabled
Signed-off-by: Shreyansh Ray <[email protected]>
* Move setting for Partial Locality type behind Feature Flag, fix bug for ref count via cloneMap in FullFileCachedIndexInput and other review fixes
Signed-off-by: Shreyansh Ray <[email protected]>
* Minor test and nit fixes
Signed-off-by: Shreyansh Ray <[email protected]>
* Add javadocs for FullFileCachedIndexInput
Signed-off-by: Shreyansh Ray <[email protected]>
* Minor precommit fixes
Signed-off-by: Shreyansh Ray <[email protected]>
---------
Signed-off-by: Shreyansh Ray <[email protected]>
* Fix Writable Warm test for feature flag disabled condition by changing exception type caught
Signed-off-by: Shreyansh Ray <[email protected]>
---------
Signed-off-by: Shreyansh Ray <[email protected]>1 parent 708c371 commit d56d8c8
File tree
35 files changed
+1889
-209
lines changed- server/src
- internalClusterTest/java/org/opensearch/remotestore
- main/java/org/opensearch
- common/settings
- index
- shard
- store
- remote
- directory
- filecache
- file
- utils
- cache
- indices
- node
- test/java/org/opensearch/index/store
- remote
- filecache
- file
- utils
- cache
- test/framework/src/main/java/org/opensearch/test
35 files changed
+1889
-209
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
Lines changed: 160 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
263 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
| |||
Lines changed: 76 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
144 | 157 | | |
145 | 158 | | |
146 | 159 | | |
| |||
297 | 310 | | |
298 | 311 | | |
299 | 312 | | |
| 313 | + | |
300 | 314 | | |
301 | 315 | | |
302 | 316 | | |
| |||
315 | 329 | | |
316 | 330 | | |
317 | 331 | | |
318 | | - | |
| 332 | + | |
| 333 | + | |
319 | 334 | | |
320 | 335 | | |
321 | 336 | | |
| |||
327 | 342 | | |
328 | 343 | | |
329 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
330 | 369 | | |
331 | 370 | | |
332 | 371 | | |
| |||
577 | 616 | | |
578 | 617 | | |
579 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
580 | 653 | | |
581 | 654 | | |
582 | 655 | | |
| |||
665 | 738 | | |
666 | 739 | | |
667 | 740 | | |
668 | | - | |
| 741 | + | |
| 742 | + | |
669 | 743 | | |
670 | 744 | | |
671 | 745 | | |
| |||
0 commit comments