Skip to content

Commit

Permalink
distsqlpb: rename protos back to distsqlrun
Browse files Browse the repository at this point in the history
The move of code to the `distsqlpb` package also inadvertently renamed
the actual protobuf service endpoints and messages, which represented an
accidental breaking change between 2.1 and 19.1 and would result in
errors in mixed clusters.

This commit reverts that change, restoring harmony for mixed-version
clusters.

Release note: None
  • Loading branch information
jordanlewis committed Apr 5, 2019
1 parent b88a6ce commit 4a72b8d
Show file tree
Hide file tree
Showing 7 changed files with 667 additions and 640 deletions.
194 changes: 100 additions & 94 deletions pkg/sql/distsqlpb/api.pb.go

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion pkg/sql/distsqlpb/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
// APIs for distributed SQL; see docs/RFCS/distributed_sql.md

syntax = "proto2";
package cockroach.sql.distsqlpb;
// Beware! This package name must not be changed, even though it doesn't match
// the Go package name, because it defines the Protobuf message names which
// can't be changed without breaking backward compatibility.
package cockroach.sql.distsqlrun;
option go_package = "distsqlpb";

import "gogoproto/gogo.proto";
Expand Down
340 changes: 173 additions & 167 deletions pkg/sql/distsqlpb/data.pb.go

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion pkg/sql/distsqlpb/data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
// All the concepts here are "physical plan" concepts.

syntax = "proto2";
package cockroach.sql.distsqlpb;
// Beware! This package name must not be changed, even though it doesn't match
// the Go package name, because it defines the Protobuf message names which
// can't be changed without breaking backward compatibility.
package cockroach.sql.distsqlrun;
option go_package = "distsqlpb";

import "jobs/jobspb/jobs.proto";
Expand Down
754 changes: 380 additions & 374 deletions pkg/sql/distsqlpb/processors.pb.go

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion pkg/sql/distsqlpb/processors.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
// All the concepts here are "physical plan" concepts.

syntax = "proto2";
package cockroach.sql.distsqlpb;
// Beware! This package name must not be changed, even though it doesn't match
// the Go package name, because it defines the Protobuf message names which
// can't be changed without breaking backward compatibility.
package cockroach.sql.distsqlrun;
option go_package = "distsqlpb";

import "jobs/jobspb/jobs.proto";
Expand Down
4 changes: 2 additions & 2 deletions pkg/sql/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func TestTrace(t *testing.T) {
// Depending on whether the data is local or not, we may not see these
// spans.
optionalSpans: []string{
"/cockroach.sql.distsqlpb.DistSQL/SetupFlow",
"/cockroach.sql.distsqlrun.DistSQL/SetupFlow",
"noop",
},
},
Expand Down Expand Up @@ -201,7 +201,7 @@ func TestTrace(t *testing.T) {
// Depending on whether the data is local or not, we may not see these
// spans.
optionalSpans: []string{
"/cockroach.sql.distsqlpb.DistSQL/SetupFlow",
"/cockroach.sql.distsqlrun.DistSQL/SetupFlow",
"noop",
},
},
Expand Down

0 comments on commit 4a72b8d

Please sign in to comment.