dosubot[bot] commented on issue #3032: URL: https://github.com/apache/hugegraph/issues/3032#issuecomment-4496920471
<!-- Answer --> The symptoms you're describing — edges not persisting, vertex ID format mismatches between `addVertex` response and `g.V().id()`, and ID collisions across labels — are very likely caused by using `serializer=binary` with `backend=hbase` in your configuration. **Root cause:** The HBase backend requires `serializer=hbase`, not `serializer=binary` [[1]](https://github.com/apache/hugegraph/issues/1590#issuecomment-907602303). The `HbaseSerializer` extends `BinarySerializer` but critically sets `keyWithIdPrefix=false`, storing IDs in rowkeys rather than column names — a fundamental architectural requirement for HBase [[2]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/hugegraph-server/hugegraph-hbase/src/main/java/org/apache/hugegraph/backend/store/hbase/HbaseSerializer.java). Using the wrong serializer breaks vertex ID encoding and edge serialization/deserialization. **Fix:** Update your graph configuration to use: ```properties backend=hbase serializer=hbase ``` [[3]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/hugegraph-server/hugegraph-dist/src/assembly/travis/start-server.sh#L36-L39) After changing the serializer, you'll need to clear existing data and re-initialize, since data written with the binary serializer is incompatible with the hbase serializer format. **Additional HBase configuration reference** [[4]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/hugegraph-server/hugegraph-dist/src/assembly/static/conf/graphs/hugegraph.properties#L46-L56): ```properties backend=hbase serializer=hbase hbase.hosts=localhost hbase.port=2181 hbase.znode_parent=/hbase hbase.threads_max=64 ``` This misconfiguration is a recurring issue that has been reported across multiple HugeGraph versions (0.11.2 through 1.7.0) with the same symptoms: vertices appear to work but edges fail to parse or persist [[5]](https://github.com/apache/hugegraph/issues/1730#issuecomment-1016032238). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fhugegraph).* --- Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fhugegraph). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fhugegraph&message_id=97584a9d-b552-4cd4-bfd3-9f5d0b6d3a1e) [](https://github.dosu.com/apache/hugegraph?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fhugegraph) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fhugegraph) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
