Skip to content

Commit

Permalink
MB-49271 Merge remote-tracking branch 'couchbase/mad-hatter'
Browse files Browse the repository at this point in the history
* MB-49271 [BP] Takeover via orchestrator using conn names < 200 chars
* MB-49271 [BP] Limit DCP connection names to 200 chars max

Change-Id: I1752fa75c346f349c4c846dad3b2392f809487d1
  • Loading branch information
stevewatanabe committed Nov 3, 2021
2 parents d504ed3 + 2fddafd commit f304d0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dcp_replicator.erl
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ get_connection_name_test() ->
"nodeA.eng.couchbase.com:bucket1", ConnAB),
?assertEqual(true, length(ConnAB) =< ?MAX_DCP_CONNECTION_NAME),

%% Test where the connection name, using the pre-NEO method, won't
%% Test where the connection name, using the previous method, won't
%% fit into the maximum allowed.

Node1 = "ns_1@platform-couchbase-cluster-0000.platform-couchbase-cluster."
Expand Down
4 changes: 2 additions & 2 deletions src/ns_single_vbucket_mover.erl
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ get_takeover_connection_name(NewMaster, OldMaster, Bucket, VBucket) ->
NewM, ":",
string:slice(Bucket, 0, 60), ":",
integer_to_list(VBucket)]),
true = length(ConnName1) =< ?MAX_DCP_CONNECTION_NAME,
ConnName1
true = length(ConnName1) =< ?MAX_DCP_CONNECTION_NAME,
ConnName1
end.

do_takeover(false, Pid, _Bucket, VBucket) ->
Expand Down

0 comments on commit f304d0f

Please sign in to comment.