-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-38909][BUILD][CORE][YARN][FOLLOWUP] Make some code cleanup related to shuffle state db #37648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-38909][BUILD][CORE][YARN][FOLLOWUP] Make some code cleanup related to shuffle state db #37648
Changes from all commits
579956e
2caffd1
87c42dd
e3500cf
86681e3
7e3befa
6ceb2d0
11b9dad
8b77b61
3e59b7b
7a22aeb
9449457
1f3b62b
ec370e7
11850af
024ec63
c8ac7e4
33c96a6
a5df1c4
dfe7ce5
6c91380
8f47c15
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -125,16 +125,13 @@ public ShuffleIndexInformation load(String filePath) throws IOException { | |
| .weigher((Weigher<String, ShuffleIndexInformation>) | ||
| (filePath, indexInfo) -> indexInfo.getRetainedMemorySize()) | ||
| .build(indexCacheLoader); | ||
| DBBackend dbBackend = null; | ||
| if (registeredExecutorFile != null) { | ||
| String dbBackendName = | ||
| conf.get(Constants.SHUFFLE_SERVICE_DB_BACKEND, DBBackend.LEVELDB.name()); | ||
| dbBackend = DBBackend.byName(dbBackendName); | ||
| logger.info("Configured {} as {} and actually used value {}", | ||
| Constants.SHUFFLE_SERVICE_DB_BACKEND, dbBackendName, dbBackend); | ||
| } | ||
| String dbBackendName = | ||
| conf.get(Constants.SHUFFLE_SERVICE_DB_BACKEND, DBBackend.LEVELDB.name()); | ||
| DBBackend dbBackend = DBBackend.byName(dbBackendName); | ||
| db = DBProvider.initDB(dbBackend, this.registeredExecutorFile, CURRENT_VERSION, mapper); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Review note: Recovery need not be enabled for node managers - in which case
So the main change in this file and |
||
| if (db != null) { | ||
| logger.info("Use {} as the implementation of {}", | ||
| dbBackend, Constants.SHUFFLE_SERVICE_DB_BACKEND); | ||
| executors = reloadRegisteredExecutors(db); | ||
| } else { | ||
| executors = Maps.newConcurrentMap(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.