Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] a user generated multiple ip session, the query error #688

Closed
qiaozhanwei opened this issue Aug 9, 2019 · 0 comments
Closed

[BUG] a user generated multiple ip session, the query error #688

qiaozhanwei opened this issue Aug 9, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@qiaozhanwei
Copy link
Contributor

SessionMapper :

/**
* query by user id and ip
* @param userId
* @return
*/
@results(value = {
@Result(property = "id", column = "id", id = true, javaType = String.class, jdbcType = JdbcType.VARCHAR),
@Result(property = "userId", column = "user_id", javaType = int.class, jdbcType = JdbcType.INTEGER),
@Result(property = "ip", column = "ip", javaType = String.class, jdbcType = JdbcType.VARCHAR),
@Result(property = "lastLoginTime", column = "last_login_time", javaType = Timestamp.class, jdbcType = JdbcType.DATE)
})
@SelectProvider(type = SessionMapperProvider.class, method = "queryByUserId")
Session queryByUserId(@param("userId") int userId);

Update:

/**
* query by user id and ip
* @param userId
* @return
*/
@results(value = {
@Result(property = "id", column = "id", id = true, javaType = String.class, jdbcType = JdbcType.VARCHAR),
@Result(property = "userId", column = "user_id", javaType = int.class, jdbcType = JdbcType.INTEGER),
@Result(property = "ip", column = "ip", javaType = String.class, jdbcType = JdbcType.VARCHAR),
@Result(property = "lastLoginTime", column = "last_login_time", javaType = Timestamp.class, jdbcType = JdbcType.DATE)
})
@SelectProvider(type = SessionMapperProvider.class, method = "queryByUserId")
List queryByUserId(@param("userId") int userId);

@qiaozhanwei qiaozhanwei added the bug Something isn't working label Aug 9, 2019
@qiaozhanwei qiaozhanwei self-assigned this Aug 9, 2019
lgcareer pushed a commit that referenced this issue Aug 9, 2019
)

* Filtering the log of one task to the log of another task

* Filtering the log of one task to the log of another task update

* rollback

* The log shows confusion

* update loggerserver

* update

* datasource connect error modify

* rollback code,logger server log filter ,process variables modify local variables

* Client ip changes, sessionId cannot be accessed modify

* mr and spark task tenant queue set error modify

* tenant queryById modify

* update

* update

* update

* update

* TaskSchedulerThread TaskProps setTenantCode

* logger filter modify

* logger log filter modify path not contains dot

* data_source.properties modify

* A user multiple ip generated session, query BUG
lgcareer pushed a commit that referenced this issue Aug 13, 2019
…g of another task (#696)

* bug fix #688,a user generated multiple ip session, the query error (#689)

* Dockerfile update

* worker code optimization

* filtering the log of one task to the log of another task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant