Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
90236efc
Commit
90236efc
authored
Aug 01, 2017
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.2.6: fix bug when targeting cluster on 4.0+
parent
15ec0573
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
Directory.build.props
Directory.build.props
+1
-1
ClusterConfiguration.cs
...xchange.Redis/StackExchange/Redis/ClusterConfiguration.cs
+9
-4
ReleaseNotes.md
docs/ReleaseNotes.md
+4
-0
No files found.
Directory.build.props
View file @
90236efc
<Project>
<PropertyGroup>
<VersionPrefix>1.2.
5
</VersionPrefix>
<VersionPrefix>1.2.
6
</VersionPrefix>
<Copyright>2017 Stack Exchange, Inc.</Copyright>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
...
...
StackExchange.Redis/StackExchange/Redis/ClusterConfiguration.cs
View file @
90236efc
...
...
@@ -182,8 +182,8 @@ internal ClusterConfiguration(ServerSelectionStrategy serverSelectionStrategy, s
if
(
string
.
IsNullOrWhiteSpace
(
line
))
continue
;
var
node
=
new
ClusterNode
(
this
,
line
,
origin
);
// Be resilient to ":0 {master,slave},fail,noaddr" nodes
if
(
node
.
IsNoAddr
)
// Be resilient to ":0 {master,slave},fail,noaddr" nodes
, and nodes where the endpoint doesn't parse
if
(
node
.
IsNoAddr
||
node
.
EndPoint
==
null
)
continue
;
// Override the origin value with the endpoint advertised with the target node to
...
...
@@ -308,8 +308,13 @@ internal ClusterNode(ClusterConfiguration configuration, string raw, EndPoint or
var
parts
=
raw
.
Split
(
StringSplits
.
Space
);
var
flags
=
parts
[
2
].
Split
(
StringSplits
.
Comma
);
EndPoint
=
Format
.
TryParseEndPoint
(
parts
[
1
]);
// redis 4 changes the format of "cluster nodes" - adds @... to the endpoint
var
ep
=
parts
[
1
];
int
at
=
ep
.
IndexOf
(
'@'
);
if
(
at
>=
0
)
ep
=
ep
.
Substring
(
0
,
at
);
EndPoint
=
Format
.
TryParseEndPoint
(
ep
);
if
(
flags
.
Contains
(
"myself"
))
{
IsMyself
=
true
;
...
...
docs/ReleaseNotes.md
View file @
90236efc
...
...
@@ -2,6 +2,10 @@
# Important: .NET 4.0 support is currently **disabled**; if you need .NET 4.0, please stick with 1.2.1 while we keep investigating
## 1.2.6
-
fix change to
`cluster nodes`
output when using cluster-enabled target and 4.0+ (see
[
redis #4186
]
https://github.com/antirez/redis/issues/4186)
## 1.2.5
-
critical fix: "poll mode" was disabled in the build for net45/net60 - impact: IO jams and lack of reader during high load
...
...
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