Skip to content

Commit

Permalink
HBASE-26542 Apply a package to test protobuf files
Browse files Browse the repository at this point in the history
This is needed in a couple places in order to test that traces over the IPC layer carry correct
span names, and it's good hygiene anyway.

Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
ndimiduk committed Dec 16, 2021
1 parent 0866975 commit d7c3720
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* limitations under the License.
*/
syntax = "proto2";
package hbase.test.pb;

// Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* limitations under the License.
*/
syntax = "proto2";
package hbase.test.pb;

// Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* limitations under the License.
*/
syntax = "proto2";
package hbase.test.pb;

// Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* limitations under the License.
*/
syntax = "proto2";
package hbase.test.pb;

option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "IncrementCounterProcessorTestProtos";
Expand Down
1 change: 1 addition & 0 deletions hbase-endpoint/src/main/protobuf/ShellExecEndpoint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/

syntax = "proto2";
package hbase.test.pb;
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "ShellExecEndpoint";
option java_generic_services = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* limitations under the License.
*/
syntax = "proto2";
package hbase.test.pb;
option java_package = "org.apache.hadoop.hbase.shaded.ipc.protobuf.generated";
option java_outer_classname = "TestProcedureProtos";
option java_generic_services = true;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol-shaded/src/main/protobuf/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* limitations under the License.
*/
syntax = "proto2";
package hbase.test.pb;

option java_package = "org.apache.hadoop.hbase.shaded.ipc.protobuf.generated";
option java_outer_classname = "TestProtos";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* limitations under the License.
*/
syntax = "proto2";
package hbase.test.pb;
option java_package = "org.apache.hadoop.hbase.shaded.ipc.protobuf.generated";
option java_outer_classname = "TestRpcServiceProtos";
option java_generic_services = true;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/PingProtocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
syntax = "proto2";

package hbase.test.pb;
// Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "PingProtos";
Expand Down

0 comments on commit d7c3720

Please sign in to comment.