chore: update license header and do the rename (#290)
Signed-off-by: tison <wander4096@gmail.com>
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index 97a4464..ec6e749 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -1,16 +1,19 @@
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
name: Check
on:
diff --git a/.github/workflows/dockerhub-publish-nighty.yml b/.github/workflows/dockerhub-publish-nighty.yml
index d5970e4..55a84e2 100644
--- a/.github/workflows/dockerhub-publish-nighty.yml
+++ b/.github/workflows/dockerhub-publish-nighty.yml
@@ -1,16 +1,19 @@
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
name: Publish Nightly Docker image
@@ -21,11 +24,11 @@
env:
REGISTRY: ghcr.io
- IMAGE_NAME: ceresdb/horaemeta-server
+ IMAGE_NAME: apache/horaemeta-server
jobs:
docker:
- if: github.repository_owner == 'CeresDB'
+ if: github.repository_owner == 'FIXME'
runs-on: ubuntu-latest
permissions:
contents: read
@@ -58,4 +61,4 @@
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly-${{ env.BUILD_DATE }}-${{ env.SHORT_SHA }}
- registry.cn-hangzhou.aliyuncs.com/ceresdb/horaemeta-server:nightly-${{ env.BUILD_DATE }}-${{ env.SHORT_SHA }}
+ registry.cn-hangzhou.aliyuncs.com/apache/horaemeta-server:nightly-${{ env.BUILD_DATE }}-${{ env.SHORT_SHA }}
diff --git a/.github/workflows/dockerhub-publish.yml b/.github/workflows/dockerhub-publish.yml
index 8be86ea..5efd328 100644
--- a/.github/workflows/dockerhub-publish.yml
+++ b/.github/workflows/dockerhub-publish.yml
@@ -1,16 +1,19 @@
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
name: Publish Docker image
@@ -22,7 +25,7 @@
jobs:
docker:
- if: github.repository_owner == 'CeresDB'
+ if: github.repository_owner == 'FIXME'
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -39,4 +42,4 @@
with:
context: .
push: true
- tags: ceresdb/horaemeta-server:latest,horaedb/horaemeta-server:${{github.ref_name}}
+ tags: apache/horaemeta-server:latest,horaedb/horaemeta-server:${{github.ref_name}}
diff --git a/.golangci.yml b/.golangci.yml
index 31ba6a1..590dffc 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -1,16 +1,19 @@
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
run:
timeout: '5m'
@@ -56,4 +59,4 @@
confidence: 3
exhaustruct:
include:
- - 'github.com.CeresDB.horaemeta.*'
+ - 'github.com.apache.incubator-horaedb-meta.*'
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 763d201..ac3bef5 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -3,19 +3,16 @@
Thank you for thinking of contributing! We very much welcome contributions from the community.
To make the process easier and more valuable for everyone involved we have a few rules and guidelines to follow.
-Anyone with a Github account is free to file issues on the project.
-However, if you want to contribute documentation or code then you will need to sign [CeresDB's Individual Contributor License Agreement (CLA)](https://cla-assistant.io/CeresDB/horaedb).
-
## Submitting Issues and Feature Requests
-Before you file an [issue](https://github.com/CeresDB/horaemeta/issues/new), please search existing issues in case the same or similar issues have already been filed.
+Before you file an [issue](https://github.com/apache/incubator-horaedb-meta/issues/new), please search existing issues in case the same or similar issues have already been filed.
If you find an existing open ticket covering your issue then please avoid adding "👍" or "me too" comments; Github notifications can cause a lot of noise for the project maintainers who triage the back-log.
However, if you have a new piece of information for an existing ticket and you think it may help the investigation or resolution, then please do add it as a comment!
You can signal to the team that you're experiencing an existing issue with one of Github's emoji reactions (these are a good way to add "weight" to an issue from a prioritisation perspective).
### Submitting an Issue
-The [New Issue]((https://github.com/CeresDB/horaemeta/issues/new)) page has templates for both bug reports and feature requests.
+The [New Issue]((https://github.com/apache/incubator-horaedb-meta/issues/new)) page has templates for both bug reports and feature requests.
Please fill one of them out!
The issue templates provide details on what information we will find useful to help us fix an issue.
In short though, the more information you can provide us about your environment and what behaviour you're seeing, the easier we can fix the issue.
@@ -33,14 +30,14 @@
To open a PR you will need to have a Github account.
Fork the `horaemeta` repo and work on a branch on your fork.
-When you have completed your changes, or you want some incremental feedback make a Pull Request to HoraeDB [here](https://github.com/CeresDB/horaemeta/compare).
+When you have completed your changes, or you want some incremental feedback make a Pull Request to HoraeDB [here](https://github.com/apache/incubator-horaedb-meta/compare).
If you want to discuss some work in progress then please prefix `[WIP]` to the
PR title.
For PRs that you consider ready for review, verify the following locally before you submit it:
-* you have a coherent set of logical commits, with messages conforming to the [Conventional Commits](https://github.com/CeresDB/horaedb/docs/conventional-commit.md) specification;
+* you have a coherent set of logical commits, with messages conforming to the [Conventional Commits](https://github.com/apache/incubator-horaedb/docs/conventional-commit.md) specification;
* all the tests and/or benchmarks pass, including documentation tests;
* the code is correctly formatted and all linter checks pass; and
* you haven't left any "code cruft" (commented out code blocks etc).
diff --git a/Dockerfile b/Dockerfile
index 704884c..5841c2a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,16 +1,19 @@
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
## Builder
ARG GOLANG_VERSION=1.21.3
diff --git a/Makefile b/Makefile
index 3d41396..77d6f24 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@
@mkdir -p $(GO_TOOLS_BIN_PATH)
@(which golangci-lint && golangci-lint version | grep '1.54') >/dev/null 2>&1 || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GO_TOOLS_BIN_PATH) v1.54.2
-META_PKG := github.com/CeresDB/horaemeta
+META_PKG := github.com/apache/incubator-horaedb-meta
PACKAGES := $(shell go list ./... | tail -n +2)
PACKAGE_DIRECTORIES := $(subst $(META_PKG)/,,$(PACKAGES))
diff --git a/README.md b/README.md
index b129859..60fc5dc 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# HoraeMeta
-[](https://codecov.io/gh/CeresDB/horaemeta)
+[](https://codecov.io/gh/apache/incubator-horaedb-meta)

HoraeMeta is the meta service for managing the HoraeDB cluster.
@@ -45,7 +45,7 @@
## Contributing
The project is under rapid development so that any contribution is welcome.
-Check our [Contributing Guide](https://github.com/CeresDB/horaemeta/blob/main/CONTRIBUTING.md) and make your first contribution!
+Check our [Contributing Guide](https://github.com/apache/incubator-horaedb-meta/blob/main/CONTRIBUTING.md) and make your first contribution!
## License
HoraeMeta is under [Apache License 2.0](./LICENSE).
diff --git a/cmd/horaemeta-server/main.go b/cmd/horaemeta-server/main.go
index 39a7060..b9c79bf 100644
--- a/cmd/horaemeta-server/main.go
+++ b/cmd/horaemeta-server/main.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package main
@@ -23,10 +26,10 @@
"os/signal"
"syscall"
- "github.com/CeresDB/horaemeta/pkg/coderr"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server"
- "github.com/CeresDB/horaemeta/server/config"
+ "github.com/apache/incubator-horaedb-meta/pkg/coderr"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server"
+ "github.com/apache/incubator-horaedb-meta/server/config"
"github.com/pelletier/go-toml/v2"
"go.uber.org/zap"
)
diff --git a/config/example-cluster0.toml b/config/example-cluster0.toml
index ecc0dfb..0ca3914 100644
--- a/config/example-cluster0.toml
+++ b/config/example-cluster0.toml
@@ -1,16 +1,19 @@
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
etcd-start-timeout-ms = 30000
peer-urls = "http://127.0.0.1:2380"
diff --git a/config/example-cluster1.toml b/config/example-cluster1.toml
index 2213ddd..de359fb 100644
--- a/config/example-cluster1.toml
+++ b/config/example-cluster1.toml
@@ -1,16 +1,19 @@
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
etcd-start-timeout-ms = 30000
peer-urls = "http://127.0.0.1:12380"
diff --git a/config/example-cluster2.toml b/config/example-cluster2.toml
index 165df87..36461d0 100644
--- a/config/example-cluster2.toml
+++ b/config/example-cluster2.toml
@@ -1,16 +1,19 @@
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
etcd-start-timeout-ms = 30000
peer-urls = "http://127.0.0.1:22380"
diff --git a/config/example-standalone.toml b/config/example-standalone.toml
index eb7405a..6650bdd 100644
--- a/config/example-standalone.toml
+++ b/config/example-standalone.toml
@@ -1,16 +1,19 @@
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
etcd-start-timeout-ms = 30000
peer-urls = "http://127.0.0.1:2380"
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index 5f71324..d080b7c 100755
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -1,17 +1,21 @@
#!/usr/bin/env bash
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
diff --git a/docs/style_guide.md b/docs/style_guide.md
index 201f83e..8f79804 100644
--- a/docs/style_guide.md
+++ b/docs/style_guide.md
@@ -10,12 +10,12 @@
- Global error code:
- Any error defined in the repo should be assigned an error code,
- An error code can be used by multiple different errors,
- - The error codes are defined in the single global package [coderr](https://github.com/CeresDB/horaemeta/tree/main/pkg/coderr).
-- Construct: define leaf errors on package level (often in a separate `error.go` file) by package [coderr](https://github.com/CeresDB/horaemeta/tree/main/pkg/coderr).
+ - The error codes are defined in the single global package [coderr](https://github.com/apache/incubator-horaedb-meta/tree/main/pkg/coderr).
+- Construct: define leaf errors on package level (often in a separate `error.go` file) by package [coderr](https://github.com/apache/incubator-horaedb-meta/tree/main/pkg/coderr).
- Wrap: wrap errors by `errors.WithMessage` or `errors.WithMessagef`.
- Check: test the error identity by calling `coderr.Is`.
- Log: only log the error on the top level package.
-- Respond: respond the `CodeError`(defined in package [coderr](https://github.com/CeresDB/horaemeta/tree/main/pkg/coderr)) unwrapped by `errors.Cause` to client on service level.
+- Respond: respond the `CodeError`(defined in package [coderr](https://github.com/apache/incubator-horaedb-meta/tree/main/pkg/coderr)) unwrapped by `errors.Cause` to client on service level.
### Example
`errors.go` in the package `server`:
diff --git a/go.mod b/go.mod
index 730e28d..a61bc71 100644
--- a/go.mod
+++ b/go.mod
@@ -1,9 +1,9 @@
-module github.com/CeresDB/horaemeta
+module github.com/apache/incubator-horaedb-meta
go 1.21
require (
- github.com/CeresDB/horaedbproto/golang v0.0.0-20231130070551-6f27270143a8
+ github.com/apache/incubator-horaedb-proto/golang v0.0.0-20231220150248-453c403a40cd
github.com/caarlos0/env/v6 v6.10.1
github.com/julienschmidt/httprouter v1.3.0
github.com/looplab/fsm v0.3.0
diff --git a/go.sum b/go.sum
index 08acd66..af1544b 100644
--- a/go.sum
+++ b/go.sum
@@ -16,10 +16,6 @@
github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I=
github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
-github.com/CeresDB/horaedbproto/golang v0.0.0-20231129131648-5d5d868218c3 h1:RgOKVfdbnF4W5/TVFf7cIahom5HcV1v0GP2BYDc0BEM=
-github.com/CeresDB/horaedbproto/golang v0.0.0-20231129131648-5d5d868218c3/go.mod h1:RHgzmQBZC4P5+Jm58flXMynMFGbiVQrw1t2ce3wLVas=
-github.com/CeresDB/horaedbproto/golang v0.0.0-20231130070551-6f27270143a8 h1:0DZTY1Pc6eXETDAe8JHoYNEek2imJRwvQbWN218FJNE=
-github.com/CeresDB/horaedbproto/golang v0.0.0-20231130070551-6f27270143a8/go.mod h1:RHgzmQBZC4P5+Jm58flXMynMFGbiVQrw1t2ce3wLVas=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
@@ -27,6 +23,8 @@
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
+github.com/apache/incubator-horaedb-proto/golang v0.0.0-20231220150248-453c403a40cd h1:VoK1Blopwy9KTOgpPRrbnmc34cD1x2gpeml8944Hqmk=
+github.com/apache/incubator-horaedb-proto/golang v0.0.0-20231220150248-453c403a40cd/go.mod h1:Ch92HPIAoGbrgFCtpSgxcYSRgWdpNsIcPG1lfv24Ufs=
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
diff --git a/licenserc.toml b/licenserc.toml
index d38e9c0..cfece62 100644
--- a/licenserc.toml
+++ b/licenserc.toml
@@ -1,18 +1,21 @@
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
-headerPath = "Apache-2.0.txt"
+headerPath = "Apache-2.0-ASF.txt"
excludes = [
# Derived
@@ -20,7 +23,3 @@
"server/coordinator/scheduler/nodepicker/hash/consistent_uniform_test.go",
"server/coordinator/scheduler/nodepicker/hash/consistent_uniform.go",
]
-
-[properties]
-inceptionYear = 2022
-copyrightOwner = "The HoraeDB Authors"
diff --git a/pkg/assert/assert.go b/pkg/assert/assert.go
index 327c766..ae9e0a5 100644
--- a/pkg/assert/assert.go
+++ b/pkg/assert/assert.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package assert
diff --git a/pkg/coderr/code.go b/pkg/coderr/code.go
index e8f1925..b941013 100644
--- a/pkg/coderr/code.go
+++ b/pkg/coderr/code.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package coderr
diff --git a/pkg/coderr/error.go b/pkg/coderr/error.go
index f8d3b24..5977214 100644
--- a/pkg/coderr/error.go
+++ b/pkg/coderr/error.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package coderr
diff --git a/pkg/coderr/error_test.go b/pkg/coderr/error_test.go
index 9e682c5..dc44538 100644
--- a/pkg/coderr/error_test.go
+++ b/pkg/coderr/error_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package coderr
@@ -29,7 +32,7 @@
cerr := NewCodeError(Internal, "test internal error")
err := cerr.WithCausef("failed reason:%s", "for test")
errDesc := fmt.Sprintf("%s", err)
- expectErrDesc := "horaemeta/pkg/coderr/error_test.go:"
+ expectErrDesc := "horaedb-meta/pkg/coderr/error_test.go:"
r.True(strings.Contains(errDesc, expectErrDesc), "actual errDesc:%s", errDesc)
}
diff --git a/pkg/log/config.go b/pkg/log/config.go
index 4776a2e..cc30a2a 100644
--- a/pkg/log/config.go
+++ b/pkg/log/config.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package log
diff --git a/pkg/log/global.go b/pkg/log/global.go
index 2ec9ef9..0b4a207 100644
--- a/pkg/log/global.go
+++ b/pkg/log/global.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package log
diff --git a/pkg/log/log.go b/pkg/log/log.go
index 0f21693..c372631 100644
--- a/pkg/log/log.go
+++ b/pkg/log/log.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package log
diff --git a/scripts/run-integration-test.sh b/scripts/run-integration-test.sh
index c996a96..65eff3e 100644
--- a/scripts/run-integration-test.sh
+++ b/scripts/run-integration-test.sh
@@ -1,17 +1,21 @@
#!/usr/bin/env bash
-# Copyright 2022 The HoraeDB Authors
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
@@ -22,7 +26,7 @@
# Download HoraeDB Code
cd $INTEGRATION_TEST_PATH
-git clone --depth 1 https://github.com/CeresDB/horaedb.git --branch main
+git clone --depth 1 https://github.com/apache/incubator-horaedb.git horaedb --branch main
# Run integration_test
cd horaedb/integration_tests
diff --git a/server/cluster/cluster.go b/server/cluster/cluster.go
index 5f22c32..6af9b2a 100644
--- a/server/cluster/cluster.go
+++ b/server/cluster/cluster.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package cluster
@@ -20,13 +23,13 @@
"context"
"strings"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/manager"
- "github.com/CeresDB/horaemeta/server/id"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/manager"
+ "github.com/apache/incubator-horaedb-meta/server/id"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/pkg/errors"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
diff --git a/server/cluster/manager.go b/server/cluster/manager.go
index 8786c37..beaea50 100644
--- a/server/cluster/manager.go
+++ b/server/cluster/manager.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package cluster
@@ -23,10 +26,10 @@
"sync"
"time"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/id"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/id"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/pkg/errors"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
@@ -289,7 +292,7 @@
}
// DropTable is only used for the HTTP interface.
-// It only deletes the table data in ETCD and does not initiate a table deletion request to CeresDB.
+// It only deletes the table data in ETCD and does not initiate a table deletion request to HoraeDB.
func (m *managerImpl) DropTable(ctx context.Context, clusterName, schemaName, tableName string) error {
cluster, err := m.getCluster(clusterName)
if err != nil {
diff --git a/server/cluster/manager_test.go b/server/cluster/manager_test.go
index 2c5fc90..069d34f 100644
--- a/server/cluster/manager_test.go
+++ b/server/cluster/manager_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package cluster_test
@@ -24,10 +27,10 @@
"testing"
"time"
- "github.com/CeresDB/horaemeta/server/cluster"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/etcdutil"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
clientv3 "go.etcd.io/etcd/client/v3"
)
diff --git a/server/cluster/metadata/cluster_metadata.go b/server/cluster/metadata/cluster_metadata.go
index bb7dcdf..ab9b293 100644
--- a/server/cluster/metadata/cluster_metadata.go
+++ b/server/cluster/metadata/cluster_metadata.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package metadata
@@ -25,8 +28,8 @@
"sort"
"sync"
- "github.com/CeresDB/horaemeta/server/id"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/id"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/pkg/errors"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
@@ -769,13 +772,13 @@
c.logger.Warn("shard version mismatch", zap.Uint32("shardID", uint32(shardInfo.ID)), zap.Uint64("metaVersion", oldShardView.Version), zap.Uint64("nodeVersion", shardInfo.Version))
}
if oldShardView.Version < shardInfo.Version {
- // Shard version in meta not equal to ceresDB, it is needed to be corrected.
+ // Shard version in meta not equal to HoraeDB, it is needed to be corrected.
// Update with expect value.
c.logger.Info("try to update shard version", zap.Uint32("shardID", uint32(shardInfo.ID)), zap.Uint64("expectVersion", oldShardView.Version), zap.Uint64("newVersion", shardInfo.Version))
if err := c.topologyManager.UpdateShardVersionWithExpect(ctx, shardInfo.ID, shardInfo.Version, oldShardView.Version); err != nil {
c.logger.Warn("update shard version with expect failed", zap.Uint32("shardID", uint32(shardInfo.ID)), zap.Uint64("expectVersion", oldShardView.Version), zap.Uint64("newVersion", shardInfo.Version))
}
- // TODO: Maybe we need do some thing to ensure ceresDB status after update shard version.
+ // TODO: Maybe we need do some thing to ensure HoraeDB status after update shard version.
}
}
}
diff --git a/server/cluster/metadata/cluster_metadata_test.go b/server/cluster/metadata/cluster_metadata_test.go
index 6d1eb17..907dbbf 100644
--- a/server/cluster/metadata/cluster_metadata_test.go
+++ b/server/cluster/metadata/cluster_metadata_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package metadata_test
@@ -22,9 +25,9 @@
"testing"
"time"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
)
diff --git a/server/cluster/metadata/compare_benchmark_test.go b/server/cluster/metadata/compare_benchmark_test.go
index ab1088d..1780980 100644
--- a/server/cluster/metadata/compare_benchmark_test.go
+++ b/server/cluster/metadata/compare_benchmark_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package metadata
@@ -19,7 +22,7 @@
import (
"testing"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
)
func buildRegisterNode(shardNumber int) RegisteredNode {
diff --git a/server/cluster/metadata/error.go b/server/cluster/metadata/error.go
index 6735420..b0cb5ed 100644
--- a/server/cluster/metadata/error.go
+++ b/server/cluster/metadata/error.go
@@ -1,22 +1,25 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package metadata
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var (
ErrCreateCluster = coderr.NewCodeError(coderr.BadRequest, "create cluster")
diff --git a/server/cluster/metadata/table_manager.go b/server/cluster/metadata/table_manager.go
index 041012d..806aeef 100644
--- a/server/cluster/metadata/table_manager.go
+++ b/server/cluster/metadata/table_manager.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package metadata
@@ -22,8 +25,8 @@
"sync"
"time"
- "github.com/CeresDB/horaemeta/server/id"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/id"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/pkg/errors"
"go.uber.org/zap"
)
diff --git a/server/cluster/metadata/table_manager_test.go b/server/cluster/metadata/table_manager_test.go
index 0fb7e2f..56cc040 100644
--- a/server/cluster/metadata/table_manager_test.go
+++ b/server/cluster/metadata/table_manager_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package metadata_test
@@ -21,10 +24,10 @@
"path"
"testing"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/etcdutil"
- "github.com/CeresDB/horaemeta/server/id"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/id"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
diff --git a/server/cluster/metadata/topology_manager.go b/server/cluster/metadata/topology_manager.go
index d43b446..2426bb0 100644
--- a/server/cluster/metadata/topology_manager.go
+++ b/server/cluster/metadata/topology_manager.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package metadata
@@ -21,8 +24,8 @@
"fmt"
"sync"
- "github.com/CeresDB/horaemeta/server/id"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/id"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/pkg/errors"
"go.uber.org/zap"
)
diff --git a/server/cluster/metadata/topology_manager_test.go b/server/cluster/metadata/topology_manager_test.go
index 7715f75..be38195 100644
--- a/server/cluster/metadata/topology_manager_test.go
+++ b/server/cluster/metadata/topology_manager_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package metadata_test
@@ -20,10 +23,10 @@
"context"
"testing"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/etcdutil"
- "github.com/CeresDB/horaemeta/server/id"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/id"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
diff --git a/server/cluster/metadata/types.go b/server/cluster/metadata/types.go
index f6591b3..f45117b 100644
--- a/server/cluster/metadata/types.go
+++ b/server/cluster/metadata/types.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package metadata
@@ -19,8 +22,8 @@
import (
"time"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/pkg/errors"
)
diff --git a/server/config/config.go b/server/config/config.go
index 7fea5c8..02ee266 100644
--- a/server/config/config.go
+++ b/server/config/config.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package config
@@ -24,7 +27,7 @@
"strings"
"time"
- "github.com/CeresDB/horaemeta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
"github.com/caarlos0/env/v6"
"github.com/pelletier/go-toml/v2"
"github.com/pkg/errors"
diff --git a/server/config/error.go b/server/config/error.go
index 27651f6..f266fa5 100644
--- a/server/config/error.go
+++ b/server/config/error.go
@@ -1,23 +1,26 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package config
import (
- "github.com/CeresDB/horaemeta/pkg/coderr"
+ "github.com/apache/incubator-horaedb-meta/pkg/coderr"
)
var (
diff --git a/server/config/util.go b/server/config/util.go
index 302c8e1..68b1b37 100644
--- a/server/config/util.go
+++ b/server/config/util.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package config
diff --git a/server/coordinator/error.go b/server/coordinator/error.go
index 6b137b9..4f22da9 100644
--- a/server/coordinator/error.go
+++ b/server/coordinator/error.go
@@ -1,22 +1,25 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package coordinator
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var (
ErrNodeNumberNotEnough = coderr.NewCodeError(coderr.Internal, "node number not enough")
diff --git a/server/coordinator/eventdispatch/dispatch.go b/server/coordinator/eventdispatch/dispatch.go
index 5f9a793..f906540 100644
--- a/server/coordinator/eventdispatch/dispatch.go
+++ b/server/coordinator/eventdispatch/dispatch.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package eventdispatch
@@ -19,7 +22,7 @@
import (
"context"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
)
type Dispatch interface {
diff --git a/server/coordinator/eventdispatch/dispatch_impl.go b/server/coordinator/eventdispatch/dispatch_impl.go
index a6ade8d..c9dc07f 100644
--- a/server/coordinator/eventdispatch/dispatch_impl.go
+++ b/server/coordinator/eventdispatch/dispatch_impl.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package eventdispatch
@@ -20,10 +23,10 @@
"context"
"sync"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaeventpb"
- "github.com/CeresDB/horaemeta/pkg/coderr"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/service"
+ "github.com/apache/incubator-horaedb-meta/pkg/coderr"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/service"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaeventpb"
"github.com/pkg/errors"
"google.golang.org/grpc"
)
diff --git a/server/coordinator/factory.go b/server/coordinator/factory.go
index 89d53e0..a830fe3 100644
--- a/server/coordinator/factory.go
+++ b/server/coordinator/factory.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package coordinator
@@ -19,18 +22,18 @@
import (
"context"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl/createpartitiontable"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl/createtable"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl/droppartitiontable"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl/droptable"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/operation/split"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/operation/transferleader"
- "github.com/CeresDB/horaemeta/server/id"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl/createpartitiontable"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl/createtable"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl/droppartitiontable"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl/droptable"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/operation/split"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/operation/transferleader"
+ "github.com/apache/incubator-horaedb-meta/server/id"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/pkg/errors"
"go.uber.org/zap"
)
diff --git a/server/coordinator/factory_test.go b/server/coordinator/factory_test.go
index d477b43..336255a 100644
--- a/server/coordinator/factory_test.go
+++ b/server/coordinator/factory_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package coordinator_test
@@ -20,11 +23,11 @@
"context"
"testing"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
diff --git a/server/coordinator/lock/entry_lock.go b/server/coordinator/lock/entry_lock.go
index f7abed0..e385136 100644
--- a/server/coordinator/lock/entry_lock.go
+++ b/server/coordinator/lock/entry_lock.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package lock
diff --git a/server/coordinator/lock/entry_lock_test.go b/server/coordinator/lock/entry_lock_test.go
index faa6639..7dd3a37 100644
--- a/server/coordinator/lock/entry_lock_test.go
+++ b/server/coordinator/lock/entry_lock_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package lock
diff --git a/server/coordinator/procedure/ddl/common_util.go b/server/coordinator/procedure/ddl/common_util.go
index 52874e1..aa55e75 100644
--- a/server/coordinator/procedure/ddl/common_util.go
+++ b/server/coordinator/procedure/ddl/common_util.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package ddl
@@ -19,12 +22,12 @@
import (
"context"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/pkg/errors"
"go.uber.org/zap"
)
diff --git a/server/coordinator/procedure/ddl/createpartitiontable/create_partition_table.go b/server/coordinator/procedure/ddl/createpartitiontable/create_partition_table.go
index f7d9202..cb7ac55 100644
--- a/server/coordinator/procedure/ddl/createpartitiontable/create_partition_table.go
+++ b/server/coordinator/procedure/ddl/createpartitiontable/create_partition_table.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package createpartitiontable
@@ -22,14 +25,14 @@
"fmt"
"sync"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/pkg/assert"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/assert"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/looplab/fsm"
"github.com/pkg/errors"
"go.uber.org/zap"
diff --git a/server/coordinator/procedure/ddl/createpartitiontable/create_partition_table_test.go b/server/coordinator/procedure/ddl/createpartitiontable/create_partition_table_test.go
index 4911ad9..2c9f792 100644
--- a/server/coordinator/procedure/ddl/createpartitiontable/create_partition_table_test.go
+++ b/server/coordinator/procedure/ddl/createpartitiontable/create_partition_table_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package createpartitiontable_test
@@ -20,12 +23,12 @@
"context"
"testing"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl/createpartitiontable"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl/createpartitiontable"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/stretchr/testify/require"
)
diff --git a/server/coordinator/procedure/ddl/createtable/create_table.go b/server/coordinator/procedure/ddl/createtable/create_table.go
index 63f60cf..414caaf 100644
--- a/server/coordinator/procedure/ddl/createtable/create_table.go
+++ b/server/coordinator/procedure/ddl/createtable/create_table.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package createtable
@@ -20,14 +23,14 @@
"context"
"sync"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/pkg/assert"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/assert"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/looplab/fsm"
"github.com/pkg/errors"
"go.uber.org/zap"
diff --git a/server/coordinator/procedure/ddl/createtable/create_table_test.go b/server/coordinator/procedure/ddl/createtable/create_table_test.go
index 5f3651d..1dd0893 100644
--- a/server/coordinator/procedure/ddl/createtable/create_table_test.go
+++ b/server/coordinator/procedure/ddl/createtable/create_table_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package createtable_test
@@ -21,10 +24,10 @@
"fmt"
"testing"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl/createtable"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl/createtable"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/stretchr/testify/require"
)
diff --git a/server/coordinator/procedure/ddl/droppartitiontable/create_drop_partition_table_test.go b/server/coordinator/procedure/ddl/droppartitiontable/create_drop_partition_table_test.go
index 41cefeb..6ec07bf 100644
--- a/server/coordinator/procedure/ddl/droppartitiontable/create_drop_partition_table_test.go
+++ b/server/coordinator/procedure/ddl/droppartitiontable/create_drop_partition_table_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package droppartitiontable_test
@@ -21,17 +24,17 @@
"fmt"
"testing"
- "github.com/CeresDB/horaedbproto/golang/pkg/clusterpb"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/server/cluster"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl/createpartitiontable"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl/droppartitiontable"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl/createpartitiontable"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl/droppartitiontable"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/clusterpb"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/stretchr/testify/require"
)
diff --git a/server/coordinator/procedure/ddl/droppartitiontable/drop_partition_table.go b/server/coordinator/procedure/ddl/droppartitiontable/drop_partition_table.go
index ea5d279..f47ba77 100644
--- a/server/coordinator/procedure/ddl/droppartitiontable/drop_partition_table.go
+++ b/server/coordinator/procedure/ddl/droppartitiontable/drop_partition_table.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package droppartitiontable
@@ -22,13 +25,13 @@
"fmt"
"sync"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/looplab/fsm"
"github.com/pkg/errors"
"go.uber.org/zap"
diff --git a/server/coordinator/procedure/ddl/droptable/create_drop_table_test.go b/server/coordinator/procedure/ddl/droptable/create_drop_table_test.go
index 7a27b29..06f3a2f 100644
--- a/server/coordinator/procedure/ddl/droptable/create_drop_table_test.go
+++ b/server/coordinator/procedure/ddl/droptable/create_drop_table_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package droptable_test
@@ -21,14 +24,14 @@
"fmt"
"testing"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/server/cluster"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl/createtable"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl/droptable"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl/createtable"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl/droptable"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/stretchr/testify/require"
)
diff --git a/server/coordinator/procedure/ddl/droptable/drop_table.go b/server/coordinator/procedure/ddl/droptable/drop_table.go
index f5e679b..6f704b7 100644
--- a/server/coordinator/procedure/ddl/droptable/drop_table.go
+++ b/server/coordinator/procedure/ddl/droptable/drop_table.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package droptable
@@ -20,14 +23,14 @@
"context"
"sync"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/pkg/assert"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/ddl"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/assert"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/ddl"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/looplab/fsm"
"github.com/pkg/errors"
"go.uber.org/zap"
diff --git a/server/coordinator/procedure/delay_queue.go b/server/coordinator/procedure/delay_queue.go
index 93a55cb..82d8d6a 100644
--- a/server/coordinator/procedure/delay_queue.go
+++ b/server/coordinator/procedure/delay_queue.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package procedure
diff --git a/server/coordinator/procedure/delay_queue_test.go b/server/coordinator/procedure/delay_queue_test.go
index 7a069a0..a84c519 100644
--- a/server/coordinator/procedure/delay_queue_test.go
+++ b/server/coordinator/procedure/delay_queue_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package procedure
@@ -21,7 +24,7 @@
"testing"
"time"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
)
diff --git a/server/coordinator/procedure/error.go b/server/coordinator/procedure/error.go
index 456e5f7..165cb2c 100644
--- a/server/coordinator/procedure/error.go
+++ b/server/coordinator/procedure/error.go
@@ -1,22 +1,25 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package procedure
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var (
ErrShardLeaderNotFound = coderr.NewCodeError(coderr.Internal, "shard leader not found")
diff --git a/server/coordinator/procedure/manager.go b/server/coordinator/procedure/manager.go
index 69d6b93..c542130 100644
--- a/server/coordinator/procedure/manager.go
+++ b/server/coordinator/procedure/manager.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package procedure
diff --git a/server/coordinator/procedure/manager_impl.go b/server/coordinator/procedure/manager_impl.go
index 38606c9..97e3d5e 100644
--- a/server/coordinator/procedure/manager_impl.go
+++ b/server/coordinator/procedure/manager_impl.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package procedure
@@ -21,9 +24,9 @@
"sync"
"time"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/lock"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/lock"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"go.uber.org/zap"
)
diff --git a/server/coordinator/procedure/manager_test.go b/server/coordinator/procedure/manager_test.go
index a245a48..831601f 100644
--- a/server/coordinator/procedure/manager_test.go
+++ b/server/coordinator/procedure/manager_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package procedure_test
@@ -21,9 +24,9 @@
"testing"
"time"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
diff --git a/server/coordinator/procedure/operation/split/split.go b/server/coordinator/procedure/operation/split/split.go
index 8ffb3b8..8efd0e1 100644
--- a/server/coordinator/procedure/operation/split/split.go
+++ b/server/coordinator/procedure/operation/split/split.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package split
@@ -21,11 +24,11 @@
"encoding/json"
"sync"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/looplab/fsm"
"github.com/pkg/errors"
"go.uber.org/zap"
diff --git a/server/coordinator/procedure/operation/split/split_test.go b/server/coordinator/procedure/operation/split/split_test.go
index 9f76aea..f16c705 100644
--- a/server/coordinator/procedure/operation/split/split_test.go
+++ b/server/coordinator/procedure/operation/split/split_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package split_test
@@ -20,10 +23,10 @@
"context"
"testing"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/operation/split"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/operation/split"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
)
diff --git a/server/coordinator/procedure/operation/transferleader/batch_transfer_leader.go b/server/coordinator/procedure/operation/transferleader/batch_transfer_leader.go
index 714dd24..dabd4bb 100644
--- a/server/coordinator/procedure/operation/transferleader/batch_transfer_leader.go
+++ b/server/coordinator/procedure/operation/transferleader/batch_transfer_leader.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package transferleader
@@ -21,9 +24,9 @@
"fmt"
"sync"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/pkg/errors"
"go.uber.org/zap"
"golang.org/x/sync/errgroup"
diff --git a/server/coordinator/procedure/operation/transferleader/batch_transfer_leader_test.go b/server/coordinator/procedure/operation/transferleader/batch_transfer_leader_test.go
index fbe2683..1226a7e 100644
--- a/server/coordinator/procedure/operation/transferleader/batch_transfer_leader_test.go
+++ b/server/coordinator/procedure/operation/transferleader/batch_transfer_leader_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package transferleader_test
@@ -20,9 +23,9 @@
"context"
"testing"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/operation/transferleader"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/operation/transferleader"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
)
diff --git a/server/coordinator/procedure/operation/transferleader/transfer_leader.go b/server/coordinator/procedure/operation/transferleader/transfer_leader.go
index 805cbba..5b1713b 100644
--- a/server/coordinator/procedure/operation/transferleader/transfer_leader.go
+++ b/server/coordinator/procedure/operation/transferleader/transfer_leader.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package transferleader
@@ -21,11 +24,11 @@
"encoding/json"
"sync"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/looplab/fsm"
"github.com/pkg/errors"
"go.uber.org/zap"
diff --git a/server/coordinator/procedure/operation/transferleader/trasnfer_leader_test.go b/server/coordinator/procedure/operation/transferleader/trasnfer_leader_test.go
index 0b20391..25951a3 100644
--- a/server/coordinator/procedure/operation/transferleader/trasnfer_leader_test.go
+++ b/server/coordinator/procedure/operation/transferleader/trasnfer_leader_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package transferleader_test
@@ -20,9 +23,9 @@
"context"
"testing"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/operation/transferleader"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/operation/transferleader"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
)
diff --git a/server/coordinator/procedure/procedure.go b/server/coordinator/procedure/procedure.go
index 5aff912..79f0911 100644
--- a/server/coordinator/procedure/procedure.go
+++ b/server/coordinator/procedure/procedure.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package procedure
@@ -19,7 +22,7 @@
import (
"context"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
)
type State string
diff --git a/server/coordinator/procedure/storage.go b/server/coordinator/procedure/storage.go
index 7530260..47133a7 100644
--- a/server/coordinator/procedure/storage.go
+++ b/server/coordinator/procedure/storage.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package procedure
diff --git a/server/coordinator/procedure/storage_impl.go b/server/coordinator/procedure/storage_impl.go
index 51c151c..3d60cd0 100644
--- a/server/coordinator/procedure/storage_impl.go
+++ b/server/coordinator/procedure/storage_impl.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package procedure
@@ -24,8 +27,8 @@
"path"
"strconv"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
"github.com/pkg/errors"
clientv3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/client/v3/clientv3util"
diff --git a/server/coordinator/procedure/storage_test.go b/server/coordinator/procedure/storage_test.go
index 61fa2a6..5ee496d 100644
--- a/server/coordinator/procedure/storage_test.go
+++ b/server/coordinator/procedure/storage_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package procedure
@@ -21,7 +24,7 @@
"testing"
"time"
- "github.com/CeresDB/horaemeta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
"github.com/stretchr/testify/require"
)
diff --git a/server/coordinator/procedure/test/common.go b/server/coordinator/procedure/test/common.go
index 1c817ed..63eae55 100644
--- a/server/coordinator/procedure/test/common.go
+++ b/server/coordinator/procedure/test/common.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package test
@@ -25,14 +28,14 @@
"testing"
"time"
- "github.com/CeresDB/horaemeta/server/cluster"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/eventdispatch"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/nodepicker"
- "github.com/CeresDB/horaemeta/server/etcdutil"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/eventdispatch"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/nodepicker"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
diff --git a/server/coordinator/procedure/util.go b/server/coordinator/procedure/util.go
index 0dc398a..2fa808c 100644
--- a/server/coordinator/procedure/util.go
+++ b/server/coordinator/procedure/util.go
@@ -1,23 +1,26 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package procedure
import (
- "github.com/CeresDB/horaemeta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
"github.com/looplab/fsm"
"github.com/pkg/errors"
"go.uber.org/zap"
diff --git a/server/coordinator/scheduler/manager/error.go b/server/coordinator/scheduler/manager/error.go
index 6ae1236..a88dc60 100644
--- a/server/coordinator/scheduler/manager/error.go
+++ b/server/coordinator/scheduler/manager/error.go
@@ -1,21 +1,24 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package manager
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var ErrInvalidTopologyType = coderr.NewCodeError(coderr.InvalidParams, "invalid topology type")
diff --git a/server/coordinator/scheduler/manager/scheduler_manager.go b/server/coordinator/scheduler/manager/scheduler_manager.go
index a0fa44a..0ed97f8 100644
--- a/server/coordinator/scheduler/manager/scheduler_manager.go
+++ b/server/coordinator/scheduler/manager/scheduler_manager.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package manager
@@ -24,17 +27,17 @@
"sync/atomic"
"time"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/nodepicker"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/rebalanced"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/reopen"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/static"
- "github.com/CeresDB/horaemeta/server/coordinator/watch"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/nodepicker"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/rebalanced"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/reopen"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/static"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/watch"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/pkg/errors"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
diff --git a/server/coordinator/scheduler/manager/scheduler_manager_test.go b/server/coordinator/scheduler/manager/scheduler_manager_test.go
index f255050..15d2bd6 100644
--- a/server/coordinator/scheduler/manager/scheduler_manager_test.go
+++ b/server/coordinator/scheduler/manager/scheduler_manager_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package manager_test
@@ -20,12 +23,12 @@
"context"
"testing"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/manager"
- "github.com/CeresDB/horaemeta/server/etcdutil"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/manager"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
diff --git a/server/coordinator/scheduler/nodepicker/error.go b/server/coordinator/scheduler/nodepicker/error.go
index ca9a7fb..d154162 100644
--- a/server/coordinator/scheduler/nodepicker/error.go
+++ b/server/coordinator/scheduler/nodepicker/error.go
@@ -1,21 +1,24 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package nodepicker
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var ErrNoAliveNodes = coderr.NewCodeError(coderr.InvalidParams, "no alive nodes is found")
diff --git a/server/coordinator/scheduler/nodepicker/hash/consistent_uniform.go b/server/coordinator/scheduler/nodepicker/hash/consistent_uniform.go
index 7693542..ce25e59 100644
--- a/server/coordinator/scheduler/nodepicker/hash/consistent_uniform.go
+++ b/server/coordinator/scheduler/nodepicker/hash/consistent_uniform.go
@@ -38,8 +38,8 @@
"slices"
"sort"
- "github.com/CeresDB/horaemeta/pkg/assert"
- "github.com/CeresDB/horaemeta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/pkg/assert"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
"go.uber.org/zap"
)
diff --git a/server/coordinator/scheduler/nodepicker/node_picker.go b/server/coordinator/scheduler/nodepicker/node_picker.go
index 48fcf9b..1ac75b5 100644
--- a/server/coordinator/scheduler/nodepicker/node_picker.go
+++ b/server/coordinator/scheduler/nodepicker/node_picker.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package nodepicker
@@ -20,11 +23,11 @@
"context"
"time"
- "github.com/CeresDB/horaemeta/pkg/assert"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/nodepicker/hash"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/assert"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/nodepicker/hash"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/spaolacci/murmur3"
"go.uber.org/zap"
)
diff --git a/server/coordinator/scheduler/nodepicker/node_picker_test.go b/server/coordinator/scheduler/nodepicker/node_picker_test.go
index b096a19..014aac1 100644
--- a/server/coordinator/scheduler/nodepicker/node_picker_test.go
+++ b/server/coordinator/scheduler/nodepicker/node_picker_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package nodepicker_test
@@ -23,9 +26,9 @@
"testing"
"time"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/nodepicker"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/nodepicker"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
diff --git a/server/coordinator/scheduler/rebalanced/scheduler.go b/server/coordinator/scheduler/rebalanced/scheduler.go
index 695e217..5a8a48f 100644
--- a/server/coordinator/scheduler/rebalanced/scheduler.go
+++ b/server/coordinator/scheduler/rebalanced/scheduler.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package rebalanced
@@ -23,13 +26,13 @@
"strings"
"sync"
- "github.com/CeresDB/horaemeta/pkg/assert"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/nodepicker"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/assert"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/nodepicker"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"go.uber.org/zap"
)
diff --git a/server/coordinator/scheduler/rebalanced/scheduler_test.go b/server/coordinator/scheduler/rebalanced/scheduler_test.go
index fe6c79b..e451b53 100644
--- a/server/coordinator/scheduler/rebalanced/scheduler_test.go
+++ b/server/coordinator/scheduler/rebalanced/scheduler_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package rebalanced_test
@@ -20,10 +23,10 @@
"context"
"testing"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/nodepicker"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/rebalanced"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/nodepicker"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/rebalanced"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
diff --git a/server/coordinator/scheduler/reopen/scheduler.go b/server/coordinator/scheduler/reopen/scheduler.go
index 0dd1471..74535e4 100644
--- a/server/coordinator/scheduler/reopen/scheduler.go
+++ b/server/coordinator/scheduler/reopen/scheduler.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package reopen
@@ -22,11 +25,11 @@
"strings"
"time"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
)
// schedulerImpl used to reopen shards in status PartitionOpen.
diff --git a/server/coordinator/scheduler/reopen/scheduler_test.go b/server/coordinator/scheduler/reopen/scheduler_test.go
index cd3d178..8060e2d 100644
--- a/server/coordinator/scheduler/reopen/scheduler_test.go
+++ b/server/coordinator/scheduler/reopen/scheduler_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package reopen_test
@@ -20,11 +23,11 @@
"context"
"testing"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/reopen"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/reopen"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
diff --git a/server/coordinator/scheduler/scheduler.go b/server/coordinator/scheduler/scheduler.go
index d3be253..3d5d0fe 100644
--- a/server/coordinator/scheduler/scheduler.go
+++ b/server/coordinator/scheduler/scheduler.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package scheduler
@@ -19,9 +22,9 @@
import (
"context"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
)
type ScheduleResult struct {
diff --git a/server/coordinator/scheduler/static/error.go b/server/coordinator/scheduler/static/error.go
index f3493d4..97bcf66 100644
--- a/server/coordinator/scheduler/static/error.go
+++ b/server/coordinator/scheduler/static/error.go
@@ -1,21 +1,24 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package static
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var ErrNotImplemented = coderr.NewCodeError(coderr.ErrNotImplemented, "no")
diff --git a/server/coordinator/scheduler/static/scheduler.go b/server/coordinator/scheduler/static/scheduler.go
index 41be3b8..2da891d 100644
--- a/server/coordinator/scheduler/static/scheduler.go
+++ b/server/coordinator/scheduler/static/scheduler.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package static
@@ -24,12 +27,12 @@
"strings"
"time"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/nodepicker"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/nodepicker"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/pkg/errors"
)
diff --git a/server/coordinator/scheduler/static/scheduler_test.go b/server/coordinator/scheduler/static/scheduler_test.go
index 2b788ec..929a2f0 100644
--- a/server/coordinator/scheduler/static/scheduler_test.go
+++ b/server/coordinator/scheduler/static/scheduler_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package static_test
@@ -20,10 +23,10 @@
"context"
"testing"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/nodepicker"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler/static"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/nodepicker"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler/static"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
diff --git a/server/coordinator/shard_picker.go b/server/coordinator/shard_picker.go
index d5b589e..bc5325f 100644
--- a/server/coordinator/shard_picker.go
+++ b/server/coordinator/shard_picker.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package coordinator
@@ -20,9 +23,9 @@
"context"
"sort"
- "github.com/CeresDB/horaemeta/pkg/assert"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/assert"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/pkg/errors"
)
diff --git a/server/coordinator/shard_picker_test.go b/server/coordinator/shard_picker_test.go
index fbb3f74..3b69d9a 100644
--- a/server/coordinator/shard_picker_test.go
+++ b/server/coordinator/shard_picker_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package coordinator_test
@@ -21,10 +24,10 @@
"sort"
"testing"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure/test"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure/test"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
"github.com/stretchr/testify/require"
)
diff --git a/server/coordinator/watch/watch.go b/server/coordinator/watch/watch.go
index 3b3807a..18b1a0e 100644
--- a/server/coordinator/watch/watch.go
+++ b/server/coordinator/watch/watch.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package watch
@@ -23,8 +26,8 @@
"strings"
"sync"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaeventpb"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaeventpb"
"github.com/pkg/errors"
"go.etcd.io/etcd/api/v3/mvccpb"
clientv3 "go.etcd.io/etcd/client/v3"
diff --git a/server/coordinator/watch/watch_test.go b/server/coordinator/watch/watch_test.go
index 652351b..41e6628 100644
--- a/server/coordinator/watch/watch_test.go
+++ b/server/coordinator/watch/watch_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package watch
@@ -21,9 +24,9 @@
"testing"
"time"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaeventpb"
- "github.com/CeresDB/horaemeta/server/etcdutil"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaeventpb"
"github.com/stretchr/testify/require"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
diff --git a/server/error.go b/server/error.go
index 61dc658..8d7113d 100644
--- a/server/error.go
+++ b/server/error.go
@@ -1,22 +1,25 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package server
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var (
ErrCreateEtcdClient = coderr.NewCodeError(coderr.Internal, "create etcd etcdCli")
diff --git a/server/etcdutil/config.go b/server/etcdutil/config.go
index 802de3c..445a1c1 100644
--- a/server/etcdutil/config.go
+++ b/server/etcdutil/config.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package etcdutil
diff --git a/server/etcdutil/error.go b/server/etcdutil/error.go
index e575456..dd6bb69 100644
--- a/server/etcdutil/error.go
+++ b/server/etcdutil/error.go
@@ -1,22 +1,25 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package etcdutil
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var (
ErrEtcdKVGet = coderr.NewCodeError(coderr.Internal, "etcd KV get failed")
diff --git a/server/etcdutil/get_leader.go b/server/etcdutil/get_leader.go
index 01ad4b6..d7918f0 100644
--- a/server/etcdutil/get_leader.go
+++ b/server/etcdutil/get_leader.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package etcdutil
diff --git a/server/etcdutil/util.go b/server/etcdutil/util.go
index 44e5d22..5d29d80 100644
--- a/server/etcdutil/util.go
+++ b/server/etcdutil/util.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package etcdutil
@@ -19,7 +22,7 @@
import (
"context"
- "github.com/CeresDB/horaemeta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
)
diff --git a/server/etcdutil/util_test.go b/server/etcdutil/util_test.go
index ea4b973..fa2532d 100644
--- a/server/etcdutil/util_test.go
+++ b/server/etcdutil/util_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package etcdutil
diff --git a/server/id/error.go b/server/id/error.go
index c8e78ef..af3a3ea 100644
--- a/server/id/error.go
+++ b/server/id/error.go
@@ -1,22 +1,25 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package id
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var (
ErrTxnPutEndID = coderr.NewCodeError(coderr.Internal, "put end id in txn")
diff --git a/server/id/id.go b/server/id/id.go
index f797dbf..f955218 100644
--- a/server/id/id.go
+++ b/server/id/id.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package id
diff --git a/server/id/id_impl.go b/server/id/id_impl.go
index 52b46c5..002ffbb 100644
--- a/server/id/id_impl.go
+++ b/server/id/id_impl.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package id
@@ -22,7 +25,7 @@
"strconv"
"sync"
- "github.com/CeresDB/horaemeta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
"github.com/pkg/errors"
clientv3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/client/v3/clientv3util"
diff --git a/server/id/id_test.go b/server/id/id_test.go
index 17051e5..7d42785 100644
--- a/server/id/id_test.go
+++ b/server/id/id_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package id
@@ -21,7 +24,7 @@
"testing"
"time"
- "github.com/CeresDB/horaemeta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
"github.com/stretchr/testify/require"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
diff --git a/server/id/reusable_id_impl.go b/server/id/reusable_id_impl.go
index ff9569f..0512980 100644
--- a/server/id/reusable_id_impl.go
+++ b/server/id/reusable_id_impl.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package id
diff --git a/server/id/reusable_id_test.go b/server/id/reusable_id_test.go
index af64ddc..78b30dd 100644
--- a/server/id/reusable_id_test.go
+++ b/server/id/reusable_id_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package id
diff --git a/server/limiter/limiter.go b/server/limiter/limiter.go
index cf198bc..3e38929 100644
--- a/server/limiter/limiter.go
+++ b/server/limiter/limiter.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package limiter
@@ -19,7 +22,7 @@
import (
"sync"
- "github.com/CeresDB/horaemeta/server/config"
+ "github.com/apache/incubator-horaedb-meta/server/config"
"golang.org/x/time/rate"
)
diff --git a/server/limiter/limiter_test.go b/server/limiter/limiter_test.go
index 3dc9c45..6e71816 100644
--- a/server/limiter/limiter_test.go
+++ b/server/limiter/limiter_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package limiter
@@ -20,7 +23,7 @@
"testing"
"time"
- "github.com/CeresDB/horaemeta/server/config"
+ "github.com/apache/incubator-horaedb-meta/server/config"
"github.com/stretchr/testify/require"
)
diff --git a/server/member/error.go b/server/member/error.go
index 70ae6e1..e7520fa 100644
--- a/server/member/error.go
+++ b/server/member/error.go
@@ -1,22 +1,25 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package member
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var (
ErrResetLeader = coderr.NewCodeError(coderr.Internal, "reset leader by deleting leader key")
diff --git a/server/member/lease.go b/server/member/lease.go
index fceb50c..306525c 100644
--- a/server/member/lease.go
+++ b/server/member/lease.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package member
@@ -21,7 +24,7 @@
"sync"
"time"
- "github.com/CeresDB/horaemeta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
)
diff --git a/server/member/member.go b/server/member/member.go
index f9a6d49..9239498 100644
--- a/server/member/member.go
+++ b/server/member/member.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package member
@@ -22,9 +25,9 @@
"sync"
"time"
- "github.com/CeresDB/horaedbproto/golang/pkg/metastoragepb"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metastoragepb"
"github.com/pkg/errors"
"go.etcd.io/etcd/api/v3/mvccpb"
clientv3 "go.etcd.io/etcd/client/v3"
diff --git a/server/member/watch_leader.go b/server/member/watch_leader.go
index 9df4be7..8ca6ee0 100644
--- a/server/member/watch_leader.go
+++ b/server/member/watch_leader.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package member
@@ -20,10 +23,10 @@
"context"
"time"
- "github.com/CeresDB/horaedbproto/golang/pkg/metastoragepb"
- "github.com/CeresDB/horaemeta/pkg/assert"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/pkg/assert"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metastoragepb"
"go.uber.org/zap"
)
diff --git a/server/member/watch_leader_test.go b/server/member/watch_leader_test.go
index 02b0562..78958a2 100644
--- a/server/member/watch_leader_test.go
+++ b/server/member/watch_leader_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package member
@@ -21,7 +24,7 @@
"testing"
"time"
- "github.com/CeresDB/horaemeta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
"github.com/stretchr/testify/assert"
clientv3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/server/v3/etcdserver"
diff --git a/server/server.go b/server/server.go
index d758372..ac615e6 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package server
@@ -25,19 +28,19 @@
"sync/atomic"
"time"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/pkg/coderr"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/config"
- "github.com/CeresDB/horaemeta/server/etcdutil"
- "github.com/CeresDB/horaemeta/server/limiter"
- "github.com/CeresDB/horaemeta/server/member"
- metagrpc "github.com/CeresDB/horaemeta/server/service/grpc"
- "github.com/CeresDB/horaemeta/server/service/http"
- "github.com/CeresDB/horaemeta/server/status"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/coderr"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/config"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/limiter"
+ "github.com/apache/incubator-horaedb-meta/server/member"
+ metagrpc "github.com/apache/incubator-horaedb-meta/server/service/grpc"
+ "github.com/apache/incubator-horaedb-meta/server/service/http"
+ "github.com/apache/incubator-horaedb-meta/server/status"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/pkg/errors"
"go.etcd.io/etcd/client/pkg/v3/transport"
clientv3 "go.etcd.io/etcd/client/v3"
diff --git a/server/service/grpc/error.go b/server/service/grpc/error.go
index ffecc45..44f6a49 100644
--- a/server/service/grpc/error.go
+++ b/server/service/grpc/error.go
@@ -1,23 +1,26 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package grpc
import (
- "github.com/CeresDB/horaemeta/pkg/coderr"
+ "github.com/apache/incubator-horaedb-meta/pkg/coderr"
)
var (
diff --git a/server/service/grpc/forward.go b/server/service/grpc/forward.go
index e19f3fe..39ef7c6 100644
--- a/server/service/grpc/forward.go
+++ b/server/service/grpc/forward.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package grpc
@@ -19,9 +22,9 @@
import (
"context"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/service"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/service"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/pkg/errors"
"go.uber.org/zap"
"google.golang.org/grpc"
diff --git a/server/service/grpc/service.go b/server/service/grpc/service.go
index 9a7eb68..765512b 100644
--- a/server/service/grpc/service.go
+++ b/server/service/grpc/service.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package grpc
@@ -23,17 +26,17 @@
"sync"
"time"
- "github.com/CeresDB/horaedbproto/golang/pkg/clusterpb"
- "github.com/CeresDB/horaedbproto/golang/pkg/commonpb"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
- "github.com/CeresDB/horaemeta/pkg/coderr"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/limiter"
- "github.com/CeresDB/horaemeta/server/member"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/coderr"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/limiter"
+ "github.com/apache/incubator-horaedb-meta/server/member"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/clusterpb"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/commonpb"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
"github.com/pkg/errors"
"go.uber.org/zap"
)
diff --git a/server/service/http/api.go b/server/service/http/api.go
index 90fe7a4..36412ca 100644
--- a/server/service/http/api.go
+++ b/server/service/http/api.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package http
@@ -25,18 +28,18 @@
"net/http"
"net/http/pprof"
- "github.com/CeresDB/horaemeta/pkg/coderr"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/cluster"
- "github.com/CeresDB/horaemeta/server/cluster/metadata"
- "github.com/CeresDB/horaemeta/server/config"
- "github.com/CeresDB/horaemeta/server/coordinator"
- "github.com/CeresDB/horaemeta/server/coordinator/procedure"
- "github.com/CeresDB/horaemeta/server/coordinator/scheduler"
- "github.com/CeresDB/horaemeta/server/limiter"
- "github.com/CeresDB/horaemeta/server/member"
- "github.com/CeresDB/horaemeta/server/status"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/coderr"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/cluster"
+ "github.com/apache/incubator-horaedb-meta/server/cluster/metadata"
+ "github.com/apache/incubator-horaedb-meta/server/config"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/procedure"
+ "github.com/apache/incubator-horaedb-meta/server/coordinator/scheduler"
+ "github.com/apache/incubator-horaedb-meta/server/limiter"
+ "github.com/apache/incubator-horaedb-meta/server/member"
+ "github.com/apache/incubator-horaedb-meta/server/status"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
)
diff --git a/server/service/http/error.go b/server/service/http/error.go
index 941a8c2..0fbafae 100644
--- a/server/service/http/error.go
+++ b/server/service/http/error.go
@@ -1,22 +1,25 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package http
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var (
ErrParseRequest = coderr.NewCodeError(coderr.BadRequest, "parse request params")
diff --git a/server/service/http/etcd_api.go b/server/service/http/etcd_api.go
index c34dbd7..c8c190c 100644
--- a/server/service/http/etcd_api.go
+++ b/server/service/http/etcd_api.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package http
@@ -21,7 +24,7 @@
"fmt"
"net/http"
- "github.com/CeresDB/horaemeta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
)
diff --git a/server/service/http/forward.go b/server/service/http/forward.go
index 21b7945..01874aa 100644
--- a/server/service/http/forward.go
+++ b/server/service/http/forward.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package http
@@ -25,9 +28,9 @@
"strings"
"time"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/member"
- "github.com/CeresDB/horaemeta/server/service"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/member"
+ "github.com/apache/incubator-horaedb-meta/server/service"
"github.com/pkg/errors"
"go.uber.org/zap"
)
diff --git a/server/service/http/service.go b/server/service/http/service.go
index 875ce73..e40c5df 100644
--- a/server/service/http/service.go
+++ b/server/service/http/service.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package http
diff --git a/server/service/http/types.go b/server/service/http/types.go
index 5e5f8e6..9010481 100644
--- a/server/service/http/types.go
+++ b/server/service/http/types.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package http
@@ -19,11 +22,11 @@
import (
"net/http"
- "github.com/CeresDB/horaemeta/pkg/coderr"
- "github.com/CeresDB/horaemeta/server/cluster"
- "github.com/CeresDB/horaemeta/server/limiter"
- "github.com/CeresDB/horaemeta/server/status"
- "github.com/CeresDB/horaemeta/server/storage"
+ "github.com/apache/incubator-horaedb-meta/pkg/coderr"
+ "github.com/apache/incubator-horaedb-meta/server/cluster"
+ "github.com/apache/incubator-horaedb-meta/server/limiter"
+ "github.com/apache/incubator-horaedb-meta/server/status"
+ "github.com/apache/incubator-horaedb-meta/server/storage"
)
const (
diff --git a/server/service/util.go b/server/service/util.go
index 77a8d3c..60a3430 100644
--- a/server/service/util.go
+++ b/server/service/util.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package service
@@ -21,7 +24,7 @@
"net/url"
"strings"
- "github.com/CeresDB/horaemeta/pkg/coderr"
+ "github.com/apache/incubator-horaedb-meta/pkg/coderr"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
)
diff --git a/server/status/status.go b/server/status/status.go
index 58bfb7b..8bd989d 100644
--- a/server/status/status.go
+++ b/server/status/status.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package status
diff --git a/server/storage/error.go b/server/storage/error.go
index b64d3ec..a70a329 100644
--- a/server/storage/error.go
+++ b/server/storage/error.go
@@ -1,22 +1,25 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package storage
-import "github.com/CeresDB/horaemeta/pkg/coderr"
+import "github.com/apache/incubator-horaedb-meta/pkg/coderr"
var (
ErrEncode = coderr.NewCodeError(coderr.Internal, "storage encode")
diff --git a/server/storage/key_path.go b/server/storage/key_path.go
index 8aa2cfb..6036e59 100644
--- a/server/storage/key_path.go
+++ b/server/storage/key_path.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package storage
diff --git a/server/storage/meta.go b/server/storage/meta.go
index 1d94db7..842995d 100644
--- a/server/storage/meta.go
+++ b/server/storage/meta.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package storage
@@ -22,7 +25,7 @@
clientv3 "go.etcd.io/etcd/client/v3"
)
-// Storage defines the storage operations on the ceresdb cluster meta info.
+// Storage defines the storage operations on the HoraeDB cluster meta info.
type Storage interface {
// GetCluster get cluster metadata by clusterID.
GetCluster(ctx context.Context, clusterID ClusterID) (Cluster, error)
diff --git a/server/storage/storage_impl.go b/server/storage/storage_impl.go
index 88ac837..8aaafdd 100644
--- a/server/storage/storage_impl.go
+++ b/server/storage/storage_impl.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package storage
@@ -22,9 +25,9 @@
"strconv"
"strings"
- "github.com/CeresDB/horaedbproto/golang/pkg/clusterpb"
- "github.com/CeresDB/horaemeta/pkg/log"
- "github.com/CeresDB/horaemeta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/pkg/log"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/clusterpb"
"github.com/pkg/errors"
clientv3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/client/v3/clientv3util"
diff --git a/server/storage/storage_test.go b/server/storage/storage_test.go
index cad8df4..f90c28c 100644
--- a/server/storage/storage_test.go
+++ b/server/storage/storage_test.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package storage
@@ -22,7 +25,7 @@
"testing"
"time"
- "github.com/CeresDB/horaemeta/server/etcdutil"
+ "github.com/apache/incubator-horaedb-meta/server/etcdutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
clientv3 "go.etcd.io/etcd/client/v3"
diff --git a/server/storage/types.go b/server/storage/types.go
index 0615334..baff5e2 100644
--- a/server/storage/types.go
+++ b/server/storage/types.go
@@ -1,17 +1,20 @@
/*
- * Copyright 2022 The HoraeDB Authors
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package storage
@@ -20,8 +23,8 @@
"fmt"
"time"
- "github.com/CeresDB/horaedbproto/golang/pkg/clusterpb"
- "github.com/CeresDB/horaedbproto/golang/pkg/metaservicepb"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/clusterpb"
+ "github.com/apache/incubator-horaedb-proto/golang/pkg/metaservicepb"
)
type (