You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "shirleyStorage (via GitHub)" <gi...@apache.org> on 2024/10/11 16:28:23 UTC

[I] [Bug] Can not delete vertex labels when use standalone mode and set server.role=computer [incubator-hugegraph]

shirleyStorage opened a new issue, #2675:
URL: https://github.com/apache/incubator-hugegraph/issues/2675

   ### Bug Type (问题类型)
   
   rest-api (结果不合预期)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.0.0 (Apache Release Version)
   - Backend: RocksDB x nodes, HDD or SSD 
   - OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x 
   - Data Size:  xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) -->
   
   
   ### Expected & Actual behavior (期望与实际表现)
   
   
   ```
   curl -X POST http://localhost:8080/graphs/hugegraph/schema/propertykeys \
   -H "Content-Type: application/json" \
   -d '
   {
       "name": "name",
       "data_type": "TEXT",
       "cardinality": "SINGLE"
   }
   ';
   
   curl -X POST http://localhost:8080/graphs/hugegraph/schema/propertykeys \
   -H "Content-Type: application/json" \
   -d '
   {
       "name": "age",
       "data_type": "INT",
       "cardinality": "SINGLE"
   }
   ';
   
   curl -X POST http://localhost:8080/graphs/hugegraph/schema/vertexlabels \
        -H "Content-Type: application/json" \
        -d '{
       "name": "person",
       "id_strategy": "DEFAULT",
       "properties": [
           "name",
           "age"
       ],
       "primary_keys": [
           "name"
       ],
       "nullable_keys": [],
       "enable_label_index": true
   }
   ';
   
   curl -X DELETE http://localhost:8080/graphs/hugegraph/schema/vertexlabels/person ;
   
   
   ```
   
   
   
   
   
   
   
   
   
   
   
   
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   ```javascript
   curl -X DELETE http://localhost:8080/graphs/hugegraph/schema/vertexlabels/person
   ```
   return : 
   ```
   Can't schedule task on non-master server
   ```
   ```
   
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Can not delete vertex labels when use standalone mode and set server.role=computer [incubator-hugegraph]

Posted by "javeme (via GitHub)" <gi...@apache.org>.
javeme commented on issue #2675:
URL: https://github.com/apache/incubator-hugegraph/issues/2675#issuecomment-2440003885

   This is the expected behavior as we designed. Can I know in what scenario you need to do this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Bug] Can not delete vertex labels when use standalone mode and set server.role=computer [incubator-hugegraph]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #2675:
URL: https://github.com/apache/incubator-hugegraph/issues/2675#issuecomment-2407753649

   <!-- Answer -->
   You can't delete vertex labels in standalone mode with `server.role` set to `computer` because the server is not a master. In HugeGraph, tasks like deleting vertex labels must be scheduled on a master server. The error message "Can't schedule task on non-master server" indicates that the operation is being attempted on a non-master server, which is not allowed <sup>[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/task/StandardTaskScheduler.java)</sup><sup>[[2]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/schema/VertexLabelAPI.java)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Bug] Can not delete vertex labels when use standalone mode and set server.role=computer [incubator-hugegraph]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #2675:
URL: https://github.com/apache/incubator-hugegraph/issues/2675#issuecomment-2425321627

   <!-- Answer -->
   To run `KoutApiTest` on a Mac, you need to ensure that your development environment is properly set up. Here are the general steps:
   
   1. **Set Up the Development Environment:**
      - Clone the HugeGraph repository:
        ```bash
        git clone https://github.com/apache/hugegraph.git
        ```
      - Follow the setup instructions for HugeGraph on macOS, which include configuring the database backend and setting up the server. You can find detailed steps [here](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/contribution-guidelines/hugegraph-server-idea-setup.md) <sup>[[1]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/contribution-guidelines/hugegraph-server-idea-setup.md)</sup>.
   
   2. **Ensure Dependencies are Installed:**
      - Make sure you have Java and Maven installed, as they are typically required for building and running tests in Java projects.
   
   3. **Run the Test:**
      - Navigate to the directory containing the `KoutApiTest`:
        ```bash
        cd hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/api/traversers
        ```
      - Use Maven to run the test:
        ```bash
        mvn test -Dtest=KoutApiTest
        ```
   
   These steps should help you run the `KoutApiTest` on your Mac. If you encounter any issues, ensure that all dependencies are correctly installed and that your environment is configured as per the HugeGraph setup guidelines.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Bug] Can not delete vertex labels when use standalone mode and set server.role=computer [incubator-hugegraph]

Posted by "shirleyStorage (via GitHub)" <gi...@apache.org>.
shirleyStorage commented on issue #2675:
URL: https://github.com/apache/incubator-hugegraph/issues/2675#issuecomment-2425320213

   @dosu how to run KoutApiTest on mac


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org