jiangpengcheng commented on code in PR #22127:
URL: https://github.com/apache/pulsar/pull/22127#discussion_r1503502961
##########
pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/ComponentImpl.java:
##########
@@ -1234,13 +1234,14 @@ public void putFunctionState(final String tenant,
try {
DefaultStateStore store =
worker().getStateStoreProvider().getStateStore(tenant, namespace, functionName);
ByteBuffer data;
- if (state.getStringValue() != null) {
+ if (StringUtils.isNotEmpty(state.getStringValue())) {
Review Comment:
I think state store should allow empty string as value?
--
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]