and then we try to get this header in IndexEventListener implementation:
@Override
public void afterIndexCreated(IndexService indexService) {
final String user = threadContext.getHeader("user");
....
But headers are empty.
Could you please help, is it expected behavior? I didn't find any information about these changes in change-log for update to 6.5.0 but it worked fine on ES 5.6.6.
threadContext.stashContext() - saves old and creates new ThreadContext where we have no access to previous thread context's headers in updateTask thread.
Could you please explain, how we can obtain these headers inupdateTask thread now (after changes of this issue)?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.