{"action":"opened","issue":{"url":"https://api.github.com/repos/yahoo/pulsar/issues/20","repository_url":"https://api.github.com/repos/yahoo/pulsar","labels_url":"https://api.github.com/repos/yahoo/pulsar/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/yahoo/pulsar/issues/20/comments","events_url":"https://api.github.com/repos/yahoo/pulsar/issues/20/events","html_url":"https://github.com/yahoo/pulsar/issues/20","id":177644662,"number":20,"title":"switch active consumer but failed","user":{"login":"patterncat","id":4436693,"avatar_url":"https://avatars.githubusercontent.com/u/4436693?v=3","gravatar_id":"","url":"https://api.github.com/users/patterncat","html_url":"https://github.com/patterncat","followers_url":"https://api.github.com/users/patterncat/followers","following_url":"https://api.github.com/users/patterncat/following{/other_user}","gists_url":"https://api.github.com/users/patterncat/gists{/gist_id}","starred_url":"https://api.github.com/users/patterncat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patterncat/subscriptions","organizations_url":"https://api.github.com/users/patterncat/orgs","repos_url":"https://api.github.com/users/patterncat/repos","events_url":"https://api.github.com/users/patterncat/events{/privacy}","received_events_url":"https://api.github.com/users/patterncat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-18T10:43:21Z","updated_at":"2016-09-18T10:43:21Z","closed_at":null,"body":"#### Expected behavior\r\n\r\ni shutdown a topic's consumer and restart another consumer of the same topic but with error\r\n\r\n#### Actual behavior\r\n\r\n2016-09-18 10:23:33,429 - ERROR - [bookkeeper-ml-workers-33-1:SafeRunnable@33] - Unexpected throwable caught\r\n\r\njava.lang.UnsupportedOperationException\r\n\r\n\tat java.util.concurrent.CopyOnWriteArrayList$COWIterator.set(CopyOnWriteArrayList.java:1185)\r\n\r\n\tat java.util.Collections.sort(Collections.java:234)\r\n\r\n\tat com.yahoo.pulsar.broker.service.persistent.PersistentDispatcherSingleActiveConsumer.pickAndScheduleActiveConsumer(PersistentDispatcherSingleActiveConsumer.java:75)\r\n\r\n\tat com.yahoo.pulsar.broker.service.persistent.PersistentDispatcherSingleActiveConsumer.addConsumer(PersistentDispatcherSingleActiveConsumer.java:106)\r\n\r\n\tat com.yahoo.pulsar.broker.service.persistent.PersistentSubscription.addConsumer(PersistentSubscription.java:118)\r\n\r\n\tat com.yahoo.pulsar.broker.service.persistent.PersistentTopic$2.openCursorComplete(PersistentTopic.java:334)\r\n\r\n\tat org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl$6.operationComplete(ManagedLedgerImpl.java:566)\r\n\r\n\tat org.apache.bookkeeper.mledger.impl.ManagedCursorImpl$2.operationComplete(ManagedCursorImpl.java:275)\r\n\r\n\tat org.apache.bookkeeper.mledger.impl.ManagedCursorImpl$24.operationComplete(ManagedCursorImpl.java:1844)\r\n\r\n\tat org.apache.bookkeeper.mledger.impl.ManagedCursorImpl$24.operationComplete(ManagedCursorImpl.java:1834)\r\n\r\n\tat org.apache.bookkeeper.mledger.impl.MetaStoreImplZookeeper.lambda$null$66(MetaStoreImplZookeeper.java:254)\r\n\r\n\tat org.apache.bookkeeper.mledger.impl.MetaStoreImplZookeeper$$Lambda$60/2049457780.run(Unknown Source)\r\n\r\n\tat org.apache.bookkeeper.mledger.util.SafeRun$1.safeRun(SafeRun.java:27)\r\n\r\n\tat org.apache.bookkeeper.util.SafeRunnable.run(SafeRunnable.java:31)\r\n\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)\r\n\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\n#### Steps to reproduce\r\n\r\nstart a consumer and subscribe topic a \r\nshutdown consumer\r\nstart another consumer and subscribe topic a\r\n\r\n#### System configuration\r\n**Pulsar version**: 1.14\r\n"}}
{"actor":{"display_login":"patterncat"}}