You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "desertsurge (via GitHub)" <gi...@apache.org> on 2023/03/08 02:07:18 UTC

[GitHub] [rocketmq] desertsurge opened a new issue, #6276: The file `offsets.json.tmp` can't be created

desertsurge opened a new issue, #6276:
URL: https://github.com/apache/rocketmq/issues/6276

   The file `offsets.json.tmp` can't be created, because the `nameSrvAddr` has char ":",it is not allowed in Windows。
   
   logs:
   
   ```
   java.io.FileNotFoundException: d:\tmp\logs\rocketmq\172.20.80.1@192.168.0.210:9876@9548@77481509595600\ServiceOnce_xxx_channel\offsets.json.tmp (文件名、目录名或卷标语法不正确。)
   	at java.io.FileOutputStream.open0(Native Method)
   	at java.io.FileOutputStream.open(FileOutputStream.java:270)
   	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
   	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
   	at java.io.FileWriter.<init>(FileWriter.java:90)
   	at org.apache.rocketmq.common.MixAll.string2FileNotSafe(MixAll.java:165)
   	at org.apache.rocketmq.common.MixAll.string2File(MixAll.java:141)
   	at org.apache.rocketmq.client.consumer.store.LocalFileOffsetStore.persistAll(LocalFileOffsetStore.java:147)
   	at org.apache.rocketmq.client.impl.consumer.DefaultMQPushConsumerImpl.persistConsumerOffset(DefaultMQPushConsumerImpl.java:1027)
   	at org.apache.rocketmq.client.impl.factory.MQClientInstance.persistAllConsumerOffset(MQClientInstance.java:487)
   	at org.apache.rocketmq.client.impl.factory.MQClientInstance.access$300(MQClientInstance.java:87)
   	at org.apache.rocketmq.client.impl.factory.MQClientInstance$5.run(MQClientInstance.java:300)
   	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:748)
   ```
   
   Code:
   
   `AsyncTraceDispatcher.start()`
   ```java
       public void start(String nameSrvAddr, AccessChannel accessChannel) throws MQClientException {
           if (isStarted.compareAndSet(false, true)) {
               traceProducer.setNamesrvAddr(nameSrvAddr);
               traceProducer.setInstanceName(TRACE_INSTANCE_NAME + "_" + nameSrvAddr);
               traceProducer.start();
           }
           this.accessChannel = accessChannel;
           this.worker = new Thread(new AsyncRunnable(), "MQ-AsyncTraceDispatcher-Thread-" + dispatcherId);
           this.worker.setDaemon(true);
           this.worker.start();
           this.registerShutDownHook();
       }
   ```
   
   


-- 
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: commits-unsubscribe@rocketmq.apache.org.apache.org

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


Re: [I] The file `offsets.json.tmp` can't be created [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6276:
URL: https://github.com/apache/rocketmq/issues/6276#issuecomment-1989672019

   This issue was closed because it has been inactive for 3 days since being marked as stale.


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [I] The file `offsets.json.tmp` can't be created [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6276:
URL: https://github.com/apache/rocketmq/issues/6276#issuecomment-1986585580

   This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [I] The file `offsets.json.tmp` can't be created [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #6276: The file `offsets.json.tmp` can't be created
URL: https://github.com/apache/rocketmq/issues/6276


-- 
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: commits-unsubscribe@rocketmq.apache.org

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