dragonflydb / dragonflydb/dragonfly

Are there support memcached binary protocols?

Open
#303 12 comments 5 reactions 0 assignees View on GitHub
bug minor
Dominant language
C++
Stars
31.5k
Forks
1.3k
Avg merge
1d 10h
Merged PRs (30d)
137

Description

**Describe the bug**
When I use text protocols, everything is ok. But when I use binary mode, the program will report an error.

**To Reproduce**
1. Use xmemcached binary protocols to connect dragonfly
2. Use set methot
3. See error

**Expected behavior**
work to ok.

**Screenshots**
![image](https://user-images.githubusercontent.com/5254255/190559689-14d0bea4-031d-4eac-baf3-f1fe3d3fe029.png)

**Environment (please complete the following information):**
- Containerized: Docker, Docker Compose
- Dragonfly Version: 0.6.0

**Reproducible Code Snippet**
```java
XMemcachedClientBuilder builder = new XMemcachedClientBuilder(AddrUtil.getAddresses("127.0.0.1:11211"));
// use binary protocols
builder.setCommandFactory(new BinaryCommandFactory());
// set method
builder.build().set(key, 0, value);
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure against Dragonfly 0.6.0 using the provided XMemcached Java snippet and BinaryCommandFactory, comparing it with the working text protocol. Inspect the reported error and determine whether binary set requests are supported; done means the request works or the supported protocol limitation is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, memcached
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.