Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
b534e2dd
Commit
b534e2dd
authored
7 years ago
by
skeirik2
Browse files
Options
Downloads
Patches
Plain Diff
added missing code to putBytes from LCS
parent
e2297b3b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala
+24
-0
24 additions, 0 deletions
...n/scala/org/apache/spark/storage/memory/MemoryStore.scala
with
24 additions
and
0 deletions
core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala
+
24
−
0
View file @
b534e2dd
...
@@ -159,6 +159,30 @@ private[spark] class MemoryStore(
...
@@ -159,6 +159,30 @@ private[spark] class MemoryStore(
entries
.
synchronized
{
entries
.
synchronized
{
entries
.
put
(
blockId
,
entry
)
entries
.
put
(
blockId
,
entry
)
}
}
// SS
val
blockExInfos
=
blockManager
.
blockInfoManager
.
blockExInfos
val
inMemExInfos
=
blockManager
.
blockInfoManager
.
inMemExInfos
if
(
blockId
.
isRDD
)
{
val
curValue
=
blockExInfos
.
get
(
blockId
)
curValue
.
size
=
size
curValue
.
writeFinAndCalCreatCost
(
System
.
currentTimeMillis
())
// add to SortMap
inMemExInfos
.
synchronized
{
logInfo
(
"Phoenix: Add "
+
curValue
.
blockId
+
" to inMemBlockExInfo"
)
inMemExInfos
.
add
(
curValue
)
}
logInfo
(
"Create Block "
+
blockId
+
"and store in memory cost "
+
curValue
.
creatCost
+
" and normCost is "
+
curValue
.
norCost
)
// update son's start time in par's watching list
var
sonSet
=
blockExInfos
.
get
(
blockId
).
sonSet
// sonSet.synchronized
for
(
sonId
<-
sonSet
)
{
blockExInfos
.
get
(
sonId
).
creatStartTime
=
System
.
currentTimeMillis
()
logInfo
(
"Phoenix: update start time of sonId "
+
sonId
)
}
sonSet
=
Set
()
}
// SS
logInfo
(
"Block %s stored as bytes in memory (estimated size %s, free %s)"
.
format
(
logInfo
(
"Block %s stored as bytes in memory (estimated size %s, free %s)"
.
format
(
blockId
,
Utils
.
bytesToString
(
size
),
Utils
.
bytesToString
(
maxMemory
-
blocksMemoryUsed
)))
blockId
,
Utils
.
bytesToString
(
size
),
Utils
.
bytesToString
(
maxMemory
-
blocksMemoryUsed
)))
true
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment