Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
neoppod
Commits
aa48adf9
Commit
aa48adf9
authored
Mar 12, 2021
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PartitionTable: rename getAssignedPartitionList to getReadableOffsetList
parent
fa581be5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
neo/lib/pt.py
neo/lib/pt.py
+1
-1
neo/storage/handlers/client.py
neo/storage/handlers/client.py
+1
-1
neo/tests/threaded/testReplication.py
neo/tests/threaded/testReplication.py
+1
-1
No files found.
neo/lib/pt.py
View file @
aa48adf9
...
...
@@ -118,7 +118,7 @@ class PartitionTable(object):
added_list
.
append
(
node
)
return
added_list
def
get
AssignedPartition
List
(
self
,
uuid
):
def
get
ReadableOffset
List
(
self
,
uuid
):
""" Return the partition assigned to the specified UUID """
assigned_partitions
=
[]
for
offset
in
xrange
(
self
.
np
):
...
...
neo/storage/handlers/client.py
View file @
aa48adf9
...
...
@@ -163,7 +163,7 @@ class ClientOperationHandler(BaseHandler):
app
=
self
.
app
if
partition
==
INVALID_PARTITION
:
partition_list
=
app
.
pt
.
get
AssignedPartition
List
(
app
.
uuid
)
partition_list
=
app
.
pt
.
get
ReadableOffset
List
(
app
.
uuid
)
else
:
partition_list
=
[
partition
]
...
...
neo/tests/threaded/testReplication.py
View file @
aa48adf9
...
...
@@ -82,7 +82,7 @@ class ReplicationTests(NEOThreadedTest):
if
storage
.
pt
is
None
:
storage
.
loadPartitionTable
()
self
.
assertEqual
(
np
,
storage
.
pt
.
getPartitions
())
for
partition
in
pt
.
get
AssignedPartition
List
(
storage
.
uuid
):
for
partition
in
pt
.
get
ReadableOffset
List
(
storage
.
uuid
):
cell_list
=
upstream_pt
.
getCellList
(
partition
,
readable
=
True
)
source
=
source_dict
[
random
.
choice
(
cell_list
).
getUUID
()]
self
.
checkPartitionReplicated
(
source
,
storage
,
partition
,
**
kw
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment